PHPackages                             frenzy/turbolinks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. frenzy/turbolinks

ActiveLibrary

frenzy/turbolinks
=================

Frenzy Turbolinks makes following links in your web application faster with Laravel

4.0.0(5y ago)16023.2k↓25%12[3 issues](https://github.com/frenzyapp/turbolinks/issues)MITPHP

Since Jan 26Pushed 5y ago6 watchersCompare

[ Source](https://github.com/frenzyapp/turbolinks)[ Packagist](https://packagist.org/packages/frenzy/turbolinks)[ RSS](/packages/frenzy-turbolinks/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (13)Used By (0)

Frenzy Turbolinks for Laravel 6.0+
==================================

[](#frenzy-turbolinks-for-laravel-60)

Frenzy Turbolinks is a port of the Rails [turbolinks](https://github.com/turbolinks/turbolinks-rails) gem for projects using the PHP [Laravel](http://laravel.com) 6.0+ framework.

Versions
--------

[](#versions)

Current versions of the following JavaScript libraries are used:

- turbolinks: v5.2.0

For [**Laravel 5.1 to 5.7**](http://laravel.com/docs/5.7) supports see [Frenzy Turbolinks `3.2.3` tag](https://github.com/frenzyapp/turbolinks/tree/3.2.3)

For [**Laravel 5.0**](http://laravel.com/docs/5.0) supports see [Frenzy Turbolinks `3.0.0` tag](https://github.com/frenzyapp/turbolinks/tree/3.0.0)

For [**Laravel 4.1 or 4.2**](http://laravel.com/docs/4.2) supports see [Frenzy Turbolinks `1.0` tag](https://github.com/frenzyapp/turbolinks/tree/1.0)

Performance
-----------

[](#performance)

Turbolinks makes following links in your web application faster. Instead of letting the browser recompile the JavaScript and CSS between each page change, it keeps the current page instance alive and replaces only the body and the title in the head.

Performance improvements will vary depending on the amount of CSS and Javascript you are using. You can get up to a 2X increase when using a lot of Javascript and CSS. You can find the Rails benchmarks [here](https://stevelabnik/turbolinks_test).

Installation
------------

[](#installation)

### Using [Composer](https://getcomposer.org)

[](#using-composer)

Run this command in a terminal:

```
composer require frenzy/turbolinks
```

Add the Turbolinks middleware, to the `$middlewareGroups` array in `app/Http/Kernel.php`:

```
        \Frenzy\Turbolinks\Middleware\StackTurbolinks::class,
```

**NOTICE**: For Laravel 5.4 and below, you must modify your `config/app.php`, in the `providers` array add :

```
    Frenzy\Turbolinks\TurbolinksServiceProvider::class
```

Add these scripts for automatic publication of assets, in your `composer.json` file:

```
{
   "scripts": {
       "post-install-cmd": [
           "php artisan vendor:publish --provider=\"Frenzy\\Turbolinks\\TurbolinksServiceProvider\" --force"
       ],
       "post-update-cmd": [
           "php artisan vendor:publish --provider=\"Frenzy\\Turbolinks\\TurbolinksServiceProvider\" --force"
       ]
   }
}
```

Add Javascript files into your project

Usage
-----

[](#usage)

Using turbolinks requires both the usage of the javascript library and the event listeners included with the component.

### Javascripts

[](#javascripts)

Both the original coffeescript version and compiled version of each script are available for use.

#### Using turbolinks.js

[](#using-turbolinksjs)

To enable turbolinks, all you need to do is add the compiled turbolinks javascript to your layout in the ``section.

Installation with the Larasset package
--------------------------------------

[](#installation-with-the-larasset-package)

Click [here](README_LARASSET.md) to publish the assets automatically.

Compatibility
-------------

[](#compatibility)

The turbolinks javascript is designed to work with any browser that fully supports pushState and all the related APIs. This includes Safari 6.0+ (but not Safari 5.1.x!), IE10+, and latest Chrome and Firefox.

Do note that existing JavaScript libraries may not all be compatible with Turbolinks out of the box due to the change in instantiation cycle. You might very well have to modify them to work with Turbolinks' new set of events. For help with this, check out the [Turbolinks Compatibility project](http://reed.github.io/turbolinks-compatibility).

Additional Resources
--------------------

[](#additional-resources)

Please refer to the [turbolinks](https://github.com/turbolinks/turbolinks-rails) project if you require additional information on the javascript libraries and their usage.

Bugs
----

[](#bugs)

For bugs or feature requests, please [create an issue](https://github.com/frenzyapp/turbolinks/issues/new).

Credits
-------

[](#credits)

This package is based on the Symfony middleware package [Helthe Turbolinks](https://github.com/helthe/Turbolinks).

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 60.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~237 days

Recently: every ~264 days

Total

10

Last Release

1983d ago

Major Versions

1.0.0 → 2.02015-03-13

1.0.1 → 3.0.02017-01-23

3.2.3 → 4.0.02020-12-03

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/21fcf8f64cabe020f277c5e7edb0c8fa165852c3beb49d93233a9b7e72c51004?d=identicon)[TortueTorche](/maintainers/TortueTorche)

![](https://www.gravatar.com/avatar/f4be6ac223b8de532c9dacc60ef44157a4ad077001ff2a6026194b65401b2a97?d=identicon)[MathieuDoyon](/maintainers/MathieuDoyon)

---

Top Contributors

[![tortuetorche](https://avatars.githubusercontent.com/u/5038872?v=4)](https://github.com/tortuetorche "tortuetorche (35 commits)")[![MathieuDoyon](https://avatars.githubusercontent.com/u/1854511?v=4)](https://github.com/MathieuDoyon "MathieuDoyon (19 commits)")[![carlalexander](https://avatars.githubusercontent.com/u/654684?v=4)](https://github.com/carlalexander "carlalexander (1 commits)")[![iWirk](https://avatars.githubusercontent.com/u/10259686?v=4)](https://github.com/iWirk "iWirk (1 commits)")[![strebl](https://avatars.githubusercontent.com/u/6151204?v=4)](https://github.com/strebl "strebl (1 commits)")[![thers](https://avatars.githubusercontent.com/u/213272?v=4)](https://github.com/thers "thers (1 commits)")

---

Tags

laraveljavascriptajaxassetspjaxturbolinkslarasset

### Embed Badge

![Health badge](/badges/frenzy-turbolinks/health.svg)

```
[![Health](https://phpackages.com/badges/frenzy-turbolinks/health.svg)](https://phpackages.com/packages/frenzy-turbolinks)
```

###  Alternatives

[stolz/assets

An ultra-simple-to-use assets management library

296519.2k8](/packages/stolz-assets)[efficiently/jquery-laravel

This package provides jQuery and the jQuery-ujs driver for your Laravel &gt;= 6 application.

1311.0k1](/packages/efficiently-jquery-laravel)[rcrowe/turbo

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

893.4k](/packages/rcrowe-turbo)[efficiently/larasset

Larasset is a library for Laravel 5 which manage assets in an easy way.

684.8k](/packages/efficiently-larasset)[mmanos/laravel-casset

An asset management package for Laravel 4.

112.6k](/packages/mmanos-laravel-casset)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
