Skip to content

simonbowen/lumen-doctrine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lumen Doctrine ORM

Doctrine module for the Lumen PHP framework.

Requirements

  • PHP >= 5.5

Usage

Install through Composer

Run the following command to install the package:

composer require nordsoftware/lumen-doctrine

Register the Service Provider

Add the following line to bootstrap/app.php:

$app->register('Nord\Lumen\Doctrine\ORM\DoctrineServiceProvider');

You can now use the EntityManager facade or inject the EntityManagerInterface where needed.

Configure

Copy config/doctrine.php into config and modify according to your needs.

The available configurations are:

  • mapping - Mapping driver to use (xml, yaml or annotations), defaults to xml
  • paths - Paths to entity mappings, defaults to an empty array
  • types - Custom Doctrine types to register, defaults to an empty array
  • proxy - Proxy configuration
  • repository - Repository class to use
  • logger - Logger class to use

Run Artisan

Run php artisan and you should see the new commands in the doctrine:* namespace section.

Contributing

Please note the following guidelines before submitting pull requests:

License

See LICENSE.

About

Doctrine module for the Lumen PHP framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%