All-in-on Doctrine meta package for Nette Framework.
Install package
composer require nettrine/nettrine
Register extension
extensions:
nettrine: Nettrine\Nettrine\DI\NettrineExtension
This package is composed of these packages:
- nettrine/dbal
- nettrine/orm
- nettrine/migrations
- nettrine/fixtures
- nettrine/cache
- nettrine/annotations
Schema definition
nettrine:
debug: <bool>
preset: <string|class>
Under the hood
Minimal configuration could look like this:
nettrine:
debug: %debugMode%
preset: default
composer require nettrine/migrations
composer require nettrine/fixtures
composer require nettrine/dbal
composer require nettrine/orm
# Extension > Nettrine
# => order is crucial
#
extensions:
# Common
nettrine.annotations: Nettrine\Annotations\DI\AnnotationsExtension
nettrine.cache: Nettrine\Cache\DI\CacheExtension
nettrine.migrations: Nettrine\Migrations\DI\MigrationsExtension
nettrine.fixtures: Nettrine\Fixtures\DI\FixturesExtension
# DBAL
nettrine.dbal: Nettrine\DBAL\DI\DbalExtension
nettrine.dbal.console: Nettrine\DBAL\DI\DbalConsoleExtension
# ORM
nettrine.orm: Nettrine\ORM\DI\OrmExtension
nettrine.orm.cache: Nettrine\ORM\DI\OrmCacheExtension
nettrine.orm.console: Nettrine\ORM\DI\OrmConsoleExtension
nettrine.orm.annotations: Nettrine\ORM\DI\OrmAnnotationsExtension
We've made a few skeletons with preconfigured Nettrine nad Contributte packages.
- https://github.com/contributte/webapp-skeleton
- https://github.com/contributte/apitte-skeleton
- https://github.com/contributte/playground (playground)
- https://contributte.org/examples.html (more examples)
This repository is inspired by these packages.
- https://github.com/doctrine
- https://gitlab.com/Kdyby/Doctrine
- https://gitlab.com/etten/doctrine
- https://github.com/DTForce/nette-doctrine
- https://github.com/portiny/doctrine
Thank you guys.