petrknap / doctrine-namingstrategies
Naming strategies for Doctrine
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/petrknap/doctrine-namingstrategies
Requires
- php: >=7.2
- doctrine/orm: ^2.3
Requires (Dev)
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2025-10-29 02:56:58 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.