{"id":19124667,"url":"https://github.com/duncan3dc/phpexcel","last_synced_at":"2025-05-05T19:27:27.453Z","repository":{"id":17652672,"uuid":"20457220","full_name":"duncan3dc/phpexcel","owner":"duncan3dc","description":"A simple wrapper around the phpexcel library","archived":false,"fork":false,"pushed_at":"2017-08-17T09:23:36.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T11:10:52.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duncan3dc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-03T19:52:27.000Z","updated_at":"2016-12-14T23:40:42.000Z","dependencies_parsed_at":"2022-08-21T10:20:48.237Z","dependency_job_id":null,"html_url":"https://github.com/duncan3dc/phpexcel","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fphpexcel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fphpexcel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fphpexcel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fphpexcel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duncan3dc","download_url":"https://codeload.github.com/duncan3dc/phpexcel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252562172,"owners_count":21768250,"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-11-09T05:29:49.845Z","updated_at":"2025-05-05T19:27:27.436Z","avatar_url":"https://github.com/duncan3dc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"phpexcel\n========\n\nA simple wrapper around the PHPExcel library\n\n[![Latest Stable Version](https://poser.pugx.org/duncan3dc/phpexcel/version.svg)](https://packagist.org/packages/duncan3dc/phpexcel)\n[![Build Status](https://travis-ci.org/duncan3dc/phpexcel.svg?branch=master)](https://travis-ci.org/duncan3dc/phpexcel)\n[![Coverage Status](https://coveralls.io/repos/github/duncan3dc/phpexcel/badge.svg)](https://coveralls.io/github/duncan3dc/phpexcel)\n\n\nStatic Methods\n--------------\n* read(string $filename[, mixed $key]): array - Reads a spreadsheet and converts it's contents to an array (using the PHPExcel toString() method).\nBy default this will return an enumerated array with each element representing one sheet.\nA specific sheet can be requested by passing the $key argument, either as an integer representing the (zero based) sheet number, or as a string of the sheet name.\n* getCellName(int $col, int $row): string - Convert a numeric column number (zero based) and row number into a cell name (eg B3)\n\n\nPublic Methods\n--------------\n* save(string $filename): null - Calls the save() method on the PHPExcel_Writer_Excel2007 class.\n* output(string $filename): null - Outputs the spreadsheet to the browser to prompt a download.\n* addImage(string $cell, string $path): null - Add an image to the specified cell.\n* setCell(string $cell, mixed $value[, int $style]): null - Set a cell to a value.\nThe $style parameter can be used to set several styles on the cell, using the following class constants:\nBOLD\nITALIC\nLEFT\nRIGHT\nCENTER\n\n\nExamples\n--------\n\nThe Excel class uses a namespace of duncan3dc\n```php\nuse duncan3dc\\Excel;\n```\n\n-------------------\n\n```php\n$excel = new Excel();\n\n$excel-\u003esetCell(\"A1\",\"Title\", Excel::BOLD | EXCEL::CENTER);\n\nfor($i = 1; $i \u003c 10; $i++) {\n    $cell = $excel-\u003egetCellName($i,1);\n    $excel-\u003esetCell($cell,\"Test \" . $i);\n}\n\nfor($i = 1; $i \u003c 10; $i++) {\n    $cell = Excel::getCellName($i,2);\n    $excel-\u003esetCell($cell,\"Value \" . $i);\n}\n\n$excel-\u003esave(\"/tmp/text.xls\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduncan3dc%2Fphpexcel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduncan3dc%2Fphpexcel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduncan3dc%2Fphpexcel/lists"}