2017 © Pedro Peláez
 

library lumen-doctrine-mongodb-odm

Doctrine MongoDB ODM module for the Lumen PHP framework.

image

nordsoftware/lumen-doctrine-mongodb-odm

Doctrine MongoDB ODM module for the Lumen PHP framework.

  • Wednesday, November 29, 2017
  • by woss
  • Repository
  • 16 Watchers
  • 15 Stars
  • 284 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 3 Open issues
  • 17 Versions
  • 1 % Grown

The README.md

Lumen Doctrine MongoDB ODM

Doctrine MongoDB ODM module for the Lumen PHP framework., (*1)

Requirements

  • PHP >= 5.5

Usage

Install through Composer

Run the following command to install the package:, (*2)

composer require nordsoftware/lumen-doctrine-mongodb-odm

Register the Service Provider

Add the following line to bootstrap/app.php:, (*3)

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

You can now use the DocumentManager facade where needed., (*4)

Configure

Create config/odm.php into config and modify according to your needs. Check base class under src/Config/Config.php, (*5)

Example of config/mongodb.php, (*6)


<?php return [ 'mapping' => 'xml', 'paths' => [ base_path('some/Domain/Path/To/Your/Infrastructure/Resources/ODM'), base_path('some/App'), ], 'proxy' => [ 'directory' => storage_path('doctrine/proxies'), ], 'hydrator' => [ 'directory' => storage_path('doctrine/proxies'), ], ];

Create config/mongodb.php into config and modify according to your needs., (*7)

Example of config/mongodb.php, (*8)


<?php return [ 'default' => env('MONGODB_DB_CONNECTION', 'mongodb'), 'connections' => [ env('MONGODB_DB_CONNECTION', 'mongodb') => [ 'host' => env('MONGODB_DB_HOST', 'localhost'), 'database' => env('MONGODB_DB_DATABASE', 'forge'), 'username' => env('MONGODB_DB_USERNAME', 'forge'), 'password' => env('MONGODB_DB_PASSWORD', ''), 'timezone' => env('MONGODB_DB_TIMEZONE', '+00:00'), ] ], ];

Run Artisan

Run php artisan and you should see the new commands in the odm:* namespace section., (*9)

Contributing

Please note the following guidelines before submitting pull requests: - Use the PSR-2 coding style, (*10)

License

See LICENSE., (*11)

The Versions

29/11 2017

dev-master

9999999-dev

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

29/11 2017

1.5.2

1.5.2.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

29/11 2017

dev-develop

dev-develop

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

29/11 2017

1.5.1

1.5.1.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

29/11 2017

1.5.0

1.5.0.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

07/10 2016

1.4.0

1.4.0.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

29/07 2016

1.3.0

1.3.0.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

20/07 2016

1.2.1

1.2.1.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

18/07 2016

1.2.0

1.2.0.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

17/08 2015

1.1.2

1.1.2.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

14/08 2015

1.1.1

1.1.1.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

12/08 2015

1.1.0

1.1.0.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

11/08 2015

1.0.4

1.0.4.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

11/08 2015

1.0.3

1.0.3.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

05/08 2015

1.0.2

1.0.2.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

04/08 2015

1.0.1

1.0.1.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic

04/08 2015

1.0.0

1.0.0.0

Doctrine MongoDB ODM module for the Lumen PHP framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Danijel Maricic