{"id":22125181,"url":"https://github.com/le-phare/import","last_synced_at":"2025-10-24T20:21:19.350Z","repository":{"id":57014083,"uuid":"94688090","full_name":"le-phare/import","owner":"le-phare","description":"Import CSV/XLS files ","archived":false,"fork":false,"pushed_at":"2024-09-11T14:11:58.000Z","size":84,"stargazers_count":5,"open_issues_count":3,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-12T21:42:59.548Z","etag":null,"topics":["csv","excel","import","php","xlsx"],"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/le-phare.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"publiccode":null,"codemeta":null}},"created_at":"2017-06-18T13:12:38.000Z","updated_at":"2024-06-03T07:31:07.000Z","dependencies_parsed_at":"2023-11-07T15:27:12.256Z","dependency_job_id":"5107dad2-1687-4989-af10-339d26d273d7","html_url":"https://github.com/le-phare/import","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"937e014ce19db1ef2fbf0ce55b6d3545f958930d"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/le-phare%2Fimport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/le-phare%2Fimport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/le-phare%2Fimport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/le-phare%2Fimport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/le-phare","download_url":"https://codeload.github.com/le-phare/import/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227590206,"owners_count":17790448,"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","excel","import","php","xlsx"],"created_at":"2024-12-01T16:18:02.059Z","updated_at":"2025-10-24T20:21:14.332Z","avatar_url":"https://github.com/le-phare.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Import\n\n## Resources\n\n-   [Report issues](https://github.com/le-phare/import/issues)\n\n## Archive\n\nArchive affects imported files/resources when a `ImportEvents::POST_COPY` event is triggered.\n\nFor archive to take effect on a imported resource, you need to explicitly define:\n\n-   the `archive.enabled` value to `true`\n-   the `resources.references.load` node\n\n```yaml\nname: stock\nsource_dir: \"var/exchange/in\"\n\narchive:\n    enabled: true\n    dir: \"var/exchange/in/foo/stock\"\n    rotation: 60\n\nresources:\n    references:\n        tablename: import.stock\n        load:\n            pattern: \"^stock.csv$\"\n```\n\nThe file will move to a default `archives` directory in the defined `source_dir` or in the `archive.dir` if you explicitly define its value.\n\nThe `archive.rotation` define define the number of files to keep before deletion.\n\n## Quarantine\n\nQuarantine affects imported files/resources when a `ImportEvents::EXCEPTION` event is triggered (before)\n\nFor quarantine to take effect on a imported resource, you need to explicitly define:\n\n-   the `quarantine.enabled` value to `true`\n-   the `resources.references.load` node\n\nThe subsequent `stock.csv` file will be quarantined if an import exception happen during the import process.\n\n```yaml\nname: stock\nsource_dir: \"var/exchange/in\"\n\nquarantine:\n    enabled: true\n    dir: \"var/exchange/in/bar/stock\"\n    rotation: 60\n\nresources:\n    references:\n        tablename: import.stock\n        load:\n            pattern: \"^stock.csv$\"\n```\n\nThe file will move to a default `quarantine` directory in the defined `source_dir` or in the `quarantine.dir` value if you explicitly define its value.\n\nThe `quarantine.rotation` define define the number of files to keep before deletion.\n\n## IDE Integration\n\nBeyond validating YAML syntax in your IDE, you can validate the definition of an import configuration using \nthe JSON schema `./lephare-import.schema.json`.\n\nThis also provides contextual help for autocompletion and when hovering over a YAML key.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fle-phare%2Fimport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fle-phare%2Fimport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fle-phare%2Fimport/lists"}