Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aididalam/codeigniter-eloquent-orm
Eloquent ORM intrigatted in Codeigniter 3
https://github.com/aididalam/codeigniter-eloquent-orm
codeigniter codeigniter-eloquent codeigniter-library codeigniter-model codeigniter-orm eloquent eloquent-orm
Last synced: about 1 month ago
JSON representation
Eloquent ORM intrigatted in Codeigniter 3
- Host: GitHub
- URL: https://github.com/aididalam/codeigniter-eloquent-orm
- Owner: aididalam
- Created: 2022-05-11T17:31:33.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-28T10:34:03.000Z (almost 2 years ago)
- Last Synced: 2024-11-14T14:34:40.850Z (about 2 months ago)
- Topics: codeigniter, codeigniter-eloquent, codeigniter-library, codeigniter-model, codeigniter-orm, eloquent, eloquent-orm
- Language: PHP
- Homepage:
- Size: 498 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Codeigniter 3.1.0 Integrated with Illuminate Database Eloquent
### Requires
php: >=5.3.7
### Installation
Install the Illuminate Database package with Composer:
```sh
$ composer install
```### Using The Eloquent ORM
**Example:**
Model
```php
load->model('user');
$users = User::where('votes', '>', 1)->get();
$this->load->view('home/index', ['users' => $users]);
}
}
```
### Bonus
dd() Function is also implemented;
Example:
```php
class Home extends CI_Controller {public function index()
{
$this->load->model('user');
$users = User::all();
dd($users);
}
}
```### Documentation
- [CodeIgniter documentation](http://www.codeigniter.com/user_guide/)
- [Laravel framework - Eloquent documentation](https://laravel.com/docs/9.x/eloquent)
### Inspired From
- [codeigniter-eloquent](https://github.com/aduartem/codeigniter-eloquent/)