2017 © Pedro Peláez
 

library optimizer

The Neutrino Optimizer package.

image

neutrino/optimizer

The Neutrino Optimizer package.

  • Monday, May 29, 2017
  • by Ark4ne
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 13 % Grown

The README.md

Neutrino : Optimizer component

Build Status Coverage Status, (*1)

Optimize the composer autoload by using Phalcon\Loader., (*2)

How use :

$composerOptimizer = new \Neutrino\Optimizer\Composer(
    '{path to optimized loader file}',
    '{path to vendor/composer}',
    '{path to your base application path}',
);

Optimize Memory

$composerOptimizer->optimizeMemory();

Memory optimizer use composer dumpautoload without " --optimize "., (*3)

This significantly reduces the size of the autoload_classmap.php file and therefore the size of the generated file. This implies that the classes will not have a direct path to their file, and thus an additional processing on the part of the autoloader (Phalcon \ Loader)., (*4)

Optimize Process

$composerOptimizer->optimizeProcess();

Process optimizer use composer dumpautoload with " --optimize "., (*5)

This allows to load the autoload with the link each used. This generates a huge array that will accelerate the loading process of the class., (*6)

Autoload :

In your bootstrap file, Change your call of composer/autoload.php by :, (*7)

// Load compiled autoloader. (Phalcon)
if (file_exists("{path to optimized loader file}")) {
  require "{path to optimized loader file}";

  return;
}

/**
 * Load composer autoloader.
 */
require "{path to vendor/composer/autoload.php}"

The Versions

29/05 2017

dev-master

9999999-dev https://phalcon-nucleon.github.io

The Neutrino Optimizer package.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Ark4ne (Guillaume Allegret)

composer autoload optimize nucleon neutrino

29/05 2017

0.1.2

0.1.2.0 https://phalcon-nucleon.github.io

The Neutrino Optimizer package.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Ark4ne (Guillaume Allegret)

composer autoload optimize nucleon neutrino

29/05 2017

0.1.x-dev

0.1.9999999.9999999-dev https://phalcon-nucleon.github.io

The Neutrino Optimizer package.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Ark4ne (Guillaume Allegret)

composer autoload optimize nucleon neutrino

29/05 2017

0.1.1

0.1.1.0 https://phalcon-nucleon.github.io

The Neutrino Optimizer package.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Ark4ne (Guillaume Allegret)

composer autoload optimize nucleon neutrino

28/11 2016

v0.1

0.1.0.0 https://phalcon-nucleon.github.io

The Neutrino Optimizer package.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Ark4ne (Guillaume Allegret)

composer autoload optimize nucleon neutrino

28/11 2016

dev-dev-master

dev-dev-master https://phalcon-nucleon.github.io

The Neutrino Optimizer package.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Ark4ne (Guillaume Allegret)

composer autoload optimize nucleon neutrino