PHPackages                             kayladnls/doctrine-additions - 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. kayladnls/doctrine-additions

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

kayladnls/doctrine-additions
============================

Additional Doctrine Types and helpers

0.2.0(10y ago)1315.7k2MITPHPPHP &gt;=5.5

Since Nov 9Pushed 10y ago1 watchersCompare

[ Source](https://github.com/kayladnls/doctrine-additions)[ Packagist](https://packagist.org/packages/kayladnls/doctrine-additions)[ RSS](/packages/kayladnls-doctrine-additions/feed)WikiDiscussions master Synced today

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

Doctrine Additions
==================

[](#doctrine-additions)

This library offers a custom `UrlType` for Doctrine 2, based on `league/url`.

For additional information on custom doctrine types see [here](http://doctrine-orm.readthedocs.org/projects/doctrine-orm/en/latest/cookbook/custom-mapping-types.html).

### Usage:

[](#usage)

In your Bootstrap file:

```
use Doctrine\DBAL\Types\Type;

Type::addType('url', Kayladnls\DoctrineAdditions\Type\UrlType::class);

```

Register the type with your connection:

```
$conn = $em->getConnection();
$conn->getDatabasePlatform()->registerDoctrineTypeMapping('varchar', 'url');

```

Use The type in your entity:

```
class MyEntity
{
    /** @Column(type="url") */
    private $link;
}

```

#### Attributions

[](#attributions)

Inspired by [beberlei/DoctrineExtensions](https://github.com/beberlei/DoctrineExtensions)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~175 days

Total

2

Last Release

3714d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12d34e4d0259dc2a2460d2803beeffb06e778064b93cac1b8f289f2d7e13b23f?d=identicon)[greydnls](/maintainers/greydnls)

---

Top Contributors

[![greydnls](https://avatars.githubusercontent.com/u/1276798?v=4)](https://github.com/greydnls "greydnls (15 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kayladnls-doctrine-additions/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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