New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

vtalbot/pjax

PJAX for Laravel 4
11,564 40
Install
composer require vtalbot/pjax
Latest Version:v0.2.2
PHP:>=5.3.0
Laravel:4
License:MIT
Last Updated:Mar 22, 2019
Links: GitHub  ·  Packagist
Maintainer: vtalbot

PJAX for Laravel 4

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.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

655,942,320 9,702
laravel/framework

The Laravel Framework.

617,629,957 34,997
laravel/tinker

Powerful REPL for the Laravel framework.

524,145,802 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

442,489,569 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

412,228,818 4,664

Version History

Version Released PHP Laravel License
v0.2.2 >=5.3.0 4.x MIT
0.2.1 >=5.3.0 4.x MIT
0.2 >=5.3.0 4.x MIT
0.1 >=5.3.0 4.x MIT