PHPackages                             jaxon-php/jaxon-blade - 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. [Templating &amp; Views](/categories/templating)
4. /
5. jaxon-php/jaxon-blade

ActiveLibrary[Templating &amp; Views](/categories/templating)

jaxon-php/jaxon-blade
=====================

Jaxon view renderer for the Blade template engine

v5.0.2(11mo ago)0103BSD-3-ClausePHP

Since May 26Pushed 11mo ago1 watchersCompare

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

READMEChangelog (8)Dependencies (2)Versions (11)Used By (0)

Jaxon View for Blade
====================

[](#jaxon-view-for-blade)

Render Blade templates in Jaxon applications.

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

[](#installation)

Install this package with Composer.

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

Usage
-----

[](#usage)

For each directory containing Blade templates, add an entry to the `app.views` section in the configuration.

```
    'app' => [
        'views' => [
            'demo' => [
                'directory' => '/path/to/demo/views',
                'extension' => '.blade.php',
                'renderer' => 'blade',
            ],
        ],
    ],
```

In the following example, the DOM element with id `content-id` is assigned the value of the `/path/to/demo/views/sub/dir/file.blade.php` template.

```
class MyClass extends \Jaxon\App\FuncComponent
{
    public function action()
    {
        $this->response->html('content-id', $this->view()->render('demo::/sub/dir/file'));
    }
}
```

Blade directives
----------------

[](#blade-directives)

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

```
// /path/to/demo/views/sub/dir/file.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-blade/issues
- Source Code: github.com/jaxon-php/jaxon-blade

License
-------

[](#license)

The package is licensed under the BSD license.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance51

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

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

Recently: every ~509 days

Total

9

Last Release

342d ago

Major Versions

v2.0.2 → v3.0.12019-12-26

v3.x-dev → v5.0.02025-07-13

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

---

Tags

phpbladetemplateviewajaxxajaxJaxon

### Embed Badge

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

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

###  Alternatives

[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8259.3M103](/packages/eftec-bladeone)[eftec/bladeonehtml

The standalone version Blade Template Engine from Laravel in a single php file

1021.6k6](/packages/eftec-bladeonehtml)

PHPackages © 2026

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