A Doctrine ORM bridge for Laravel 5

Fund package maintenance!
patrickbrouwers

Installs: 3 375 756

Dependents: 89

Suggesters: 8

Security: 0

Stars: 815

Watchers: 46

Forks: 178

Open Issues: 33

2.0.1 2023-11-06 16:06 UTC

README

cf009822-c91a-11e5-8f19-63ce1d77e8b2.jpg

GitHub release Github actions Scrutinizer Packagist Packagist

A drop-in Doctrine ORM 2 implementation for Laravel

$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

Read the full documentation.

Versions

Version Supported Laravel Versions
~1.5 6.x
~1.6 7.x
~1.7 8.x
~1.8 9.x
~2.0 10.x

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.