{"id":18410238,"url":"https://github.com/racklin/excel-generator","last_synced_at":"2025-04-07T09:34:32.506Z","repository":{"id":62532481,"uuid":"99137109","full_name":"racklin/excel-generator","owner":"racklin","description":"Excel Generator for Laravel","archived":false,"fork":false,"pushed_at":"2018-07-16T15:26:28.000Z","size":7,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-20T09:17:18.990Z","etag":null,"topics":["excel","laravel","laravel-package"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/racklin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-02T16:12:59.000Z","updated_at":"2024-02-02T10:36:00.000Z","dependencies_parsed_at":"2022-11-02T15:02:46.616Z","dependency_job_id":null,"html_url":"https://github.com/racklin/excel-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racklin%2Fexcel-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racklin%2Fexcel-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racklin%2Fexcel-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/racklin%2Fexcel-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/racklin","download_url":"https://codeload.github.com/racklin/excel-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223277557,"owners_count":17118590,"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","laravel","laravel-package"],"created_at":"2024-11-06T03:30:05.260Z","updated_at":"2024-11-06T03:30:06.002Z","avatar_url":"https://github.com/racklin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Excel Generator for Laravel\n\nSimple Excel Generator for Laravel using phpexcel library.\n\nThis package using json as template and you can pass php array as data to generate Excel xlsx. \n \n# Installation\n```json\n{\n    \"require\": {\n        \"racklin/excel-generator\": \"dev-master\"\n    }\n}\n```\n\nNext, add the service provider to `config/app.php`.\n\n```php\n'providers' =\u003e [\n    //...\n    Racklin\\ExcelGenerator\\ServiceProvider::class,\n]\n\n//...\n\n'aliases' =\u003e [\n\t//...\n\t'ExcelGen' =\u003e Racklin\\ExcelGenerator\\Facades\\ExcelGenerator::class\n]\n\n```\n\n# Example\n```\n$excel = new ExcelGenerator();\n\n$excel-\u003egenerate('example_01.json', [\"name\"=\u003e\"rack\", \"cname\"=\u003e\"阿土伯\", \"data\"=\u003e [\n    [\"a\"=\u003e\"A1\", \"b\"=\u003e\"B1\"],\n    [\"a\"=\u003e\"A2\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A3\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A4\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A5\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A6\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A7\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A8\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A9\", \"b\"=\u003e\"B2\"],\n]], '/tmp/example_01.xlsx', 'F');\n```\n## Laravel Facade \n```\nExcelGen::generate('example_01.json', [\"name\"=\u003e\"rack\", \"cname\"=\u003e\"阿土伯\", \"data\"=\u003e [\n    [\"a\"=\u003e\"A1\", \"b\"=\u003e\"B1\"],\n    [\"a\"=\u003e\"A2\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A3\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A4\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A5\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A6\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A7\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A8\", \"b\"=\u003e\"B2\"],\n    [\"a\"=\u003e\"A9\", \"b\"=\u003e\"B2\"],\n]], '/tmp/example_01.xlsx', 'F');\n```\n\n## Laravel version\n\nCurrent package version works for Laravel 5+.\n\n## License\nMIT: https://racklin.mit-license.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fracklin%2Fexcel-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fracklin%2Fexcel-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fracklin%2Fexcel-generator/lists"}