PHPackages                             phpvital/pjaxer - 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. phpvital/pjaxer

ActiveLibrary

phpvital/pjaxer
===============

pjax package for laravel5

v2.0(9y ago)6481MITPHP

Since Nov 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/v1talM/laravel-pjax-package)[ Packagist](https://packagist.org/packages/phpvital/pjaxer)[ RSS](/packages/phpvital-pjaxer/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

laravel-pjax-package
====================

[](#laravel-pjax-package)

a pjax package for laravel5, include pjax and nprogress

一个基于 laravel 5 的 pjax 扩展包 , 本项目基于 NProgress [传送门](https://github.com/rstacruz/nprogress) 和 Pjax.

使用介绍:[Laravel-China传送门](https://laravel-china.org/topics/3280)|[个人博客](http://119.29.5.221/article/Laravel-Pjax-kuo-zhan-bao-shi-yong-jie-shao)

### 安装使用详细教程 Installation

[](#安装使用详细教程-installation)

使用 Composer 引入:

```
composer require phpvital/pjaxer
```

打开 `app/Http/Kernel.php` 文件, 在 `$middleware` 数组里面添加中间件:

```
\Vital\Pjaxer\Middlewares\PjaxMiddleware::class,
```

add `\Vital\Pjaxer\Middlewares\PjaxMiddleware::class,` to `$middleware` in `app/Http/Kernel.php`

打开 `config/app.php` 文件, 在 `providers` 数组里面注册服务:

```
Vital\Pjaxer\Providers\PjaxServiceProvider::class,
```

add `Vital\Pjaxer\Providers\PjaxServiceProvider::class,` to `providers` in `config/app.php`

在下面的 `aliases` 数组里面注册门面 Facade :

```
'Pjax' => \Vital\Pjaxer\Facades\PjaxFacade::class,

```

add `'Pjax' => \Vital\Pjaxer\Facades\PjaxFacade::class,` to `aliases`

执行命令 `php artisan vendor:publish` 之后会在 `config` 目录下生成一个 `pjax.php` 文件, 这个文件用来进行pjax配置;

### 使用方法 Usage

[](#使用方法-usage)

##### 加载 pjax 所需要的资源 Load resources

[](#加载-pjax-所需要的资源-load-resources)

在你的页面插入这条代码, 引入对应的 CSS 和 js 文件:

```
@include('pjax::head')

```

添加代码: `{!! Pjax::pjax() !!}` 之后就可以来到页面查看效果啦 :D

add `@include('pjax::head')` and `{!! Pjax::pjax() !!}` to your page.

### 个性化配置 Custom

[](#个性化配置-custom)

来到 `config/pjax.php` 文件, 里面有对应的设置, 目前支持 progress bar 的背景颜色修改以及 snipper 背景颜色的修改.

configure `config/pjax.php` to custom background of progress bar or snipper

### 最后

[](#最后)

欢迎star , 欢迎 Issue , 欢迎任何学习交流~~

License
=======

[](#license)

Laravel-pjax-package is licensed under The MIT License (MIT).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3461d ago

Major Versions

1.0 → v2.02016-11-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/cbd428fb1fd34f97e2153adae03ba5ad1bb8dae61b16561e5abe26c3f4ca12fb?d=identicon)[Ian Vital](/maintainers/Ian%20Vital)

---

Top Contributors

[![v1talM](https://avatars.githubusercontent.com/u/14856926?v=4)](https://github.com/v1talM "v1talM (13 commits)")

### Embed Badge

![Health badge](/badges/phpvital-pjaxer/health.svg)

```
[![Health](https://phpackages.com/badges/phpvital-pjaxer/health.svg)](https://phpackages.com/packages/phpvital-pjaxer)
```

PHPackages © 2026

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