Download the PHP package helthe/turbolinks without Composer

On this page you can find all versions of the php package helthe/turbolinks. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package turbolinks

Helthe Turbolinks Build Status Scrutinizer Quality Score

Helthe Turbolinks is a direct port of the rails turbolinks gem for projects using the Symfony HttpFoundation Component.

Versions

Current versions of the following gems are used:

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.

Installation

Using Composer

Manually

Add the following in your composer.json:

Using the command line

Usage

Using turbolinks requires both the usage of the javascript library and modifying the PHP response so that it can be properly processed by turbolinks.

PHP

There are multiple ways to decorate the PHP response for turbolinks.

Manually

You can manually decorate the response with the Turbolinksobject.

Event Listeners

You can add an event listener to the dispatcher that is passed to the HttpKernel.

Stack Middleware

You can decorate the response using the supplied Stack middleware.

Javascripts

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

Using turbolinks.js

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

Integrating turbolinks with another PHP project

The goal of the component is to offer a base package for integration with other PHP projects using the Symfony HttpFoundation or HttpKernel components.

You can do so by either using the supplied middleware that follows the Stack convention or by adding the supplied event listenter to the HttpKernel event dispatcher.

Instead of copying over the compiled javascripts to your projects, try to use your project tools to copy them over. You should always be able to fallback on the composer script hooks like post-install-cmd and post-update-cmd.

List of integrations

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 Chromes and Firefoxes.

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.

Additional Resources

Please refer to the turbolinks project if you require additional information on the javascript libraries and their usage.

Bugs

For bugs or feature requests, please create an issue.


All versions of turbolinks with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1||^8.0
symfony/http-foundation Version ^4.3.4||^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package helthe/turbolinks contains the following files

Loading the files please wait ....