2017 © Pedro Peláez
 

library turbo

Think turbolinks but for your PHP application. Powered by pjax.

image

rcrowe/turbo

Think turbolinks but for your PHP application. Powered by pjax.

  • Saturday, June 21, 2014
  • by rcrowe
  • Repository
  • 5 Watchers
  • 86 Stars
  • 3,079 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 3 Open issues
  • 8 Versions
  • 4 % Grown

The README.md

Turbo

Turbolinks but for your PHP application; powered by PJAX., (*1)

Build Status, (*2)

Installation

Turbo has only been tested installing through Composer., (*3)

Add rcrowe\turbo as a requirement to composer.json:, (*4)

{
    "require": {
        "rcrowe/turbo": "0.2.*"
    }
}

Update your packages with composer update or install with composer install., (*5)

Providers

Providers enable instant usage of Turbo within different frameworks, we currently provide the following integrations:, (*6)

Laravel, (*7)

Add Turbo\Provider\Laravel\TurboServiceProvider to app/config/app.php and your good to go., (*8)

The Laravel provider also registers a turbo.pjax event so that other parts of your app can listen for a pjax request. For example:, (*9)

Event::listen('turbo.pjax', function($request, $response) {
    $response->header('X-App-Msg', 'Hello world');
});

Fuelphp, (*10)

Add class_alias('Turbo\\Provider\\Fuel\\Response', 'Response') to the bottom of fuel\app\bootstrap.php and your good to go., (*11)

Turbo also registers a turbo.pjax event that you can listen for. For example:, (*12)

Event::register('turbo.pjax', function() {
    echo 'This is a pjax request';
});

PJAX

To make this all work Turbo needs PJAX to get and set the response. Just like Turbolinks we respond with the whole body, not just a section of it. In order to support this, you need to setup PJAX to use the <body> tag. A simple example of this would be:, (*13)

$(function() {
    $(document).pjax('.js-pjax', 'body');
});

License

Turbo is released under the MIT public license., (*14)

The Versions

21/06 2014

dev-0.4-selector

dev-0.4-selector

Think turbolinks but for your PHP application. Powered by pjax.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel pjax turbolinks

07/02 2014

dev-master

9999999-dev

Think turbolinks but for your PHP application. Powered by pjax.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel fuelphp pjax turbolinks

15/06 2013

0.3.0

0.3.0.0

Think turbolinks but for your PHP application. Powered by pjax.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel pjax turbolinks

06/06 2013

0.2.1

0.2.1.0

Think turbolinks but for your PHP application. Powered by pjax.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel pjax turbolinks

29/04 2013

0.2.0

0.2.0.0

Think turbolinks but for your PHP application. Powered by pjax.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel pjax turbolinks

29/04 2013

0.1.2

0.1.2.0

Think turbolinks but for your PHP application. Powered by pjax.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel pjax turbolinks

29/04 2013

0.1.1

0.1.1.0

Think turbolinks but for your PHP application. Powered by pjax.

  Sources   Download

MIT

The Requires

 

laravel pjax turbolinks

28/04 2013

0.1.0

0.1.0.0

Think turbolinks but for your PHP application. Powered by pjax.

  Sources   Download

MIT

The Requires

 

laravel pjax turbolinks