With this library you would be able to provide exporting capabilities to your Yii2 application …
https://github.com/2amigos/yii2-exportable-widget.git
latest