Download the PHP package cancio-labs/cpf-doctrine-type without Composer
On this page you can find all versions of the php package cancio-labs/cpf-doctrine-type. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cancio-labs/cpf-doctrine-type
More information about cancio-labs/cpf-doctrine-type
Files in cancio-labs/cpf-doctrine-type
Download cancio-labs/cpf-doctrine-type
More information about cancio-labs/cpf-doctrine-type
Files in cancio-labs/cpf-doctrine-type
Vendor cancio-labs
Package cpf-doctrine-type
Short Description A custom mapping type for CPF value object.
License GPL-3.0-or-later
Homepage https://github.com/canciolabs/cpf-doctrine-type
Package cpf-doctrine-type
Short Description A custom mapping type for CPF value object.
License GPL-3.0-or-later
Homepage https://github.com/canciolabs/cpf-doctrine-type
Please rate this library. Is it a good library?
Informations about the package cpf-doctrine-type
CPF Doctrine Type
This tiny package contains a custom mapping type for CPF value object.
Requirements
- PHP >= 7.4
- Doctrine DBAL >= 3.0
Installation
composer require cancio-labs/cpf-doctrine-type
How to use it
First, copy the class name of the Cpf mapping type:
'CancioLabs\Doctrine\Type\Cpf\CpfType'
Then, register it in your application by following one of these guides:
- Symfony Framework: https://symfony.com/doc/current/doctrine/dbal.html
- Doctrine: https://www.doctrine-project.org/projects/doctrine-orm/en/3.2/cookbook/custom-mapping-types.html
Finally, use the 'cpf' mapping type inside your entity:
use CancioLabs\ValueObject\Cpf\Cpf;
#[ORM\Column(type: 'cpf')]
private ?Cpf $cpf = null;
All versions of cpf-doctrine-type with dependencies
PHP Build Version
Package Version
The package cancio-labs/cpf-doctrine-type contains the following files
Loading the files please wait ....