{"id":13299762,"url":"https://github.com/davidbonachera/EdiParser","last_synced_at":"2025-03-10T11:32:35.474Z","repository":{"id":62495636,"uuid":"85138344","full_name":"davidbonachera/EdiParser","owner":"davidbonachera","description":"A simple positional EDI parser for Symfony 📑","archived":false,"fork":false,"pushed_at":"2020-06-09T08:33:11.000Z","size":74,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T13:07:44.494Z","etag":null,"topics":["edi","parser","php","positional","symfony-bundle"],"latest_commit_sha":null,"homepage":"","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/davidbonachera.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}},"created_at":"2017-03-16T01:27:04.000Z","updated_at":"2024-02-27T16:59:16.000Z","dependencies_parsed_at":"2022-11-02T11:31:35.481Z","dependency_job_id":null,"html_url":"https://github.com/davidbonachera/EdiParser","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbonachera%2FEdiParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbonachera%2FEdiParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbonachera%2FEdiParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbonachera%2FEdiParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidbonachera","download_url":"https://codeload.github.com/davidbonachera/EdiParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242843206,"owners_count":20194343,"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":["edi","parser","php","positional","symfony-bundle"],"created_at":"2024-07-29T17:37:51.629Z","updated_at":"2025-03-10T11:32:35.468Z","avatar_url":"https://github.com/davidbonachera.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Edi Parser Bundle\n================\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/89292c47711045f88c2399f4499be3b6)](https://www.codacy.com/app/david.bonachera/EdiParser?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=davidbonachera/EdiParser\u0026utm_campaign=badger) [![Code Climate](https://codeclimate.com/github/codeclimate/codeclimate/badges/gpa.svg)](https://codeclimate.com/github/davidbonachera/EdiParser)\n\nA simple positional edi parser to transform a string to a key-value array based on a template\n\n## Installation\n\nInstallation using composer is really easy: this command will add `\"boda/edi-parser\"` to your composer.json\nand will download the bundle:\n\n\tcomposer require boda/edi-parser\n\nEnable the bundle in your kernel:\n```php\n\u003c?php\n// app/AppKernel.php\npublic function registerBundles()\n{\n\t$bundles = array(\n\t\t// ...\n\t\tnew Boda\\EdiParserBundle\\BodaEdiParserBundle(),\n\t);\n}\n```\n\n### How to use\nUse it inside a controller\n\n```php\n@Todo : Rewrite example\n```\n\n### Result\n```php\narray:3 [▼\n  \"header\" =\u003e array:5 [▼ // Header\n    \"IDENTIFIER\" =\u003e \"00\"\n    \"DOT\" =\u003e \".\"\n    \"NUMBER\" =\u003e \"00\"\n    \"TEST\" =\u003e \" \"\n    \"HEADER\" =\u003e \"HEADER\"\n  ]\n  \"body\" =\u003e array:2 [▼ // Body\n    1 =\u003e array:2 [▼ // Group 1\n      0 =\u003e array:5 [▼ // Group 1 header\n        \"IDENTIFIER\" =\u003e \"41\"\n        \"DOT\" =\u003e \".\"\n        \"NUMBER\" =\u003e \"00\"\n        \"TEST\" =\u003e \" \"\n        \"CONTENT\" =\u003e \"CONTENT1\"\n      ]\n      1 =\u003e array:7 [▼ // Group 1 line\n        \"IDENTIFIER\" =\u003e \"41\"\n        \"DOT\" =\u003e \".\"\n        \"NUMBER\" =\u003e \"20\"\n        \"TEST\" =\u003e \" \"\n        \"CONTENT\" =\u003e \"CONTENT2\"\n        \"SPACE\" =\u003e \" \"\n        \"SUBLINE\" =\u003e \"subline\"\n      ]\n    ]\n    2 =\u003e array:1 [▼ // Group 2\n      0 =\u003e array:5 [...] // Group 2 header\n    ]\n  ]\n  \"footer\" =\u003e array:5 [▼ // Footer\n    \"IDENTIFIER\" =\u003e \"99\"\n    \"DOT\" =\u003e \".\"\n    \"NUMBER\" =\u003e \"00\"\n    \"TEST\" =\u003e \" \"\n    \"CONTENT\" =\u003e \"FOOTER\"\n  ]\n]\n```\n\n## To-Do\nWell, a lot of stuff to improve I guess, let's do a list\n\n- [ ] Customize with configuration (with or without header/footer, nested level)\n- [ ] Do some proper error handling for missing arguments\n- [ ] Define different model for differents EDI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidbonachera%2FEdiParser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidbonachera%2FEdiParser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidbonachera%2FEdiParser/lists"}