simonstamm / laravel-pjax
PJAX for Laravel 4 with redirection-support
Installs: 8 285
Dependents: 0
Suggesters: 0
Security: 0
Stars: 22
Watchers: 4
Forks: 33
Open Issues: 1
Requires
- php: >=5.3.0
- illuminate/support: ~4
This package is not auto-updated.
Last update: 2024-09-23 15:24:49 UTC
README
Enable the use of PJAX in Laravel 4 with redirections.
Installation
Add simonstamm/laravel-pjax
to require
section in your composer.json
composer require simonstamm/laravel-pjax
Add 'SimonStamm\LaravelPjax\LaravelPjaxServiceProvider',
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.
Contribution
I'm open to any idea of features to add to it.