PHPackages                             lbigroupp/dpegenerator - 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. lbigroupp/dpegenerator

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

lbigroupp/dpegenerator
======================

This package is use for generate French DPEG picture. This new DPEG is an evolution of ELAN law on 2021-07-01.

v3.1.4(8mo ago)09.4k↓85.3%2MITPHPPHP ^8.2

Since Jun 25Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/rvaly/dpegenerator)[ Packagist](https://packagist.org/packages/lbigroupp/dpegenerator)[ RSS](/packages/lbigroupp-dpegenerator/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)DependenciesVersions (51)Used By (0)

DPE Generator
=============

[](#dpe-generator)

DPE Generator is a library that allows you to quickly generate an image of the new DPE and GES. If you generate DPEG picture for Guadaloupe (GP), you must add GP value in construct.

Available on

### list of available functions (and their type)

[](#list-of-available-functions-and-their-type)

```
(boolean) setGenerateImage
```

```
(string) setPathToWriteImage
```

```
(string) setNameOfPicture
```

```
(string) setPictureType
```

```
(int) setDpeVal
```

```
(int) setGesVal
```

```
(int) setSuperficie
```

### List of available constants

[](#list-of-available-constants)

It's constants allow you to define the type of image you want DPE or GES.

```
const DPE_TYPE;
```

```
const GES_TYPE;
```

#### Example for generate picture on your personal folder

[](#example-for-generate-picture-on-your-personal-folder)

```
$type = \LBIGroupDpeGenerator\DpeGenerator::DPE_TYPE;
// OR $type = \LBIGroupDpeGenerator\DpeGenerator::GES_TYPE
$dpeVal = 29;
$gesVal = 2;
$superficie = 35;
$imgTarget = "YOUR_TARGET";
$pictureName = "YOUR_PICTURE_NAME";

if (file_exists($imgTarget . $pictureName . '.png')) {
    return $imgTarget . $pictureName . '.png';
}

$dpe = new \LBIGroupDpeGenerator\DpeGenerator();
$dpe->setDpeVal($dpeVal);
$dpe->setGesVal($gesVal);
$dpe->setSuperficie($superficie);
$dpe->setPictureType($type);
$dpe->setPathToWriteImage($imgTarget);
$dpe->setNameOfPicture($pictureName);
$dpe->setGenerateImage(true);

// return file location
echo $dpe->generatePicture();
```

#### Example for see picture direcly on your website

[](#example-for-see-picture-direcly-on-your-website)

```
$type = \LBIGroupDpeGenerator\DpeGenerator::DPE_TYPE;
// OR $type = \LBIGroupDpeGenerator\DpeGenerator::GES_TYPE
$dpeVal = 29;
$gesVal = 2;
$superficie = 35;

$dpe = new \LBIGroupDpeGenerator\DpeGenerator();
$dpe->setDpeVal($dpeVal);
$dpe->setGesVal($gesVal);
$dpe->setSuperficie($superficie);
$dpe->setPictureType($type);

// return file location
echo $dpe->generatePicture();
```

Release Notes
-------------

[](#release-notes)

`v1.0` / `v1.1` / `v1.1` : it's not a stable versions ;

`1.2.1` : stable version for all PHP versions (5, 7 and 8) ;

`2.0.1` : stable version ONLY for PHP &gt;= 7.1 ;

`2.1` : addition DPEG for Guadeloupe via iso code GP;

`2.3` : addition Final consuption and PHP =&gt;7.4;

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance69

Regular maintenance activity

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~39 days

Recently: every ~128 days

Total

45

Last Release

127d ago

Major Versions

v1.5 → v2.3.12023-01-19

v2.3.1 → v3.0.12023-03-22

v2.3.2 → v3.0.22023-05-02

v2.3.18 → v3.1.02024-09-23

v2.3.19 → v3.1.32025-01-20

PHP version history (4 changes)2.0.1PHP ^7.2

v1.3PHP ^5.4

v2.3.1PHP ^7.4

v3.0.1PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![rvaly](https://avatars.githubusercontent.com/u/10992163?v=4)](https://github.com/rvaly "rvaly (10 commits)")[![JRoux7](https://avatars.githubusercontent.com/u/148753342?v=4)](https://github.com/JRoux7 "JRoux7 (4 commits)")[![IT-Joris](https://avatars.githubusercontent.com/u/122261387?v=4)](https://github.com/IT-Joris "IT-Joris (1 commits)")

---

Tags

dpe-gesdpegloi-elan

### Embed Badge

![Health badge](/badges/lbigroupp-dpegenerator/health.svg)

```
[![Health](https://phpackages.com/badges/lbigroupp-dpegenerator/health.svg)](https://phpackages.com/packages/lbigroupp-dpegenerator)
```

###  Alternatives

[mopa/composer-bridge

Symfony2 Composer Bridge

363.6M7](/packages/mopa-composer-bridge)[craftcms/guest-entries

This plugin allows you to save guest entries from the front-end of your website.

10794.2k4](/packages/craftcms-guest-entries)[broadway/uuid-generator

UUID generator for broadway/broadway.

202.2M11](/packages/broadway-uuid-generator)[spatie/sidecar-shiki

Run Shiki highlighting with Sidecar

3710.2k](/packages/spatie-sidecar-shiki)

PHPackages © 2026

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