PHPackages                             jaxon-php/jaxon-codeigniter - 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. [Framework](/categories/framework)
4. /
5. jaxon-php/jaxon-codeigniter

ActiveLibrary[Framework](/categories/framework)

jaxon-php/jaxon-codeigniter
===========================

Jaxon library integration for the CodeIgniter framework

v4.0.2(3y ago)52032BSD-3-ClausePHP

Since Jul 15Pushed 12mo ago3 watchersCompare

[ Source](https://github.com/jaxon-php/jaxon-codeigniter)[ Packagist](https://packagist.org/packages/jaxon-php/jaxon-codeigniter)[ Docs](https://github.com/jaxon-php/jaxon-codeigniter)[ RSS](/packages/jaxon-php-jaxon-codeigniter/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (2)Versions (31)Used By (0)

Jaxon integration for CodeIgniter 4
===================================

[](#jaxon-integration-for-codeigniter-4)

This package integrates the [Jaxon library](https://github.com/jaxon-php/jaxon-core) into the CodeIgniter 4 framework.

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

[](#installation)

The version 4 of the package requires CodeIgniter version 4.

Install the package with `Composer`.

```
composer require jaxon-php/jaxon-codeigniter ^4.0
```

Or

```
{
    "require": {
        "jaxon-php/jaxon-codeigniter": "^4.0",
    }
}
```

And run `composer install`.

Filter
------

[](#filter)

This package provides a filter that must be attached to the routes to all the pages where the Jaxon features are enabled.

In the `app/Config/Routes.php` file, a route must be defined for Jaxon requests.

```
// Add the Jaxon filter to Jaxon-enabled routes.
$routes->get('/', 'Demo::index', ['filter' => JaxonConfigFilter::class]);

// Jaxon request processing route.
$routes->post('/jaxon', 'Demo::jaxon', ['filter' => JaxonConfigFilter::class]);
```

This is an example of a CodeIgniter controller using the Jaxon library.

```
namespace App\Controllers;

use Jaxon\Demo\Ajax\Bts;
use Jaxon\Demo\Ajax\Pgw;

use function view;

class Demo extends BaseController
{
    public function index()
    {
        $jaxon = jaxon()->app();

        // Print the page
        return view('demo/index', [
            'jaxonCss' => $jaxon->css(),
            'jaxonJs' => $jaxon->js(),
            'jaxonScript' => $jaxon->script(),
            'pageTitle' => "CodeIgniter Framework",
            // Jaxon request to the Bts Jaxon class
            'bts' => $jaxon->request(Bts::class),
            // Jaxon request to the Pgw Jaxon class
            'pgw' => $jaxon->request(Pgw::class),
        ]);
    }

    public function jaxon()
    {
        $jaxon = jaxon()->app();
        if(!$jaxon->canProcessRequest())
        {
            // Jaxon failed to find a plugin to process the request
            return; // Todo: return an error message
        }

        return $jaxon->processRequest();
    }
}
```

Configuration
-------------

[](#configuration)

Copy the `config/Jaxon.php` file in this package to the `app/Config` dir of the CodeIgniter app.

The settings in the `config/Jaxon.php` config file are separated into two sections. The options in the `lib` section are those of the Jaxon core library, while the options in the `app` sections are those of the CodeIgniter application.

The following options can be defined in the `app` section of the config file.

NameDescriptiondirectoriesAn array of directory containing Jaxon application classesviewsAn array of directory containing Jaxon application viewsBy default, the `views` array is empty. Views are rendered from the framework default location. There's a single entry in the `directories` array with the following values.

NameDefault valueDescriptiondirectory'jaxon/ajax'The directory of the Jaxon classesnamespace\\Jaxon\\AjaxThe namespace of the Jaxon classesseparator.The separator in Jaxon class namesprotectedempty arrayPrevent Jaxon from exporting some methodsUsage
-----

[](#usage)

### The Jaxon classes

[](#the-jaxon-classes)

The Jaxon classes can inherit from `\Jaxon\App\CallableClass`. By default, they are located in the `jaxon/app` dir of the CodeIgniter application, and the associated namespace is `\Jaxon\Ajax`.

This is a simple example of a Jaxon class, defined in the `jaxon/ajax/HelloWorld.php` file.

```
namespace Jaxon\Ajax;

class HelloWorld extends \Jaxon\App\CallableClass
{
    public function sayHello()
    {
        $this->response->assign('div2', 'innerHTML', 'Hello World!');
    }
}
```

Contribute
----------

[](#contribute)

- Issue Tracker: github.com/jaxon-php/jaxon-codeigniter/issues
- Source Code: github.com/jaxon-php/jaxon-codeigniter

License
-------

[](#license)

The package is licensed under the BSD license.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~116 days

Recently: every ~265 days

Total

29

Last Release

364d ago

Major Versions

v1.0.4 → v2.0-beta.12016-12-31

v2.0.x-dev → v3.0.02019-11-11

v3.0.4 → v4.0-rc.12022-04-20

v4.0.2 → v5.x-dev2024-06-30

### Community

Maintainers

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

---

Top Contributors

[![feuzeu](https://avatars.githubusercontent.com/u/15174329?v=4)](https://github.com/feuzeu "feuzeu (114 commits)")

---

Tags

phpcodeigniterajaxJaxon

### Embed Badge

![Health badge](/badges/jaxon-php-jaxon-codeigniter/health.svg)

```
[![Health](https://phpackages.com/badges/jaxon-php-jaxon-codeigniter/health.svg)](https://phpackages.com/packages/jaxon-php-jaxon-codeigniter)
```

###  Alternatives

[abydahana/aksara

Aksara is a CodeIgniter based CRUD Toolkit you can use to build complex applications become shorter, secure and more reliable just in a few lines of code. Serving both CMS or Framework, produce both HEADLESS (RESTful API) or TRADITIONAL (Browser Based), just by writing single controller. Yet it's reusable, scalable and ready to use!

1111.2k](/packages/abydahana-aksara)[jaxon-php/jaxon-laravel

Jaxon library integration for the Laravel framework

101.8k4](/packages/jaxon-php-jaxon-laravel)[phpmv/php-mv-ui

A JQuery and UI library for php and php MVC frameworks

3320.4k3](/packages/phpmv-php-mv-ui)

PHPackages © 2026

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