lbigroupp / dpegenerator
This package is use for generate French DPEG picture. This new DPEG is an evolution of ELAN law on 2021-07-01.
Installs: 3 103
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^8.2
- ext-imagick: *
- ext-json: *
- dev-master
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.3
- v3.0.2
- v3.0.1
- v2.3.19
- v2.3.18
- v2.3.17
- v2.3.16
- v2.3.15
- v2.3.14
- v2.3.13
- v2.3.12
- v2.3.11
- v2.3.10
- v2.3.9
- v2.3.8
- v2.3.7
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2
- 2.1.1
- 2.1
- 2.0.2
- 2.0.1
- v1.5
- v1.4
- v1.3
- v1.2.1
- v1.2
- v1.1
- v1.0
- dev-staging
- dev-bugfix/ges-d-echelle-36-40
This package is auto-updated.
Last update: 2025-05-20 09:41:49 UTC
README
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 https://packagist.org/packages/lbigroupp/dpegenerator
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
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
$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
$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->setSuoerficie($superficie); $dpe->setPictureType($type); // return file location echo $dpe->generatePicture();
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 >= 7.1 ;
2.1
: addition DPEG for Guadeloupe via iso code GP;
2.3
: addition Final consuption and PHP =>7.4;