PHPackages                             bluspark/dgfip-datamatrix - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bluspark/dgfip-datamatrix

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bluspark/dgfip-datamatrix
=========================

Way to generate, in PHP, a datamatrix for DGFIP (French tax administration).

v0.0.2(2y ago)18.7k↓50%CECILL-BPHP

Since Apr 12Pushed 2y ago2 watchersCompare

[ Source](https://github.com/BlusparkTeam/dgfip-datamatrix)[ Packagist](https://packagist.org/packages/bluspark/dgfip-datamatrix)[ RSS](/packages/bluspark-dgfip-datamatrix/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

DGFIP Datamatrix [![CI](https://github.com/BlusparkTeam/dgfip-datamatrix/actions/workflows/ci.yml/badge.svg)](https://github.com/BlusparkTeam/dgfip-datamatrix/actions/workflows/ci.yml)
========================================================================================================================================================================================

[](#dgfip-datamatrix-)

Way to generate, in PHP, a [datamatrix for DGFIP](https://www.collectivites-locales.gouv.fr/files/Finances%20locales/2.%20am%C3%A9liorer%20l'info%20et%20gestion/3.%20d%C3%A9mat%20comptable%20et%20bdgr/PES/PES_V2/fiches%20pratiques/recettes/cahier_des_charges_editeurs.v6_0.pdf) (French tax administration).

Installation
------------

[](#installation)

With composer:

```
composer require bluspark/dgfip-datamatrix
```

Usage
-----

[](#usage)

```
use Bluspark\DgfipDatamatrix\DataMatrixGenerator;
use Bluspark\DgfipDatamatrix\DataMatrixReference;

$reference = new DataMatrixReference();
$reference
    ->setEmitterCode("...")
    ->setEstablishmentCode("...")
    ->setRevenueCode("...")
    ->setAccountantCode("...")
    ->setFiscalYear("...")
    ->setInvoiceNumber("...")
    ->setAmountInCents("...")
    ;

$generator = new DataMatrixGenerator();
$datamatrix = $generator->generate($reference);

echo "The datamatrix code is: " . $datamatrix->asString();
```

### Generating images

[](#generating-images)

If you want to generate an image of the datamatrix, we suggest you to install the `jucksearm\\barcode` package:

```
composer require jucksearm/barcode
```

Then you can generate the image like this:

```
// For a PNG image
$png = $datamatrix->asPng();
file_put_contents("datamatrix.png", $png);

// For a SVG image
$svg = $datamatrix->asSvg();
file_put_contents("datamatrix.svg", $svg);
```

License
-------

[](#license)

This project is licensed under the CeCILL-B License - see the [LICENSE](LICENSE) file for details.

Sponsors
--------

[](#sponsors)

[![Bluspark logo](./docs/bluspark_logo.jpeg)](./docs/bluspark_logo.jpeg)

Bluspark is a Saas application to operate infrastructure of agglomerations and cities. It is a complete solution to manage the life cycle of your infrastructure, from the design to the maintenance.

[![Consoneo logo](./docs/consoneo_logo.jpeg)](./docs/consoneo_logo.jpeg)

The digital SaaS platform for financing and managing energy renovation aid

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 53.3% 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 ~9 days

Total

2

Last Release

757d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ecd3f699bbfa9f96de09f237059302d7ff8e27b9d3af34e770827f481f9497ea?d=identicon)[Halleck](/maintainers/Halleck)

---

Top Contributors

[![Halleck45](https://avatars.githubusercontent.com/u/1076296?v=4)](https://github.com/Halleck45 "Halleck45 (8 commits)")[![mirandaguillaume](https://avatars.githubusercontent.com/u/3329801?v=4)](https://github.com/mirandaguillaume "mirandaguillaume (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bluspark-dgfip-datamatrix/health.svg)

```
[![Health](https://phpackages.com/badges/bluspark-dgfip-datamatrix/health.svg)](https://phpackages.com/packages/bluspark-dgfip-datamatrix)
```

###  Alternatives

[jaocero/filachat

FilaChat is a plugin for integrating real-time customer support chat into your application. Provides tools for both customer and agent chat interfaces, with features for managing and maintaining chat conversations.

1813.6k](/packages/jaocero-filachat)

PHPackages © 2026

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