PHP code example of mediagone / types-france-doctrine

1. Go to this page and download the library: Download mediagone/types-france-doctrine library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mediagone / types-france-doctrine example snippets


use Doctrine\DBAL\Types\Type;
use Mediagone\Doctrine\Types\France\Geo\PostalCodeType;

Type::addType(PostalCodeType::NAME, PostalCodeType::class);
// or, with a custom name:
Type::addType('app_postalcode', PostalCodeType::class);