{"id":13821814,"url":"https://github.com/Wisembly/ExcelAnt","last_synced_at":"2025-05-16T15:30:55.721Z","repository":{"id":8604993,"uuid":"10243519","full_name":"Wisembly/ExcelAnt","owner":"Wisembly","description":"Simple yet powerful Excel manipulation library for PHP 5.4+","archived":false,"fork":false,"pushed_at":"2014-04-08T08:57:21.000Z","size":1102,"stargazers_count":69,"open_issues_count":6,"forks_count":17,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-11-14T14:09:55.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://wisembly.github.io/ExcelAnt","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/Wisembly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-23T12:45:12.000Z","updated_at":"2024-05-06T08:45:50.000Z","dependencies_parsed_at":"2022-08-26T02:42:04.792Z","dependency_job_id":null,"html_url":"https://github.com/Wisembly/ExcelAnt","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2FExcelAnt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2FExcelAnt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2FExcelAnt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2FExcelAnt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wisembly","download_url":"https://codeload.github.com/Wisembly/ExcelAnt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225408397,"owners_count":17469881,"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":[],"created_at":"2024-08-04T08:01:29.312Z","updated_at":"2024-11-19T22:30:48.515Z","avatar_url":"https://github.com/Wisembly.png","language":"PHP","readme":"           |     |\n            \\   /\n             \\_/\n        __   /^\\   __\n       '  `. \\_/ ,'  `\n            \\/ \\/\n       _,--./| |\\.--._\n    _,'   _.-\\_/-._   `._\n         |   / \\   |\n         |  /   \\  |\n        /   |   |   \\\n      -'    \\___/    `-\n\n#ExcelAnt\n\n[![Build Status](https://travis-ci.org/Wisembly/ExcelAnt.png?branch=master)](https://travis-ci.org/Wisembly/ExcelAnt)\n\nExcelAnt is an Excel manipulation library for PHP 5.4. It currently works on top of [PHPExcel](https://github.com/PHPOffice/PHPExcel).\nIf you want to add / use another library, feel free to fork and contribute !\n\n#Version\n\n1.0.0\n\n#Installation\n\n1. Install composer : `curl -s http://getcomposer.org/installer | php`\n(more info at getcomposer.org)\n2. Create a `composer.json` file in your project root :\n(or add only the excelant line in your existing composer file)\n\n```yml\n  {\n    \"require\": {\n      \"wisembly/excelant\": \"*\",\n    }\n  }\n```\n\n3. Install via composer : `php composer.phar install`\n\n#Use ExcelAnt\n\nCreate a simple Table :\n\n```php\nuse ExcelAnt\\Adapter\\PhpExcel\\Workbook\\Workbook,\n    ExcelAnt\\Adapter\\PhpExcel\\Sheet\\Sheet,\n    ExcelAnt\\Adapter\\PhpExcel\\Writer\\Writer,\n    ExcelAnt\\Table\\Table,\n    ExcelAnt\\Coordinate\\Coordinate;\n\nClass Export\n{\n    public function createExport(array $users)\n    {\n        $workbook = new Workbook();\n        $sheet = new Sheet($workbook);\n        $table = new Table();\n\n        foreach ($users as $user) {\n            $table-\u003esetRow([\n                $user-\u003egetName(),\n                $user-\u003egetEmail(),\n            ]);\n        }\n\n        $sheet-\u003eaddTable($table, new Coordinate(1, 1));\n        $workbook-\u003eaddSheet($sheet);\n    }\n}\n```\n\nNow, to export your Workbook, you need to create a Writer :\n\n```php\nuse ExcelAnt\\Adapter\\PhpExcel\\Writer\\WriterFactory,\n    ExcelAnt\\Adapter\\PhpExcel\\Writer\\PhpExcelWriter\\Excel5;\n\n$writer = (new WriterFactory())-\u003ecreateWriter(new Excel5('/path/to/myExport.xls'));\n```\n\nConvert your Worbook to create a PHPExcel object and export it :\n\n```php\n$phpExcel = $writer-\u003econvert($workbook);\n$writer-\u003ewrite($phpExcel);\n```\n\n\n![Simple table](https://raw.github.com/Wisembly/ExcelAnt/master/docs/simple-table.png)\n\n#Documentation\n\nComing soon...\n\n#Contributing\n\nExcelAnt is an open source project. If you would like to contribute, fork the repository and submit a pull request.\n\n#Running ExcelAnt Tests\n","funding_links":[],"categories":["PHP","Office Office","Office"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWisembly%2FExcelAnt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWisembly%2FExcelAnt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWisembly%2FExcelAnt/lists"}