{"id":14966610,"url":"https://github.com/kartik-v/yii2-export","last_synced_at":"2025-05-14T15:10:57.268Z","repository":{"id":22470488,"uuid":"25809361","full_name":"kartik-v/yii2-export","owner":"kartik-v","description":"A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)","archived":false,"fork":false,"pushed_at":"2024-11-09T19:38:54.000Z","size":615,"stargazers_count":162,"open_issues_count":15,"forks_count":131,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-06T06:25:14.810Z","etag":null,"topics":["excel","export","grid","html","pdf","php","spreadsheet","yii2"],"latest_commit_sha":null,"homepage":"http://demos.krajee.com/export","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kartik-v.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGE.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"yii2-export"}},"created_at":"2014-10-27T08:17:36.000Z","updated_at":"2025-04-16T19:07:19.000Z","dependencies_parsed_at":"2023-12-23T19:13:32.351Z","dependency_job_id":"8016a938-0e70-4129-b494-ccfb143a4654","html_url":"https://github.com/kartik-v/yii2-export","commit_stats":{"total_commits":256,"total_committers":47,"mean_commits":5.446808510638298,"dds":0.2890625,"last_synced_commit":"5f0223ad175d0f85bdbaa44aff1ac93009f2cc1d"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartik-v%2Fyii2-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartik-v%2Fyii2-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartik-v%2Fyii2-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kartik-v%2Fyii2-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kartik-v","download_url":"https://codeload.github.com/kartik-v/yii2-export/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253124242,"owners_count":21857614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["excel","export","grid","html","pdf","php","spreadsheet","yii2"],"created_at":"2024-09-24T13:36:41.159Z","updated_at":"2025-05-14T15:10:57.235Z","avatar_url":"https://github.com/kartik-v.png","language":"PHP","funding_links":["https://opencollective.com/yii2-export","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=DTP3NZQ6G2AYU","https://www.buymeacoffee.com/kartikv","https://opencollective.com/yii2-export/contribute","https://opencollective.com/yii2-export/organization/0/website","https://opencollective.com/yii2-export/organization/1/website","https://opencollective.com/yii2-export/organization/2/website","https://opencollective.com/yii2-export/organization/3/website","https://opencollective.com/yii2-export/organization/4/website","https://opencollective.com/yii2-export/organization/5/website","https://opencollective.com/yii2-export/organization/6/website","https://opencollective.com/yii2-export/organization/7/website","https://opencollective.com/yii2-export/organization/8/website","https://opencollective.com/yii2-export/organization/9/website"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    \u003ca href=\"http://demos.krajee.com\" title=\"Krajee Demos\" target=\"_blank\"\u003e\n        \u003cimg src=\"http://kartik-v.github.io/bootstrap-fileinput-samples/samples/krajee-logo-b.png\" alt=\"Krajee Logo\"/\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    yii2-export\n    \u003chr\u003e\n    \u003ca href=\"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=DTP3NZQ6G2AYU\"\n       title=\"Donate via Paypal\" target=\"_blank\"\u003e\u003cimg height=\"60\" src=\"https://kartik-v.github.io/bootstrap-fileinput-samples/samples/donate.png\" alt=\"Donate\"/\u003e\u003c/a\u003e\n    \u0026nbsp; \u0026nbsp; \u0026nbsp;\n    \u003ca href=\"https://www.buymeacoffee.com/kartikv\" title=\"Buy me a coffee\" \u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" height=\"60\" alt=\"kartikv\" /\u003e\u003c/a\u003e\n\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![Stable Version](https://poser.pugx.org/kartik-v/yii2-export/v/stable)](https://packagist.org/packages/kartik-v/yii2-export)\n[![Unstable Version](https://poser.pugx.org/kartik-v/yii2-export/v/unstable)](https://packagist.org/packages/kartik-v/yii2-export)\n[![License](https://poser.pugx.org/kartik-v/yii2-export/license)](https://packagist.org/packages/kartik-v/yii2-export)\n[![Total Downloads](https://poser.pugx.org/kartik-v/yii2-export/downloads)](https://packagist.org/packages/kartik-v/yii2-export)\n[![Monthly Downloads](https://poser.pugx.org/kartik-v/yii2-export/d/monthly)](https://packagist.org/packages/kartik-v/yii2-export)\n[![Daily Downloads](https://poser.pugx.org/kartik-v/yii2-export/d/daily)](https://packagist.org/packages/kartik-v/yii2-export)\n\n\u003c/div\u003e\n\nA library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.) using the [PhpSpreadsheet](https://github.com/PHPOffice/phpspreadsheet) library. The widget allows you to configure the dataProvider, columns just like a yii\\grid\\GridView. However, it just displays the export actions in form of a ButtonDropdown menu, for embedding into any of your GridView or other components.\n\nIn addition, with release v1.2.0, the extension also displays a handy grid columns selector for controlling the columns for export. The features available with the column selector are:\n\n- shows a column picker dropdown list to allow selection of columns for export.\n- new `container` property allows you to group the export menu and column selector dropdowns.\n- new `template` property for manipulating the display of menu, column selector or additional buttons in button group.\n- allows configuration of column picker dropdown button through `columnSelectorOptions`\n- auto-generates column labels in the column selector. But you can override displayed column labels for each column key through `columnSelector` property settings.\n- allows preselected columns through `selectedColumns` (you must set the selected column keys)\n- allows columns to be disabled in column selector through `disabledColumns` (you must set the disabled column keys)\n- allows columns to be hidden in column selector through `hiddenColumns` (you must set the hidden column keys)\n- allows columns to be hidden from both export and column selector through `noExportColumns` (you must set the no export column keys)\n- toggle display of the column selector through `showColumnSelector` property\n- column selector is displayed only if `asDropdown` is set to `true`.\n\nThe extension offers configurable user interfaces for advanced cases using view templates.\n\n- `exportColumnsView` allows you to setup your own custom view file for rendering the column selector dropdown.\n- `afterSaveView` allows you to setup your own after save view file if you are configuring to save exported file on server.\n\n## Demo\nYou can see detailed [documentation](http://demos.krajee.com/export) and [demonstration](http://demos.krajee.com/export-demo) on usage of the extension.\n\n## Release Changes\n\u003e NOTE: Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-export/blob/master/CHANGE.md) for details on changes to various releases.\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\n\u003e Note: Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) on setting the `minimum-stability` settings for your application's composer.json.\n\n### Pre-requisites\n\nInstall the necessary pre-requisite (Krajee Dropdown Extension) based on your bootstrap version:\n\n- For Bootstrap v5.x install the extension `kartik-v/yii2-bootstrap5-dropdown`\n- For Bootstrap v4.x install the extension `kartik-v/yii2-bootstrap4-dropdown`\n- For Bootstrap v3.x install the extension `kartik-v/yii2-dropdown-x`\n\nFor example if you are using the Bootstrap v5.x add the following to the `require` section of your `composer.json` file:\n\n```\n\"kartik-v/yii2-bootstrap5-dropdown\": \"@dev\"\n```\n\n### Install\n\nEither run:\n\n```\n$ php composer.phar require kartik-v/yii2-export \"@dev\"\n```\n\nor add\n\n```\n\"kartik-v/yii2-export\": \"@dev\"\n```\n\nto the `require` section of your `composer.json` file.\n\n\u003e Note: you must run `composer update` to have the latest stable dependencies like `kartik-v/yii2-krajee-base`\n\n## Pre-requisites\n\nThe `yii2-export` extension is dependent on `yii2-grid` extension module. In order to start using `yii2-export`, you need to ensure setup of the `gridview` module in your application modules configuration file. For example:\n\n```php\n'modules' =\u003e [\n    'gridview' =\u003e [\n        'class' =\u003e 'kartik\\grid\\Module',\n        // other module settings\n    ]\n]\n```\n\n## Usage\n\n### ExportMenu\n\n```php\nuse kartik\\export\\ExportMenu;\n$gridColumns = [\n    ['class' =\u003e 'yii\\grid\\SerialColumn'],\n    'id',\n    'name',\n    'color',\n    'publish_date',\n    'status',\n    ['class' =\u003e 'yii\\grid\\ActionColumn'],\n];\n\n// Renders a export dropdown menu\necho ExportMenu::widget([\n    'dataProvider' =\u003e $dataProvider,\n    'columns' =\u003e $gridColumns,\n    'clearBuffers' =\u003e true, //optional\n]);\n\n// You can choose to render your own GridView separately\necho \\kartik\\grid\\GridView::widget([\n    'dataProvider' =\u003e $dataProvider,\n    'filterModel' =\u003e $searchModel,\n    'columns' =\u003e $gridColumns\n]);\n```\n\n## Contributors\n\n### Code Contributors\n\nThis project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].\n\u003ca href=\"https://github.com/kartik-v/yii2-export/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/yii2-export/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n\n### Financial Contributors\n\nBecome a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/yii2-export/contribute)]\n\n#### Individuals\n\n\u003ca href=\"https://opencollective.com/yii2-export\"\u003e\u003cimg src=\"https://opencollective.com/yii2-export/individuals.svg?width=890\"\u003e\u003c/a\u003e\n\n#### Organizations\n\nSupport this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/yii2-export/contribute)]\n\n\u003ca href=\"https://opencollective.com/yii2-export/organization/0/website\"\u003e\u003cimg src=\"https://opencollective.com/yii2-export/organization/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/yii2-export/organization/1/website\"\u003e\u003cimg src=\"https://opencollective.com/yii2-export/organization/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/yii2-export/organization/2/website\"\u003e\u003cimg src=\"https://opencollective.com/yii2-export/organization/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/yii2-export/organization/3/website\"\u003e\u003cimg src=\"https://opencollective.com/yii2-export/organization/3/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/yii2-export/organization/4/website\"\u003e\u003cimg src=\"https://opencollective.com/yii2-export/organization/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/yii2-export/organization/5/website\"\u003e\u003cimg src=\"https://opencollective.com/yii2-export/organization/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/yii2-export/organization/6/website\"\u003e\u003cimg src=\"https://opencollective.com/yii2-export/organization/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/yii2-export/organization/7/website\"\u003e\u003cimg src=\"https://opencollective.com/yii2-export/organization/7/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/yii2-export/organization/8/website\"\u003e\u003cimg src=\"https://opencollective.com/yii2-export/organization/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/yii2-export/organization/9/website\"\u003e\u003cimg src=\"https://opencollective.com/yii2-export/organization/9/avatar.svg\"\u003e\u003c/a\u003e\n\n## License\n\n**yii2-export** is released under the BSD-3-Clause License. See the bundled `LICENSE.md` for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkartik-v%2Fyii2-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkartik-v%2Fyii2-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkartik-v%2Fyii2-export/lists"}