vtalbot / pjax by vtalbot

PJAX for Laravel 4
Package Data
Maintainer Username: vtalbot
Maintainer Contact: vtalbot@re-bot.co (Vincent Talbot)
Package Create Date: 2013-07-27
Package Last Update: 2019-03-22
Language: PHP
License: MIT
Last Refreshed: 2024-04-15 15:08:46
Package Statistics
Total Downloads: 11,534
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 40
Total Watchers: 3
Total Forks: 33
Total Open Issues: 1

PJAX for Laravel 4

Enable the use of PJAX in Laravel 4.

If using Laravel 5, please see jacobbennett/pjax


Add vtalbot/pjax to require section in your composer.json

composer require vtalbot/pjax

Add 'VTalbot\Pjax\PjaxServiceProvider', to providers in your app/config/app.php

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.

Example project: https://github.com/vtalbot/laravel-pjax-example


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