Home

Awesome

Laravel Doctrine ORM

<img src="https://cloud.githubusercontent.com/assets/7728097/12726966/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();

Documentation

Read the full documentation.

Versions

VersionSupported Laravel Versions
~1.56.x
~1.67.x
~1.78.x
~1.89.x
~2.010.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.