neronplex / cake-orm-enabler
CakePHP ORM enabler for Laravel & Lumen
0.0.3
2017-02-14 15:25 UTC
Requires
- php: >=5.5.9
- cakephp/orm: ^3.3
- illuminate/support: ^5.0
Requires (Dev)
Suggests
- cakephp/cache: ^3.3
This package is not auto-updated.
Last update: 2024-12-07 20:55:14 UTC
README
cake-orm-enabler is a package to enable the cakephp/orm in Laravel.
Requirements
- Laravel or Lumen 5.0.x or later.
- CakePHP ORM 5.3.x or later.
Installing your project
Install via Composer
$ composer require neronplex/cake-orm-enabler
Adding Service Provider
In the case of Laravel.
// providers array in config/app.php Neronplex\CakeORMEnabler\ServiceProvider::class,
In the case of Lumen.
// add line in bootstrap/app.php $app->register(Neronplex\CakeORMEnabler\ServiceProvider::class);
Adding Facade
In the case of Laravel.
// aliases array in config/app.php 'aliases' => [ // other facades... 'TableRegistry' => Neronplex\CakeORMEnabler\Facades\TableRegistry::class, ],
In the case of Lumen.
// add line in bootstrap/app.php (5.2 or earlier) if (!class_exists('TableRegistry')) { class_alias('Neronplex\CakeORMEnabler\Facades\TableRegistry', 'TableRegistry'); } // add line in bootstrap/app.php (5.3 or later) $app->withFacades(TRUE, [ // other facades... 'Neronplex\CakeORMEnabler\Facades\TableRegistry' => 'TableRegistry', ]);
Usage
How to use the ORM case refer to the official reference.
License
Copyright © 2016 暖簾 (@neronplex) Licensed under the [Apache License, Version 2.0][Apache] [Apache]: http://www.apache.org/licenses/LICENSE-2.0