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 today

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 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

2556d 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

[scienta/doctrine-json-functions

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

58523.9M36](/packages/scienta-doctrine-json-functions)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[pixelfederation/doctrine-resettable-em-bundle

Symfony bundle for decorating default entity managers using a resettable decorator.

20113.5k](/packages/pixelfederation-doctrine-resettable-em-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.

1022.4k](/packages/rcsofttech-audit-trail-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

813.1k](/packages/ahmed-bhs-doctrine-doctor)

PHPackages © 2026

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