PHPackages                             endeavors/pjax - 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. endeavors/pjax

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

endeavors/pjax
==============

Service Provider to set headers for a pjax request

014PHP

Since Nov 9Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tbitowner/pjax)[ Packagist](https://packagist.org/packages/endeavors/pjax)[ RSS](/packages/endeavors-pjax/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PJAX for Laravel 4
------------------

[](#pjax-for-laravel-4)

Enable the use of PJAX in Laravel 4.

If using **Laravel 5**, please see [jacobbennett/pjax](https://github.com/JacobBennett/pjax)

#### Installation

[](#installation)

Add `endeavors/pjax` to `require` section in your `composer.json`

```
composer require endeavors/pjax

```

Add `'Endeavors\Pjax\PjaxServiceProvider',` to your `providers` array in your `app/config/app.php`

#### How to use

[](#how-to-use)

This service provider will check, before output the http response, for the `X-PJAX`'s header in the request. If found, it will crawl the response to return the requested element defined by `X-PJAX-Container`'s header.

Works great with [jquery.pjax.js](https://github.com/defunkt/jquery-pjax).

### Contribution

[](#contribution)

I'm open to any idea of features to add to it.

This is almost identical to

I removed the code portion below as I had trouble getting it working. Probably because I didn't have a 'head title'.

```
$title = $crawler->filter('head title')->html();

$response->setContent('' . $title . '' . $html);

```

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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/0605cdd1d4d5e4f131117fe19061be0686ae300b8681c186d85fb2bba35f553b?d=identicon)[tbitowner](/maintainers/tbitowner)

---

Top Contributors

[![tbitowner](https://avatars.githubusercontent.com/u/8038931?v=4)](https://github.com/tbitowner "tbitowner (6 commits)")

### Embed Badge

![Health badge](/badges/endeavors-pjax/health.svg)

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

###  Alternatives

[slushie/laravel-assetic

Assetic support for Laravel 4

3617.0k](/packages/slushie-laravel-assetic)

PHPackages © 2026

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