recca0120/laraigniter
The CodeIgniter framework
62
18
Larablocks Analysis
recca0120/laraigniter works with Laravel 5 (latest release v3.0.0, Aug 12, 2016), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Aug 12, 2016)
- 0 downloads a month (needs 10,000)
- 18 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Aug 12, 2016.
- No releases in the last 12 months.
- First released: Aug 6, 2016.
- 2 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require recca0120/laraigniter |
|
| Latest Version: | v3.0.0 |
| PHP: | >=5.2.4 |
| Laravel: | 5 |
| Last Updated: | Oct 8, 2016 |
| Links: | GitHub · Packagist |
Maintainer: recca0120
Codeigniter with Eloquent and Blade
Installation
Add Presenter to your composer.json file:
"require": {
"recca0120/laraigniter": "^0.1"
}
Now, run a composer update on the command line from the root of your project:
composer update
How to use
import user.sql to mysql
Database Config
application/config/database.php
$db['default']['hostname'] = 'your hostname';
$db['default']['username'] = 'your username';
$db['default']['password'] = 'your password';
$db['default']['database'] = 'your test';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = true;
$db['default']['db_debug'] = true;
$db['default']['cache_on'] = false;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = true;
$db['default']['stricton'] = false;
Model
application/models/User.php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class User extends Model
{
protected $fillable = [
'name',
'email',
'password',
];
}
Controller
application/controllers/welcome.php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
use App\Models\User;
class Welcome extends CI_Controller
{
public function index()
{
User::create([
'name' => 'test'.uniqid(),
'email' => 'test'.uniqid().'@test.com',
'password' => md5('test'.uniqid()),
]);
$users = User::paginate(5);
$this->output->set_output(View::make('users', compact('users')));
}
}
View
application/views/users.blade.php
<table width="100%" class="table">
<tbody>
<tr>
<th>id</th>
<th>name</th>
<th>email</th>
</tr>
</tbody>
@foreach ($users as $user)
<tbody>
<tr>
<td>{{ $user->id }}</td>
<td>{{ $user->name }}</td>
<td>{{ $user->email }}</td>
</tr>
</tbody>
@endforeach
</table>
{!! $users->links() !!}
Related Packages
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v3.0.0 | >=5.2.4 | MIT | |
| v2.0.0 | MIT |