PHPackages                             yoanbernabeu/daplos-bundle - 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. [Framework](/categories/framework)
4. /
5. yoanbernabeu/daplos-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

yoanbernabeu/daplos-bundle
==========================

Bundle Symfony DaplosBundle

v0.6.1(3mo ago)0975↓37.5%MITPHPPHP &gt;=8.4CI passing

Since Nov 19Pushed 3mo agoCompare

[ Source](https://github.com/yoanbernabeu/daplos-bundle)[ Packagist](https://packagist.org/packages/yoanbernabeu/daplos-bundle)[ RSS](/packages/yoanbernabeu-daplos-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (12)Used By (0)

DaplosBundle
============

[](#daplosbundle)

Bundle Symfony pour l'intégration des référentiels DAPLOS (données agricoles) et le parsing des fichiers d'export `.dap`.

> **Note Francophone** : Le code et les entités sont en Français pour rester alignés avec la terminologie métier AgroEDI (DAPLOS).

[![PHP Version](https://camo.githubusercontent.com/26a9c3ff4f26299c8d8a78a030741dc91155d40ba7eb933a9b5e1a1113ab1cb8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230382e312d626c7565)](https://php.net)[![Symfony Version](https://camo.githubusercontent.com/de7bb66ef7807a3e1fccae5b161d9de6f85dcd3902d291a7d665bb2522efed91/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d362e34253230253743253230372e78253230253743253230382e782d677265656e)](https://symfony.com)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

Fonctionnalités
---------------

[](#fonctionnalités)

- **Référentiels API** : Synchronisation des 53 référentiels DAPLOS (10 000+ items) via l'API
- **Parser de fichiers** : Lecture des exports `.dap` (parcelles, interventions, intrants, récoltes)
- **Entité unique** : Architecture simplifiée avec `DaplosReferential` et enum type-safe
- **Cache intelligent** : Support des tags pour invalidation rapide

Pré-requis
----------

[](#pré-requis)

> **Important** : L'accès aux référentiels DAPLOS nécessite d'être membre d'**AgroEDI Europe**. [Liste des adhérents](https://agroedieurope.fr/les-adherents/)

Démarrage rapide
----------------

[](#démarrage-rapide)

```
# Installation
composer require yoanbernabeu/daplos-bundle

# Générer l'entité
php bin/console daplos:generate:entity

# Migrations
php bin/console make:migration
php bin/console doctrine:migrations:migrate

# Synchroniser les référentiels
php -d memory_limit=1G bin/console daplos:sync --all
```

Configuration
-------------

[](#configuration)

Créez `config/packages/yoanbernabeu_daplos.yaml` :

```
yoanbernabeu_daplos:
    api:
        login: '%env(DAPLOS_LOGIN)%'
        apikey: '%env(DAPLOS_APIKEY)%'
    cache:
        enabled: true
        ttl: 3600
```

Commandes disponibles
---------------------

[](#commandes-disponibles)

### Référentiels API

[](#référentiels-api)

```
# Lister les référentiels
php bin/console daplos:referentials:list

# Voir les détails d'un référentiel
php bin/console daplos:referentials:show 611

# Synchroniser un type
php bin/console daplos:sync --type=CULTURES

# Synchroniser tout
php -d memory_limit=1G bin/console daplos:sync --all
```

### Parser de fichiers .dap

[](#parser-de-fichiers-dap)

```
# Parser un fichier
php bin/console daplos:parse fichier.dap

# Avec détails des interventions
php bin/console daplos:parse fichier.dap --interventions

# Export JSON
php bin/console daplos:parse fichier.dap --format=json
```

Utilisation dans le code
------------------------

[](#utilisation-dans-le-code)

```
use YoanBernabeu\DaplosBundle\Enum\DaplosReferentialType;
use YoanBernabeu\DaplosBundle\Parser\Contract\FileParserInterface;

// Référentiels
$cultures = $repository->findByReferentialType(DaplosReferentialType::CULTURES);

// Parser
$document = $parser->parseFile('fichier.dap');
foreach ($document->parcelles as $parcelle) {
    echo $parcelle->nom;
    foreach ($parcelle->getEvenements() as $intervention) {
        echo $intervention->libelleIntervention;
    }
}
```

Documentation
-------------

[](#documentation)

- [Synchronisation des référentiels](docs/synchronisation.md)
- [Génération d'entité](docs/generation-entite.md)
- [Parser de fichiers .dap](docs/parser.md)
- [Traits et DTOs](docs/traits-dto.md)
- [Utilisation dans le code](docs/utilisation-code.md)
- [FAQ](docs/faq.md)

Tests
-----

[](#tests)

```
composer test      # Tests unitaires
composer phpstan   # Analyse statique
composer cs-check  # Code style
composer qa        # Tout
```

Dépendances
-----------

[](#dépendances)

- PHP &gt;= 8.1
- Symfony 6.4+ / 7.x / 8.x
- Doctrine ORM

Licence
-------

[](#licence)

[MIT](LICENSE)

Auteur
------

[](#auteur)

**Yoan Bernabeu** pour SeineYonne

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance82

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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 ~9 days

Total

11

Last Release

91d ago

PHP version history (2 changes)v0.1.0PHP &gt;=8.1

v0.3.0PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/21f6c1e090b5d45bb8bd5569f7779bde35d19fd06844327ed0d369c3544fa2e8?d=identicon)[yoanbernabeu](/maintainers/yoanbernabeu)

---

Top Contributors

[![yoanbernabeu](https://avatars.githubusercontent.com/u/59195351?v=4)](https://github.com/yoanbernabeu "yoanbernabeu (5 commits)")

---

Tags

symfonybundledaplos

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yoanbernabeu-daplos-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/yoanbernabeu-daplos-bundle/health.svg)](https://phpackages.com/packages/yoanbernabeu-daplos-bundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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