PHPackages                             kubinyete/adiq-edi-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. kubinyete/adiq-edi-php

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

kubinyete/adiq-edi-php
======================

Unofficial library for reading EDI files provided by Adiq.

1.0.2(2y ago)117[1 issues](https://github.com/Kubinyete/adiq-edi-php/issues)MITPHP

Since Oct 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Kubinyete/adiq-edi-php)[ Packagist](https://packagist.org/packages/kubinyete/adiq-edi-php)[ RSS](/packages/kubinyete-adiq-edi-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

[![](https://camo.githubusercontent.com/ae339e8d25b477dd07284314a261537640157430ce61603d2bbdfead99a1879a/68747470733a2f2f7777772e616469712e636f6d2e62722f696d616765732f6c6f676f2e706e67)](https://camo.githubusercontent.com/ae339e8d25b477dd07284314a261537640157430ce61603d2bbdfead99a1879a/68747470733a2f2f7777772e616469712e636f6d2e62722f696d616765732f6c6f676f2e706e67) **EDI** for PHP
=============================================================================================================================================================================================================================================================================================================================================================================================

[](#-edi-for-php)

**pt-BR**: Uma biblioteca simples e direta para carregar arquivos EDI da adquirente [Adiq Pagamentos](https://www.adiq.com.br/)

**en-US**: A straightfoward library for loading EDI files from [Adiq Pagamentos](https://www.adiq.com.br/)

***NOTA**: Este guia está primariamente em inglês, caso haja necessidade, será adicionado uma versão em pt-BR no futuro.*

---

### Installation

[](#installation)

Let's start by requiring the package by running the following command

```
composer require kubinyete/adiq-edi-php
```

### Usage

[](#usage)

You can just instantiate a new document object from a data stream, after that, you should be able to directly check each envelope that is present on file, and iterate over each entry accordingly.

```
// Opening the document by providing a file path
$document = Document::open(__DIR__ . DIRECTORY_SEPARATOR . 'EDI_020_20231001_11111_0011_001111111_000111.txt');
// Metadata information can be found via
$metadata = $document->getMetadata();

dump([
    'fileVersion' => $metadata->version,
    'fileDate' => $metadata->date,
    'movement' => $metadata->movement,
    'acquirerName' => $metadata->acquirer,
    'establishmentCode' => $metadata->establishmentCode,
]);

// For each envelope available
foreach ($document->getEnvelopes() as $envelope) {
    /** @var Envelope $envelope */
    dump([
        'envelopeDate' => $envelope->date,
        'envelopeCurrencyCode' => $envelope->currencyCode,
        'entriesCount' => $envelope->registryTotalCount,
        'entriesCreditSum' => $envelope->registryTotalCreditAmount,
    ]);

    // For each entry (CV, AJ, CC) inside our envelope.
    foreach ($envelope->getEntries() as $entry) {
        /** @var EDIRegistry $entry */
        dump($registry);
    }
}
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~64 days

Total

3

Last Release

820d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d9da6d81de7ebab59b0b9bda2a84521bc2300856c72c896bc63bd800ed099dd?d=identicon)[vitorkubinyete](/maintainers/vitorkubinyete)

---

Top Contributors

[![Kubinyete](https://avatars.githubusercontent.com/u/23388918?v=4)](https://github.com/Kubinyete "Kubinyete (9 commits)")

---

Tags

adiqedilibraryparsingphpphp8

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kubinyete-adiq-edi-php/health.svg)

```
[![Health](https://phpackages.com/badges/kubinyete-adiq-edi-php/health.svg)](https://phpackages.com/packages/kubinyete-adiq-edi-php)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
