2017 © Pedro Peláez
 

library slipstream

An alternative to the standard composer autoloader

image

zoopcommerce/slipstream

An alternative to the standard composer autoloader

  • Wednesday, September 4, 2013
  • by superdweebie
  • Repository
  • 2 Watchers
  • 0 Stars
  • 395 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Slipstream

Introduction

The composer autoloader is quite good, and quite fast when used with composer.phar dump-autoload --optimize. However, the --optimize option maps every single class in your dependency tree. If you are a using a framework such as zf2 or symfony, that can mean 3000+ of classes. Chances are that your app is only using a small fraction of those. Slipstream will rewrite the classmap in production to include only the classes you need, meaning faster page load times., (*1)

Installation

Install the module using Composer into your application's vendor directory. Add the following line to your composer.json., (*2)

{
    "require": {
        "zoopcommerce/slipstream": "~0.1"
    }
}

Usage

Your vendor/composer/ directory must be writable., (*3)

Where your code previously called the composer autoloader with:, (*4)

$loader = include vendor/autoload.php;

Replace with:, (*5)

$loader = include vendor/zoopcommerce/slipstream/autoload.php;

That's it!, (*6)

Enjoy., (*7)

The Versions

04/09 2013

dev-master

9999999-dev http://github.com/zoopcommerce/slipstream

An alternative to the standard composer autoloader

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

php composer autoloader

04/09 2013

0.1

0.1.0.0 http://github.com/zoopcommerce/slipstream

An alternative to the standard composer autoloader

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

php composer autoloader