nordsoftware / lumen-doctrine by crisu83

Doctrine module for the Lumen PHP framework.
2,413
41
16
Package Data
Maintainer Username: crisu83
Maintainer Contact: christofferniska@gmail.com (Christoffer Niska)
Package Create Date: 2015-05-13
Package Last Update: 2018-03-16
Home Page: https://packagist.org/packages/nordsoftware/lumen-doctrine
Language: PHP
License: MIT
Last Refreshed: 2019-05-14 03:06:50
Package Statistics
Total Downloads: 2,413
Monthly Downloads: 64
Daily Downloads: 0
Total Stars: 41
Total Watchers: 16
Total Forks: 5
Total Open Issues: 3

Lumen Doctrine ORM

Code Climate Scrutinizer Code Quality StyleCI Latest Stable Version Total Downloads License

Doctrine module for the Lumen PHP framework.

Requirements

Usage

Installation

Run the following command to install the package through Composer:

composer require nordsoftware/lumen-doctrine

Bootstrapping

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 read the guidelines.

License

See LICENSE.