{"id":25257506,"url":"https://github.com/czproject/csv-iterator","last_synced_at":"2025-04-06T00:41:49.857Z","repository":{"id":56960973,"uuid":"53127654","full_name":"czproject/csv-iterator","owner":"czproject","description":"Simple reading of CSV files.","archived":false,"fork":false,"pushed_at":"2023-03-13T14:36:44.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T06:53:55.888Z","etag":null,"topics":["csv-reader","php"],"latest_commit_sha":null,"homepage":"","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/czproject.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license.md","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},"funding":{"custom":"https://www.janpecha.cz/donate/"}},"created_at":"2016-03-04T10:28:59.000Z","updated_at":"2022-12-20T13:39:30.000Z","dependencies_parsed_at":"2025-02-12T06:40:21.282Z","dependency_job_id":"b50458b8-c528-4fa4-886b-6a37849eafb8","html_url":"https://github.com/czproject/csv-iterator","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czproject%2Fcsv-iterator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czproject%2Fcsv-iterator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czproject%2Fcsv-iterator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czproject%2Fcsv-iterator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czproject","download_url":"https://codeload.github.com/czproject/csv-iterator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419813,"owners_count":20936012,"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":["csv-reader","php"],"created_at":"2025-02-12T06:40:13.946Z","updated_at":"2025-04-06T00:41:49.842Z","avatar_url":"https://github.com/czproject.png","language":"PHP","funding_links":["https://www.janpecha.cz/donate/"],"categories":[],"sub_categories":[],"readme":"# CsvIterator\n\n[![Build Status](https://github.com/czproject/csv-iterator/workflows/Build/badge.svg)](https://github.com/czproject/csv-iterator/actions)\n[![Downloads this Month](https://img.shields.io/packagist/dm/czproject/csv-iterator.svg)](https://packagist.org/packages/czproject/csv-iterator)\n[![Latest Stable Version](https://poser.pugx.org/czproject/csv-iterator/v/stable)](https://github.com/czproject/csv-iterator/releases)\n[![License](https://img.shields.io/badge/license-New%20BSD-blue.svg)](https://github.com/czproject/csv-iterator/blob/master/license.md)\n\nSimple reading of CSV files.\n\n\u003ca href=\"https://www.janpecha.cz/donate/\"\u003e\u003cimg src=\"https://buymecoffee.intm.org/img/donate-banner.v1.svg\" alt=\"Donate\" height=\"100\"\u003e\u003c/a\u003e\n\n\n## Installation\n\n[Download a latest package](https://github.com/czproject/csv-iterator/releases) or use [Composer](http://getcomposer.org/):\n\n```\ncomposer require czproject/csv-iterator\n```\n\nCsvIterator requires PHP 5.6.0 or later.\n\n\n## Usage\n\n```csv\nid,name\n1,Gandalf The White\n```\n\n```php\n$iterator = new CzProject\\CsvIterator\\CsvIterator('/path/to/file.csv');\n\n// optional:\n$iterator-\u003esetDelimiter(',');\n$iterator-\u003esetEnclosure('\"');\n$iterator-\u003esetEscape('\\\\');\n$iterator-\u003esetEncoding('UTF-8');\n\nwhile (($row = $iterator-\u003efetch()) !== NULL) {\n\techo $row['id']; // prints '1'\n\techo $row['name']; // prints 'Gandalf The White'\n}\n```\n\n------------------------------\n\nLicense: [New BSD License](license.md)\n\u003cbr\u003eAuthor: Jan Pecha, https://www.janpecha.cz/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczproject%2Fcsv-iterator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczproject%2Fcsv-iterator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczproject%2Fcsv-iterator/lists"}