{"id":21486506,"url":"https://github.com/smichaelsen/caldera-php","last_synced_at":"2025-06-11T14:05:02.181Z","repository":{"id":57053829,"uuid":"143456554","full_name":"smichaelsen/caldera-php","owner":"smichaelsen","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-06T09:53:31.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T09:51:11.879Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smichaelsen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-08-03T17:42:36.000Z","updated_at":"2023-04-26T09:12:23.000Z","dependencies_parsed_at":"2024-02-06T10:45:00.389Z","dependency_job_id":"4a76a41b-3a29-411c-be5b-f2774add6431","html_url":"https://github.com/smichaelsen/caldera-php","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"039305b0cfdebe90ae7f8b3a23552e60174d5de5"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smichaelsen%2Fcaldera-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smichaelsen%2Fcaldera-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smichaelsen%2Fcaldera-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smichaelsen%2Fcaldera-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smichaelsen","download_url":"https://codeload.github.com/smichaelsen/caldera-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244014172,"owners_count":20383715,"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-23T13:21:41.788Z","updated_at":"2025-03-17T10:12:34.611Z","avatar_url":"https://github.com/smichaelsen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caldera - PHP Data Import Tool\n\nCaldera helps you to import data from sources like XML or CSV, to map, transform and validate them according to your needs and provides them with small memory footprint.\n\n```\n$csvInputGenerator = new \\Smichaelsen\\Caldera\\InputGenerator\\CsvInputGenerator();\n$csvInputGenerator-\u003esetCsvHandle(fopen(__DIR__ . '/test-equestrian.csv', 'r'));\n\nforeach (\\Smichaelsen\\Caldera\\RecordMapper::mapRecords(\n    $csvInputGenerator,\n    new MyMappingClass()\n) as $record) {\n    // $record is mapped, validated and processed according to rules in your MyMappingClass() \n}\n```\n\nCaldera works line by line (record by record) when possible (not possible with XML) and this way saves memory.\nThis enables you to import data from a huge CSV file for example.\n\n## Run tests:\n\n```\ncomposer update --prefer-lowest --prefer-stable\n./vendor/bin/phpunit --bootstrap vendor/autoload.php tests\ncomposer update\n./vendor/bin/phpunit --bootstrap vendor/autoload.php tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmichaelsen%2Fcaldera-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmichaelsen%2Fcaldera-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmichaelsen%2Fcaldera-php/lists"}