PHPackages                             rcalicdan/ci4-larabridge - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rcalicdan/ci4-larabridge

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rcalicdan/ci4-larabridge
========================

A CodeIgniter 4 library package with Laravel package integrations and Automatic Setup and more

1.8.0(11mo ago)123511MITPHPPHP ^8.1

Since Apr 25Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/rcalicdan/ci4-larabridge)[ Packagist](https://packagist.org/packages/rcalicdan/ci4-larabridge)[ RSS](/packages/rcalicdan-ci4-larabridge/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (13)Used By (1)

CI4-LaraBridge Documentation
============================

[](#ci4-larabridge-documentation)

Introduction
------------

[](#introduction)

CI4-LaraBridge is a bridge package that brings Laravel-like functionality to CodeIgniter 4 applications. This package aims to provide a familiar Laravel development experience while maintaining the speed and simplicity of the CodeIgniter 4 framework without touching its core features.

> This package is in experimental stage and many more features may change or added

Installation
------------

[](#installation)

To install the package, run the following command in your CodeIgniter 4 project:

```
composer require rcalicdan/ci4-larabridge
```

After installation, you need to run the setup command to initialize the package:

```
php spark laravel:setup
```

This command will:

- Set up and publish configuration files
- Configure package events
- Set up autodiscovery features

Always run this setup command before using any CI4-LaraBridge features in your application.

Why CI4-LaraBridge?
-------------------

[](#why-ci4-larabridge)

This package was created to address the needs of developers who:

1. Are familiar with Laravel but work in a CodeIgniter 4 environment
2. Want to leverage some of Laravel's elegant syntax and powerful features without switching frameworks
3. Need to maintain existing CodeIgniter projects but prefer Laravel's development approach

Who Should Use It?
------------------

[](#who-should-use-it)

CI4-LaraBridge is ideal for:

- Laravel developers transitioning to CodeIgniter 4 projects
- CodeIgniter 4 developers looking to adopt Laravel-style syntax and patterns
- Teams working with mixed Laravel/CodeIgniter codebases
- Developers who appreciate Laravel's expressiveness but prefer CodeIgniter's performance

Features
--------

[](#features)

CI4-LaraBridge brings several key Laravel features to CodeIgniter 4:

- **Eloquent ORM**: Use Laravel's powerful ORM for database operations: [Check Here](docs/eloquent/index.md)
- **Blade Templating**: Implement Blade templates for clean, reusable views: [Check Here](docs/blade/index.md)
- **Laravel Validation**: Leverage Laravel's robust validation system: [Check Here](docs/validations/index.md)
- **Laravel Style Form Requests**: Encapsulate validation logic in dedicated request classes:: [Check Here](docs/validation/index.md)
- **Gates and Policies**: Implement Laravel-style authorization: [Check Here](docs/authorization/index.md)
- **Simple Authentication**: Easily implement user authentication
- **Auto Redirect Error Validation**: Automatic redirection with validation errors
- **Clean Syntax**: Write more expressive, readable code
- **Eloquent Migration and Models**: Define and manage database schema with Eloquent
- **Pagination Support**: Easily paginate results with Laravel-style methods
- **Laravel HTTP**: Easily calls api with it's expressive and elegant systax

Benefits
--------

[](#benefits)

- **Familiar Syntax**: Use Laravel-style facades, helpers, and patterns in CodeIgniter 4
- **Gradual Adoption**: Implement Laravel features incrementally without overhauling your entire application
- **Performance**: Maintain CodeIgniter's speed while enhancing developer experience
- **Best of Both Worlds**: Leverage specific Laravel strengths without abandoning CodeIgniter benefits
- **Smoother Learning Curve**: Reduce the learning curve for Laravel developers working on CI4 projects

Custom Commands
---------------

[](#custom-commands)

CI4-LaraBridge provides several custom commands to enhance your development experience: [Check Here](docs/commands/index.md)

Syntax Comparison
-----------------

[](#syntax-comparison)

### Creating a New User

[](#creating-a-new-user)

#### With CI4-LaraBridge:

[](#with-ci4-larabridge)

```
public function store()
{
    User::create(StoreUserRequest::validateRequest());
    return redirect()->route_to('users.index')->with('success', 'User created successfully');
}
```

#### Native CodeIgniter 4:

[](#native-codeigniter-4)

```
public function store()
{
    $validation = \Config\Services::validation();
    $validation->setRules([
        'name' => 'required|min_length[3]',
        'email' => 'required|valid_email|is_unique[users.email]',
        'password' => 'required|min_length[8]'
    ]);

    if (!$validation->withRequest($this->request)->run()) {
        return redirect()->back()->withInput()->with('errors', $validation->getErrors());
    }

    $userModel = new \App\Models\UserModel();
    $userModel->insert([
        'name' => $this->request->getPost('name'),
        'email' => $this->request->getPost('email'),
        'password' => password_hash($this->request->getPost('password'), PASSWORD_BCRYPT)
    ]);

    return redirect()->to('/users')->with('message', 'User created successfully');
}
```

### Retrieving Users with Pagination

[](#retrieving-users-with-pagination)

#### With CI4-LaraBridge:

[](#with-ci4-larabridge-1)

```
public function index()
{
    $users = User::paginate(15);
    return view('users.index', compact('users'));
}
```

#### Native CodeIgniter 4:

[](#native-codeigniter-4-1)

```
public function index()
{
    $userModel = new \App\Models\UserModel();
    $data['users'] = $userModel->paginate(15);
    $data['pager'] = $userModel->pager;

    return view('users/index', $data);
}
```

Plan Features
-------------

[](#plan-features)

1. Eloquent Seeder
2. Eloquent Factory
3. More Complex Authentication

Limitations
-----------

[](#limitations)

It's important to note that CI4-LaraBridge does not implement all advanced Laravel features. The package focuses on the most commonly used Laravel functionality while maintaining compatibility with CodeIgniter 4's architecture. Some advanced Laravel features like:

- Complex queue systems
- Laravel's event broadcasting
- Some aspects of the advanced authorization system
- Certain middleware implementations

are not fully implemented or may work differently than in Laravel.

Getting Started
---------------

[](#getting-started)

After installation and setup, you can begin using Laravel-style syntax in your CodeIgniter 4 application. Check the GitHub repository at  for detailed usage examples, available features, and configuration options.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance53

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

12

Last Release

331d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/adefeba01f7aab9f1eed1cc3f5015be296d86126a4adb50257d81ec0bf23c8ca?d=identicon)[RCalicdan](/maintainers/RCalicdan)

---

Top Contributors

[![rcalicdan](https://avatars.githubusercontent.com/u/163510169?v=4)](https://github.com/rcalicdan "rcalicdan (374 commits)")[![google-labs-jules[bot]](https://avatars.githubusercontent.com/in/842251?v=4)](https://github.com/google-labs-jules[bot] "google-labs-jules[bot] (1 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/rcalicdan-ci4-larabridge/health.svg)

```
[![Health](https://phpackages.com/badges/rcalicdan-ci4-larabridge/health.svg)](https://phpackages.com/packages/rcalicdan-ci4-larabridge)
```

###  Alternatives

[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/lumen-framework

The Laravel Lumen Framework.

1.5k26.2M709](/packages/laravel-lumen-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
