{"id":36975867,"url":"https://github.com/ondics/yii1spreadsheet","last_synced_at":"2026-01-13T22:06:30.320Z","repository":{"id":57031426,"uuid":"460987401","full_name":"ondics/yii1spreadsheet","owner":"ondics","description":"Very easy Excel-Output for Yii1","archived":false,"fork":false,"pushed_at":"2022-03-07T07:39:04.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T16:19:00.446Z","etag":null,"topics":["excel","spreadsheet","yii-extension","yii1"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ondics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-18T19:55:12.000Z","updated_at":"2024-04-17T11:28:29.000Z","dependencies_parsed_at":"2022-08-23T18:50:40.733Z","dependency_job_id":null,"html_url":"https://github.com/ondics/yii1spreadsheet","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ondics/yii1spreadsheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondics%2Fyii1spreadsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondics%2Fyii1spreadsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondics%2Fyii1spreadsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondics%2Fyii1spreadsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ondics","download_url":"https://codeload.github.com/ondics/yii1spreadsheet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondics%2Fyii1spreadsheet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","spreadsheet","yii-extension","yii1"],"created_at":"2026-01-13T22:06:29.593Z","updated_at":"2026-01-13T22:06:30.313Z","avatar_url":"https://github.com/ondics.png","language":"PHP","funding_links":["https://patreon.com/klimov_paul"],"categories":[],"sub_categories":[],"readme":"Yii1 Spreadsheet Extensions\n===========================\n\nProvides very easy Excel-Output for Yii1\n\n* works with `CArrayDataProvider`\n* works with `CActiveDataProvider`\n* provides flexible value formatting with PHP closures (see below)\n\nThis extension was built because the extension [phpoffice/phpexcel](https://packagist.org/packages/phpoffice/phpexcel) is marked as \"archived/abandoned\" and there was no Yii1 extension as successor to use the recommended [PhpSpreadsheet](https://github.com/PHPOffice/PhpSpreadsheet) library.\n\nTested with Yii1 version 1.1.25\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist ondics/yii1spreadsheet\n```\n\nor add\n\n```json\n\"ondics/spreadsheet\": \"*\"\n```\n\nto the `require` section of your composer.json.\n\n## Usage\n\n    $dataProvider = new CArrayDataProvider([\n        [\n            'name' =\u003e 'some name',\n            'price' =\u003e '9879',\n        ],\n        [\n            'name' =\u003e 'name 2',\n            'price' =\u003e '79',\n        ],\n    ]);\n    $exporter = new Spreadsheet();\n    $exporter-\u003edataProvider = $dataProvider;\n    $exporter-\u003ecolumns = [\n        'name',\n        [\n            'attribute' =\u003e 'price',\n            'header' =\u003e 'Price with VAT',\n            'value' =\u003e function($model,$key,$index,$x) {\n                return $model-\u003eprice * 1.19;\n              },\n              'visible' =\u003e ($model-\u003eprice  \u003e 20),\n    ];\n    $exporter-\u003esend('myexcelfile.xlsx');\n\n## Application Notes\n\nThis yii1 extension is a light backport of https://github.com/yii2tech/spreadsheet to Yii1. Some Yii2 base classes and features are required and thus provided\nwith this extensions and can be used during Excel export, e.g.\n\n* In `colums` a closure can be used as value. This closue differs from the closure in Yii1. See the example above how to use this closure.\n* The columns array is backported from Yii2 so see Yii2 docs for information\n\nThe `send` method cannot not use xsendfile to send a file directyle to the browser but has go over memory. This may affect very large Excel exports.\n\n## Credits\n\nThanks to https://patreon.com/klimov_paul and yii2tech which provide https://github.com/yii2tech/spreadsheet\n\n## Author\n\ngithubler@ondics.de\n\n(C) 2022, Ondics GmbH\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fondics%2Fyii1spreadsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fondics%2Fyii1spreadsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fondics%2Fyii1spreadsheet/lists"}