PHPackages                             nlzet/doctrine-mapping-typings-bundle - 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. nlzet/doctrine-mapping-typings-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

nlzet/doctrine-mapping-typings-bundle
=====================================

symfony bundle to convert doctrine entities into typescript typings

0.2.0(1y ago)09[1 PRs](https://github.com/nlzet/doctrine-mapping-typings-bundle/pulls)MITPHPPHP &gt;=8.1CI passing

Since Sep 30Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/nlzet/doctrine-mapping-typings-bundle)[ Packagist](https://packagist.org/packages/nlzet/doctrine-mapping-typings-bundle)[ Docs](https://github.com/nlzet/NlzetDoctrineMappingTypingsBundle)[ RSS](/packages/nlzet-doctrine-mapping-typings-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (17)Versions (4)Used By (0)

Doctrine mapping typings generator
==================================

[](#doctrine-mapping-typings-generator)

About
-----

[](#about)

This is a symfony bundle to integrate [nlzet/doctrine-mapping-typings](https://github.com/nlzet/doctrine-mapping-typings) into your symfony project. See project for more information.

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

[](#installation)

Install with composer:

```
composer require nlzet/doctrine-mapping-typings-bundle
```

Configuration
-------------

[](#configuration)

Full configuration example:

```
# Bundle configuration for nlzet/doctrine-mapping-typings-bundle
# note: All "\" characters are already stripped from the class names.
nlzet_doctrine_mapping_typings:
    # add regex patterns starting with a / or a partial match to exclude from the mapping.
    exclude_patterns:
    - '/[Cc]ache/'
    - 'DoctrineMigrations'
    # add key-value pairs to map a class to a different class.
    class_aliases:
        GedmoTranslatorTranslation: 'GedmoTranslation'
    # add key-value pairs to replace parts of the class name.
    # note: "\" characters are already stripped.
    class_replacements:
        Entity: ''
        Model: ''
        Bundle: ''
    # only output properties that are exposed through JMS Serializer Expose/Exclude and ExclusionPolicy.
    only_exposed: true
```

Usage
-----

[](#usage)

### Commands

[](#commands)

### About command

[](#about-command)

This command will show all mapped/filtered entities and show the target typings name. All configuration options are available as command line options (when no options are passed, the bundle configuration values take precedence).

```
php bin/console nlzet:doctrine-typings:about
```

### Convert command

[](#convert-command)

All configuration options are available as command line options (when no options are passed, the bundle configuration values take precedence).

```
php bin/console nlzet:doctrine-typings:convert output/doctrine-mapping-typings.ts
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance55

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~18 days

Total

2

Last Release

570d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/394ba4724b1dea1531cf482420137461004ae839030048c178b5a18b336bd961?d=identicon)[nlzet](/maintainers/nlzet)

---

Top Contributors

[![niels3W](https://avatars.githubusercontent.com/u/13118004?v=4)](https://github.com/niels3W "niels3W (2 commits)")[![nlzet](https://avatars.githubusercontent.com/u/932439?v=4)](https://github.com/nlzet "nlzet (1 commits)")

---

Tags

converterdoctrinedoctrine2entitiesmappingmetadatamodelssymfonysymfony-bundletypescripttypingsclisymfonydoctrinetypescript

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nlzet-doctrine-mapping-typings-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/nlzet-doctrine-mapping-typings-bundle/health.svg)](https://phpackages.com/packages/nlzet-doctrine-mapping-typings-bundle)
```

###  Alternatives

[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[a2lix/translation-form-bundle

Translate your doctrine objects easily with some helpers

3376.9M38](/packages/a2lix-translation-form-bundle)[kreait/firebase-bundle

Symfony Bundle for the Firebase Admin SDK

1534.7M2](/packages/kreait-firebase-bundle)[onurb/doctrine-yuml-bundle

Symfony Bundle to visualize the mapping of your entities with Yuml

4198.6k](/packages/onurb-doctrine-yuml-bundle)

PHPackages © 2026

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