PHPackages                             pfazzi/isbn-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. pfazzi/isbn-doctrine

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

pfazzi/isbn-doctrine
====================

Allow the use of a pfazzi/isbn as Doctrine field type.

v0.1.2(7y ago)07MITPHPPHP ^7.2

Since May 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/pfazzi/isbn-doctrine)[ Packagist](https://packagist.org/packages/pfazzi/isbn-doctrine)[ RSS](/packages/pfazzi-isbn-doctrine/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

isbn-doctrine
=============

[](#isbn-doctrine)

The pfazzi/isbn-doctrine package provides the ability to use pfazzi/isbn as a Doctrine field type.

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

[](#installation)

The preferred method of installation is via [Packagist](https://packagist.org/packages/ramsey/uuid-doctrine) and [Composer](http://getcomposer.org/). Run the following command to install the package and add it as a requirement to your project's `composer.json`:

```
composer require pfazzi/isbn-doctrine
```

Examples
--------

[](#examples)

### Configuration

[](#configuration)

To configure Doctrine to use pfazzi/isbn as a field type, you'll need to set up the following in your bootstrap:

```
\Doctrine\DBAL\Types\Type::addType('isbn', 'Pfazzi\Isbn\Doctrine\IsbnType');
```

In Symfony:

```
# app/config/config.yml
doctrine:
   dbal:
       types:
           isbn: Pfazzi\Isbn\Doctrine\IsbnType
```

Then, in your models, you may annotate properties by setting the `@Column`type to `isbn`. Doctrine will handle the rest.

```
/**
 * @ORM\Entity()
 */
class Book
{
    /**
     * @ORM\Id()
     * @ORM\Column(type="isbn")
     *
     * @var Isbn
     */
    private $isbn;

    public function __construct(Isbn $isbn)
    {
        $this->isbn = $isbn;
    }

    public function getIsbn(): Isbn
    {
        return $this->isbn;
    }
}
```

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

2649d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4489261?v=4)[Patrick Luca Fazzi](/maintainers/pfazzi)[@pfazzi](https://github.com/pfazzi)

---

Top Contributors

[![pfazzi](https://avatars.githubusercontent.com/u/4489261?v=4)](https://github.com/pfazzi "pfazzi (9 commits)")

---

Tags

doctrineidentifierisbnphpphp7

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pfazzi-isbn-doctrine/health.svg)

```
[![Health](https://phpackages.com/badges/pfazzi-isbn-doctrine/health.svg)](https://phpackages.com/packages/pfazzi-isbn-doctrine)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M418](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

12017.1k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.4k1](/packages/kimai-kimai)[api-platform/doctrine-orm

Doctrine ORM bridge

314.8M106](/packages/api-platform-doctrine-orm)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1617.3k16](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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