vtalbot/pjax

PJAX for Laravel 4

Maintainers

Details

github.com/vtalbot/pjax

Source

Issues

Installs: 11 559

Dependents: 0

Suggesters: 0

Security: 0

Stars: 40

Watchers: 3

Forks: 32

Open Issues: 1

pkg:composer/vtalbot/pjax

v0.2.2 2014-11-18 21:07 UTC

This package is auto-updated.

Last update: 2025-09-23 01:54:46 UTC


README

Enable the use of PJAX in Laravel 4.

If using Laravel 5, please see jacobbennett/pjax

Installation

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

Contribution

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