sergiors / doctrine-console-service-provider
Doctrine ORM Console for Pimple
1.0.0
2017-12-12 18:17 UTC
Requires
- php: >=5.5
- pimple/pimple: ^3.0
- sergiors/doctrine-orm-service-provider: ^1.0
Requires (Dev)
- pdepend/pdepend: ~2.0
- phing/phing: ~2.10
- phploc/phploc: ^4
- phpmd/phpmd: ~2.2
- phpunit/phpunit: ^6.0
- sebastian/phpcpd: ~2.0
- silex/silex: ^2
- squizlabs/php_codesniffer: ~2.1
- symfony/console: ^3
This package is not auto-updated.
Last update: 2024-12-21 21:52:37 UTC
README
To see the complete documentation, check out Doctrine Console
Install
composer require sergiors/doctrine-console-service-provider "dev-master"
How to use
Create your console file:
use Silex\Application; use Silex\Provider\DoctrineServiceProvider; use Sergiors\Silex\Provider\DoctrineCacheServiceProvider; use Sergiors\Silex\Provider\DoctrineOrmServiceProvider; use Sergiors\Silex\Provider\ConsoleServiceProvider; use Sergiors\Silex\Provider\DoctrineConsoleServiceProvider; $app = new Application(); $app->register(new ConsoleServiceProvider()); $app->register(new DoctrineServiceProvider()); $app->register(new DoctrineCacheServiceProvider()); $app->register(new DoctrineOrmServiceProvider()); $app->register(new DoctrineConsoleServiceProvider()); $app->boot(); $app['console']->run();
php console
Be happy!
License
MIT