{"id":18382848,"url":"https://github.com/e-commit/csv-table-generator","last_synced_at":"2025-09-09T11:36:24.322Z","repository":{"id":56974780,"uuid":"66704843","full_name":"e-commit/csv-table-generator","owner":"e-commit","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-09T18:14:57.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-16T12:17:29.396Z","etag":null,"topics":["csv","php"],"latest_commit_sha":null,"homepage":null,"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/e-commit.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-08-27T08:40:56.000Z","updated_at":"2025-06-09T18:15:01.000Z","dependencies_parsed_at":"2023-02-08T05:40:20.105Z","dependency_job_id":"e8ff66f8-c8e7-4f9a-8989-2d07233cf254","html_url":"https://github.com/e-commit/csv-table-generator","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"7ebb41cf009493c23592b34a6199649d88cf6bd0"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/e-commit/csv-table-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-commit%2Fcsv-table-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-commit%2Fcsv-table-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-commit%2Fcsv-table-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-commit%2Fcsv-table-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e-commit","download_url":"https://codeload.github.com/e-commit/csv-table-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-commit%2Fcsv-table-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274291354,"owners_count":25258156,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["csv","php"],"created_at":"2024-11-06T01:08:54.436Z","updated_at":"2025-09-09T11:36:24.273Z","avatar_url":"https://github.com/e-commit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSV Table Generator\n\nCreate a CSV file with PHP array.\n\n![Tests](https://github.com/e-commit/csv-table-generator/workflows/Tests/badge.svg)\n\n## Installation ##\n\nTo install csv-table-generator with Composer just run :\n\n```bash\n$ composer require ecommit/csv-table-generator\n```\n\n\n\n## Usage ##\n\n```php\nuse Ecommit\\CsvTableGenerator\\Csv;\n\n$csv = new Csv('/home/test', 'myfilename', array(\n    'header' =\u003e array(\n        'Column A',\n        'Column B',\n    ),\n));\n\n$csv-\u003ewrite(array('Hello', 'world')); //Add line\n$csv-\u003ewrite(array('Test1', 'Test2')); //Add line\n$csv-\u003eclose();\n```\n\n/home/test/myfilename.csv is generated :\n\n```\n\"Column A\",\"Column B\"\nHello,world\nTest1,Test2\n```\n\n**Constructor arguments :**\n\n* **String $pathDir** : Path folder (when CSV file is generated) **Required**\n* **String $filename** : Filename (without path folder and extension) **Required**\n* **Array $options** : Options. See below\n\n**Availabled options :**\n\n* **header** (array) : Header array. If empty, no header. **Default: array()**\n* **max_lines** (null | int) : Max lines per CSV file. If lines \u003e max_lines, many files are generated. **Default: null**\n* **delimiter** (string) : CSV delimiter. **Default: ,**\n* **enclosure** (string) : CSV enclosure. **Default: \"**\n* **eol** (string - Csv::EOL_ constants) : EOF(End Of Line) character. See **Csv::EOL_** constants. **Default: Csv::EOL_LF**. If **Csv::EOL_CRLF**\n  is used with PHP ≤ 8.1, **unix2dos** program is required\n* **escape** : CSV escape. **Default: \\\\**\n* **unix2dos_path** (string) : Unix2dos path. Only used if eol=Csv::EOL_CRLF with PHP ≤ 8.1. **Default: /usr/bin/unix2dos**\n* **add_utf8_bom** (bool) : Add or not UTF8 bom. **Default: false**\n\n## License ##\n\nThis librairy is under the MIT license. See the complete license in *LICENSE* file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-commit%2Fcsv-table-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe-commit%2Fcsv-table-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-commit%2Fcsv-table-generator/lists"}