{"id":15030094,"url":"https://github.com/kubinyete/adiq-edi-php","last_synced_at":"2026-02-21T04:32:53.450Z","repository":{"id":199574497,"uuid":"703216156","full_name":"Kubinyete/adiq-edi-php","owner":"Kubinyete","description":"A standard library for loading EDI files from Adiq.","archived":false,"fork":false,"pushed_at":"2024-09-17T17:49:19.000Z","size":29,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T12:51:36.886Z","etag":null,"topics":["adiq","edi","library","parsing","php","php8"],"latest_commit_sha":null,"homepage":"","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/Kubinyete.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,"publiccode":null,"codemeta":null}},"created_at":"2023-10-10T20:19:00.000Z","updated_at":"2024-09-17T17:49:23.000Z","dependencies_parsed_at":"2024-09-28T20:50:31.974Z","dependency_job_id":null,"html_url":"https://github.com/Kubinyete/adiq-edi-php","commit_stats":null,"previous_names":["kubinyete/adiq-edi-php"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kubinyete%2Fadiq-edi-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kubinyete%2Fadiq-edi-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kubinyete%2Fadiq-edi-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kubinyete%2Fadiq-edi-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kubinyete","download_url":"https://codeload.github.com/Kubinyete/adiq-edi-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239060464,"owners_count":19574969,"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":["adiq","edi","library","parsing","php","php8"],"created_at":"2024-09-24T20:12:25.837Z","updated_at":"2025-10-14T06:38:50.756Z","avatar_url":"https://github.com/Kubinyete.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# \u003cimg align=\"middle\" src=\"https://www.adiq.com.br/images/logo.png\" width=\"128\"\u003e **EDI** for PHP\n\n**pt-BR**: Uma biblioteca simples e direta para carregar arquivos EDI da adquirente [Adiq Pagamentos](https://www.adiq.com.br/)\n\n**en-US**: A straightfoward library for loading EDI files from [Adiq Pagamentos](https://www.adiq.com.br/)\n\n***NOTA**: Este guia está primariamente em inglês, caso haja necessidade, será adicionado uma versão em pt-BR no futuro.*\n\n---\n\n### Installation\n\nLet's start by requiring the package by running the following command\n```sh\ncomposer require kubinyete/adiq-edi-php\n```\n\n### Usage\nYou can just instantiate a new document object from a data stream, after that, you should be able to directly\ncheck each envelope that is present on file, and iterate over each entry accordingly.\n\n```php\n// Opening the document by providing a file path\n$document = Document::open(__DIR__ . DIRECTORY_SEPARATOR . 'EDI_020_20231001_11111_0011_001111111_000111.txt');\n// Metadata information can be found via\n$metadata = $document-\u003egetMetadata();\n\ndump([\n    'fileVersion' =\u003e $metadata-\u003eversion,\n    'fileDate' =\u003e $metadata-\u003edate,\n    'movement' =\u003e $metadata-\u003emovement,\n    'acquirerName' =\u003e $metadata-\u003eacquirer,\n    'establishmentCode' =\u003e $metadata-\u003eestablishmentCode,\n]);\n\n// For each envelope available\nforeach ($document-\u003egetEnvelopes() as $envelope) {\n    /** @var Envelope $envelope */\n    dump([\n        'envelopeDate' =\u003e $envelope-\u003edate,\n        'envelopeCurrencyCode' =\u003e $envelope-\u003ecurrencyCode,\n        'entriesCount' =\u003e $envelope-\u003eregistryTotalCount,\n        'entriesCreditSum' =\u003e $envelope-\u003eregistryTotalCreditAmount,\n    ]);\n\n    // For each entry (CV, AJ, CC) inside our envelope.\n    foreach ($envelope-\u003egetEntries() as $entry) {\n        /** @var EDIRegistry $entry */\n        dump($registry);\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubinyete%2Fadiq-edi-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkubinyete%2Fadiq-edi-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubinyete%2Fadiq-edi-php/lists"}