PHPackages                             yuanchao/pjax-for-laravel-5 - 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. yuanchao/pjax-for-laravel-5

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

yuanchao/pjax-for-laravel-5
===========================

pjax for laravel 5.\*

5822411[1 issues](https://github.com/yccphp/pjax-for-laravel-5/issues)JavaScript

Since Oct 28Pushed 10y ago3 watchersCompare

[ Source](https://github.com/yccphp/pjax-for-laravel-5)[ Packagist](https://packagist.org/packages/yuanchao/pjax-for-laravel-5)[ RSS](/packages/yuanchao-pjax-for-laravel-5/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

在 Laravel 5.\* 的版本中，使用 Pjax 实现无刷新效果，以及酷炫的进度条

`求 star`

`求 star`

`求 star`

### 起因

[](#起因)

群里面的朋友老是在问 laravel 怎么和 pjax 结合，于是今天早上答应了给大家写一篇文章，到准备写的时候，发现其实挺简单的，也没有多少可写的东西，于是乎，干脆直接封装成包，大家直接安装用就好了

感谢以下开源项目

1. jquery.pjax.js
2. nprogress

### 效果

[](#效果)

[![](https://camo.githubusercontent.com/fd5e241d61e9f9c0a65ae3b153af967c4c6043efcdf91a1b59a97277e15ed13d/687474703a2f2f7777772e70687079632e636f6d2f696d616765732f706a61782e6a7067)](https://camo.githubusercontent.com/fd5e241d61e9f9c0a65ae3b153af967c4c6043efcdf91a1b59a97277e15ed13d/687474703a2f2f7777772e70687079632e636f6d2f696d616765732f706a61782e6a7067)

### 安装

[](#安装)

1.在 `composer.json` 的 require里 加入

```
"yuanchao/pjax-for-laravel-5": "dev-master"

```

2.执行 `composer update`

3.在config/app.php 的 `providers` 数组加入一条

```
YuanChao\Pjax\EndaPjaxServiceProvider::class

```

4.在 `Kernel` 的 `$middleware` 数组里添加

```

\YuanChao\Pjax\EndaPjaxMiddleware::class,

```

5.执行 `php artisan vendor:publish`

### 使用

[](#使用)

`要先引入 jquery`

在`布局`文件中，插入以下代码

```

@include('pjax::pjax')

```

### 交流

[](#交流)

欢迎加入laravel学习小组交流：`365969825 `

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/280e78a6790d59cce70a5c458d327e3a94f10dd6a2c8ca3e1cee9c445a3e389f?d=identicon)[yuanchao](/maintainers/yuanchao)

---

Top Contributors

[![endachao](https://avatars.githubusercontent.com/u/8328651?v=4)](https://github.com/endachao "endachao (9 commits)")

### Embed Badge

![Health badge](/badges/yuanchao-pjax-for-laravel-5/health.svg)

```
[![Health](https://phpackages.com/badges/yuanchao-pjax-for-laravel-5/health.svg)](https://phpackages.com/packages/yuanchao-pjax-for-laravel-5)
```

PHPackages © 2026

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