petrknap / doctrine-namingstrategies
Naming strategies for Doctrine
Package info
github.com/petrknap/doctrine-namingstrategies
pkg:composer/petrknap/doctrine-namingstrategies
v2.0.1
2020-08-11 17:56 UTC
Requires
- php: >=7.2
- doctrine/orm: ^2.3
Requires (Dev)
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2026-03-01 00:32:26 UTC
README
PetrKnap\Doctrine\NamingStrategies\Orm\Mapping\UnderscoreNamingStrategy
Underscore naming strategy with support for namespaces and prefixes.
| Class | Original | This | This with prefix Foo |
This with prefix Foo and allowed root class DateTime |
|---|---|---|---|---|
| Bar | bar | bar | - | - |
| Foo\Bar | bar | foo__bar | bar | bar |
| DateTime | date_time | date_time | - | date_time |
How to install
Run composer require petrknap/doctrine-namingstrategies or merge this JSON code with your project composer.json file manually and run composer install. Instead of dev-master you can use one of released versions.
{
"require": {
"petrknap/doctrine-namingstrategies": "dev-master"
}
}
Or manually clone this repository via git clone https://github.com/petrknap/doctrine-namingstrategies.git or download this repository as ZIP and extract files into your project.