PHPackages                             jaxon-php/jaxon-laravel - 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-laravel

ActiveLibrary[Framework](/categories/framework)

jaxon-php/jaxon-laravel
=======================

Jaxon library integration for the Laravel framework

v5.0.6(9mo ago)101.8k23BSD-3-ClausePHP

Since Jul 15Pushed 9mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (47)Used By (3)

Jaxon integration for Laravel
=============================

[](#jaxon-integration-for-laravel)

This package is an extension to integrate the [Jaxon library](https://github.com/jaxon-php/jaxon-core) into the Laravel framework. It works with Laravel version 7 or newer.

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

[](#installation)

Add the following lines in the `composer.json` file, and run the `composer update jaxon-php/*` command.

```
"require": {
    "jaxon-php/jaxon-laravel": "^5.0"
}
```

Publish the package configuration.

```
php artisan vendor:publish --tag=config
```

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

[](#configuration)

The library configuration is located in the `config/jaxon.php` file. It must contain both the `app` and `lib` sections defined in the documentation ().

An example is presented in the `config/config.php` file of this repo.

Routing and middlewares
-----------------------

[](#routing-and-middlewares)

The extension automatically registers two middlewares, `jaxon.config` and, `jaxon.ajax`.

The `jaxon.config` middleware calls the Jaxon library setup function. It must be added to the routes to pages that need to show Jaxon related content.

```
Route::get('/', [DemoController::class, 'index'])
    ->middleware(['web', 'jaxon.config'])
    ->name('demo');
```

The extension also registers the Jaxon requests route and the associated middlewares.

The route url is the value of the `lib.core.request.uri` option, the `app.request.route` gives an optional name to the route, and the `app.request.middlewares` option defines additional middlewares.

```
    'app' => [
        'request' => [
            'route' => 'jaxon', // The route name
            'middlewares' => ['web'],
        ],
    ],
    'lib' => [
        'core' => [
            'request' => [
                'uri' => '/jaxon', // The route url
            ],
        ],
    ],
```

Usage
-----

[](#usage)

This extension registers the following Blade directives to insert Jaxon js and css codes in the pages that need to show Jaxon related content.

```
// resources/views/demo/index.blade.php

@jxnCss()

@jxnJs()

@jxnScript()
```

Call factories
--------------

[](#call-factories)

This extension registers the following Blade directives for Jaxon [call factories](https://www.jaxon-php.org/docs/v5x/ui-features/call-factories.html) functions.

Note

In the following examples, the `$rqAppTest` template variable is set to the value `rq(Demo\Ajax\App\AppTest::class)`.

The `jxnBind` directive attaches a UI component to a DOM element, while the `jxnHtml` directive displays a component HTML code in a view.

```

        @jxnHtml($rqAppTest)

```

The `jxnPagination` directive displays pagination links in a view.

```

```

The `jxnOn` directive binds an event on a DOM element to a Javascript call defined with a `call factory`.

```
    setColor(jq()->val()))>
        Black
        Red
        Green
        Blue

```

The `jxnClick` directive is a shortcut to define a handler for the `click` event.

```
    sayHello(true))>Click me
```

The `jxnEvent` directive defines a set of events handlers on the children of a DOM element, using `jQuery` selectors.

```
    setColor(jq()->val())]
        ['.ext-color-choice', 'change', $rqExtTest->setColor(jq()->val())]
    ])>

                Black
                Red
                Green
                Blue

                Black
                Red
                Green
                Blue

```

The `jxnEvent` directive takes as parameter an array in which each entry is an array with a `jQuery` selector, an event and a `call factory`.

Contribute
----------

[](#contribute)

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

License
-------

[](#license)

The package is licensed under the BSD license.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance56

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity76

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 ~73 days

Recently: every ~6 days

Total

46

Last Release

294d ago

Major Versions

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

v2.0.2 → v3.0-beta.12019-02-20

v3.2.x-dev → v4.0-beta.12022-04-19

v4.x-dev → v5.0.0-beta.12025-06-24

### 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 (176 commits)")

---

Tags

phplaravelajaxJaxon

### Embed Badge

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

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

###  Alternatives

[laravel/wayfinder

Generate TypeScript representations of your Laravel actions and routes.

1.7k4.1M69](/packages/laravel-wayfinder)[nunomaduro/laravel-desktop-notifier

Send notifications to your desktop from your Laravel commands. An JoliNotif wrapper for Laravel 5.

4781.7M8](/packages/nunomaduro-laravel-desktop-notifier)[defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

98548.9k4](/packages/defstudio-pest-plugin-laravel-expectations)[imanghafoori/laravel-smart-facades

Adds some features on the top of laravel facades

137415.3k7](/packages/imanghafoori-laravel-smart-facades)[richarddobron/laravel-fbt

A PHP Internationalization Framework for Laravel Application.

125.7k](/packages/richarddobron-laravel-fbt)

PHPackages © 2026

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