2017 © Pedro Peláez
 

library eloquent-codeigniter

Integration layer allowing use of the Laravel database library in CodeIgniter applications

image

carlosocarvalho/eloquent-codeigniter

Integration layer allowing use of the Laravel database library in CodeIgniter applications

  • Tuesday, May 9, 2017
  • by carlosocarvalho
  • Repository
  • 2 Watchers
  • 1 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Laravel CodeIgniter Database Integration

Build Status Latest Stable Version, (*1)

This package allows you to use the excellent Laravel database library (illuminate/database) inside your CodeIgniter applications., (*2)

Laravel normally uses PDO to make database connections. CodeIgniter establishes its own connection to the database., (*3)

If you are only using the Laravel database components, then this will not be a problem - you can simply disable the CodeIgniter database connection and use Laravel's instead. However, if your application is using a mixture of CodeIgniter and Laravel database libraries, this is the package for you., (*4)

This integration layer takes all requests made to the Laravel database library, converts them to raw SQL, then passes them through to the underlying CodeIgniter database driver. This means that you will not need to establish two separate connections to the database, and it also means that CodeIgniter database profiling functions will continue to work correctly., (*5)

Usage

In your composer.json file:, (*6)

{
    "require": {
        "expressodev/laravel-codeigniter-db": "~1.0"
    }
}

In your application:, (*7)

// use our mock PDO class if PDO is not enabled on this server
if (!class_exists('PDO')) {
    class_alias('Illuminate\CodeIgniter\FakePDO', 'PDO');
}

// pass all Laravel database queries through to CodeIgniter
$ci = get_instance();
$resolver = new Illuminate\CodeIgniter\CodeIgniterConnectionResolver($ci);
Illuminate\Database\Eloquent\Model::setConnectionResolver($resolver);

License

MIT License, (*8)

The Versions

09/05 2017

dev-master

9999999-dev

Integration layer allowing use of the Laravel database library in CodeIgniter applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil
by Carlos Carvalho

orm database laravel codeigniter illuminate ci expressionengine ee

09/05 2017

2.0.2

2.0.2.0

Integration layer allowing use of the Laravel database library in CodeIgniter applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil
by Carlos Carvalho

orm database laravel codeigniter illuminate ci expressionengine ee

09/05 2017

2.0.1

2.0.1.0

Integration layer allowing use of the Laravel database library in CodeIgniter applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil
by Carlos Carvalho

orm database laravel codeigniter illuminate ci expressionengine ee

07/05 2017

2.0.0

2.0.0.0

Integration layer allowing use of the Laravel database library in CodeIgniter applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

orm database laravel codeigniter illuminate ci expressionengine ee

05/02 2015

1.0.5

1.0.5.0

Integration layer allowing use of the Laravel database library in CodeIgniter applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

orm database laravel codeigniter illuminate ci expressionengine ee

03/12 2014

1.0.4

1.0.4.0

Integration layer allowing use of the Laravel database library in CodeIgniter applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

orm database laravel codeigniter illuminate ci expressionengine ee

14/08 2014

1.0.3

1.0.3.0

Integration layer allowing use of the Laravel database library in CodeIgniter applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

orm database laravel codeigniter illuminate ci expressionengine ee

15/06 2014

1.0.2

1.0.2.0

Integration layer allowing use of the Laravel database library in CodeIgniter applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

orm database laravel codeigniter illuminate ci expressionengine ee

15/06 2014

1.0.1

1.0.1.0

Integration layer allowing use of the Laravel database library in CodeIgniter applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

orm database laravel codeigniter illuminate ci expressionengine ee

04/03 2014

1.0.0

1.0.0.0

Integration layer allowing use of the Laravel database library in CodeIgniter applications

  Sources   Download

MIT

The Requires

 

The Development Requires

by Adrian Macneil

orm database laravel codeigniter illuminate ci expressionengine ee