kilip / laravel-doctrine-orm
A Doctrine ORM bridge for Laravel 5
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Fund package maintenance!
1.7.9
2021-07-15 05:55 UTC
Requires
- php: ^7.3|^8.0
- doctrine/cache: ^1
- doctrine/inflector: ^1.4
- doctrine/orm: ^2.6
- doctrine/persistence: ^1.3.5|^2.0
- illuminate/auth: ^8.0
- illuminate/console: ^8.0
- illuminate/container: ^8.0
- illuminate/contracts: ^8.0
- illuminate/pagination: ^8.0
- illuminate/routing: ^8.0
- illuminate/support: ^8.0
- illuminate/validation: ^8.0
- illuminate/view: ^8.0
- symfony/serializer: ^2.7|^3.0|^4.0|^5.0
Requires (Dev)
- barryvdh/laravel-debugbar: ~3.0
- illuminate/log: ^8.0
- illuminate/notifications: ^8.0
- illuminate/queue: ^8.0
- itsgoingd/clockwork: ~1.9|^5.0
- mockery/mockery: ^1.3.1
- phpunit/phpunit: ^9.3
Suggests
- fzaninotto/faker: Required to use the entity factory builder (~1.4).
- laravel-doctrine/acl: to integrate Doctrine roles & permissions with Laravel's Authorization system (~1.0)
- laravel-doctrine/extensions: to add Behavioral and Query/Type Extensions for Laravel Doctrine (~1.0)
- laravel-doctrine/fluent: Fluent mapping driver (alternative to xml, yaml, ... (~1.1).
- laravel-doctrine/migrations: to add support for migrations in Laravel Doctrine (~1.0)
- yajra/laravel-oci8: Support for Laravel native queue and session database drivers in Oracle (~2.0).
This package is auto-updated.
Last update: 2023-10-10 12:35:43 UTC
README
A drop-in Doctrine ORM 2 implementation for Laravel 5+
$scientist = new Scientist( 'Albert', 'Einstein' ); $scientist->addTheory( new Theory('Theory of relativity') ); EntityManager::persist($scientist); EntityManager::flush();
- Easy configuration
- Pagination
- Pre-configured metadata, connections and caching
- Extendable: extend or add your own drivers for metadata, connections or cache
- Fluent, Annotations, YAML, SimplifiedYAML, XML, SimplifiedXML, Config and Static PHP metadata mappings
- Multiple entity managers and connections
- Laravel naming strategy
- Simple authentication implementation
- Password reminders implementation
- Doctrine console commands
- DoctrineExtensions supported
- Timestamps, Softdeletes and TablePrefix listeners
Documentation
Versions
| Version | Supported Laravel Versions |
|---|---|
| ~1.5 | 6.x |
| ~1.6 | 7.x |
| ~1.7 | 8.x |
Require this package
composer require laravel-doctrine/orm doctrine/inflector:"^1.4|^2.0"
Because of the auto package discovery feature Laravel has, the ServiceProvider and Facades are automatically registered.
To publish the config use:
php artisan vendor:publish --tag="config" --provider="LaravelDoctrine\ORM\DoctrineServiceProvider"
License
This package is licensed under the MIT license.
