PHPackages                             cancio-labs/cpf-doctrine-type - 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. [Database &amp; ORM](/categories/database)
4. /
5. cancio-labs/cpf-doctrine-type

ActiveLibrary[Database &amp; ORM](/categories/database)

cancio-labs/cpf-doctrine-type
=============================

A custom mapping type for CPF value object.

1.0.1(1y ago)07GPL-3.0-or-laterPHPPHP &gt;=7.4

Since Jul 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/canciolabs/cpf-doctrine-type)[ Packagist](https://packagist.org/packages/cancio-labs/cpf-doctrine-type)[ Docs](https://github.com/canciolabs/cpf-doctrine-type)[ RSS](/packages/cancio-labs-cpf-doctrine-type/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

CPF Doctrine Type
=================

[](#cpf-doctrine-type)

This tiny package contains a custom mapping type for CPF value object.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- Doctrine DBAL &gt;= 3.0

Installation
------------

[](#installation)

```
composer require cancio-labs/cpf-doctrine-type

```

How to use it
-------------

[](#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:
- Doctrine:

Finally, use the 'cpf' mapping type inside your entity:

```
use CancioLabs\ValueObject\Cpf\Cpf;

#[ORM\Column(type: 'cpf')]
private ?Cpf $cpf = null;

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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

Total

2

Last Release

657d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65afdceff66eba436390f0041cd197dfef88b72f96a719e11477c315eb797ebb?d=identicon)[nilosoares](/maintainers/nilosoares)

---

Tags

cpfdoctrine-dbalphpvalue-objecttypedoctrinecpfmapping type

### Embed Badge

![Health badge](/badges/cancio-labs-cpf-doctrine-type/health.svg)

```
[![Health](https://phpackages.com/badges/cancio-labs-cpf-doctrine-type/health.svg)](https://phpackages.com/packages/cancio-labs-cpf-doctrine-type)
```

###  Alternatives

[symfony/property-info

Extracts information about PHP class' properties using metadata of popular sources

2.2k256.7M854](/packages/symfony-property-info)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M36](/packages/scienta-doctrine-json-functions)[oro/doctrine-extensions

Doctrine Extensions for MySQL and PostgreSQL.

34411.8M19](/packages/oro-doctrine-extensions)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)

PHPackages © 2026

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