PHPackages                             nepada/birth-number-doctrine - 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. nepada/birth-number-doctrine

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

nepada/birth-number-doctrine
============================

Czech birth number type for Doctrine.

v1.3.2(7mo ago)12.1k↓50%BSD-3-ClausePHPPHP &gt;=8.1.0 &lt;8.6CI passing

Since May 1Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/nepada/birth-number-doctrine)[ Packagist](https://packagist.org/packages/nepada/birth-number-doctrine)[ RSS](/packages/nepada-birth-number-doctrine/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (16)Versions (13)Used By (0)

Czech birth number Doctrine type
================================

[](#czech-birth-number-doctrine-type)

[![Build Status](https://github.com/nepada/birth-number-doctrine/workflows/CI/badge.svg)](https://github.com/nepada/birth-number-doctrine/actions?query=workflow%3ACI+branch%3Amaster)[![Coverage Status](https://camo.githubusercontent.com/fad51e57bf27fc48d492b10640eae9e7c11bad9a6faa726637962d67176e1f1d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6e65706164612f62697274682d6e756d6265722d646f637472696e652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/nepada/birth-number-doctrine?branch=master)[![Downloads this Month](https://camo.githubusercontent.com/72c2cf5f1cbddde5a564fc379a430ab5f7e205b8aa57808ad88ecdefb1db8064/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e65706164612f62697274682d6e756d6265722d646f637472696e652e737667)](https://packagist.org/packages/nepada/birth-number-doctrine)[![Latest stable](https://camo.githubusercontent.com/7242fd93d15245fccc9aaa734d93784aa4a4d890ab006f557cf5404c299f1786/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e65706164612f62697274682d6e756d6265722d646f637472696e652e737667)](https://packagist.org/packages/nepada/birth-number-doctrine)

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

[](#installation)

Via Composer:

```
$ composer require nepada/birth-number-doctrine
```

Register the type in your bootstrap:

```
\Doctrine\DBAL\Types\Type::addType(
    \Nepada\BirthNumberDoctrine\BirthNumberType::NAME,
    \Nepada\BirthNumberDoctrine\BirthNumberType::class
);
```

In Nette with [nettrine/dbal](https://github.com/nettrine/dbal) integration, you can register the types in your configuration:

```
dbal:
    connection:
        types:
            Nepada\BirthNumber\BirthNumber: Nepada\BirthNumberDoctrine\BirthNumberType
```

Usage
-----

[](#usage)

`BirthNumberType` maps database value to Birth number value object (see [nepada/birth-number](https://github.com/nepada/birth-number) for further details) and back. The Birth number is stored as fixed string without the slash (e.g. `0001010009`).

Example usage in the entity:

```
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Nepada\BirthNumber\BirthNumber;

#[Entity]
class Person
{

    #[Column(type: BirthNumber::class, nullable: false)]
    private BirthNumber $birthNumber;

    public function getBirthNumber(): BirthNumber
    {
        return $this->birthNumber;
    }

}
```

Example usage in query builder:

```
$result = $repository->createQueryBuilder('foo')
    ->select('foo')
    ->where('foo.birthNumber = :birthNumber')
     // the parameter value is automatically normalized to '0001010009'
    ->setParameter('birthNumber', '000101 / 0009', BirthNumberType::NAME)
    ->getQuery()
    ->getResult();
```

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance77

Regular maintenance activity

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 72% 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 ~284 days

Recently: every ~278 days

Total

8

Last Release

213d ago

PHP version history (6 changes)v1.0.0PHP &gt;=7.4.0

v1.1.0PHP &gt;=7.4.0 &lt;8.2

v1.1.1PHP &gt;=7.4.0 &lt;8.3

v1.2.0PHP &gt;=8.1.0 &lt;8.4

v1.3.1PHP &gt;=8.1.0 &lt;8.5

v1.3.2PHP &gt;=8.1.0 &lt;8.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b4780fe328102c4572737db639653c29d3081d1d3e051467f00d7f09a776399?d=identicon)[xificurk](/maintainers/xificurk)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (170 commits)")[![xificurk](https://avatars.githubusercontent.com/u/117465?v=4)](https://github.com/xificurk "xificurk (66 commits)")

---

Tags

netteValue Objectdoctrinebirth number

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nepada-birth-number-doctrine/health.svg)

```
[![Health](https://phpackages.com/badges/nepada-birth-number-doctrine/health.svg)](https://phpackages.com/packages/nepada-birth-number-doctrine)
```

###  Alternatives

[scienta/doctrine-json-functions

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

58523.9M36](/packages/scienta-doctrine-json-functions)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[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)[kdyby/doctrine

Doctrine integration into Nette Framework

1091.0M86](/packages/kdyby-doctrine)[nettrine/dbal

Doctrine DBAL for Nette Framework

322.6M19](/packages/nettrine-dbal)

PHPackages © 2026

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