2017 © Pedro Peláez
 

library optimizer

An optimizer for the Mako framework.

image

letron/optimizer

An optimizer for the Mako framework.

  • Saturday, January 14, 2017
  • by letr0n
  • Repository
  • 2 Watchers
  • 2 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Mako Optimizer

Command line task for the Mako framework that compiles classes into a single file to reduce the ammount of file includes required to process a request., (*1)

How do I use it?

First you'll have to register the package with your Mako application. This is done by adding letron\optimizer\OptimizerPackage to the list of packages in your app/config/application.php file., (*2)

Then you'll need to add the following lines to the index.php file (right after the part where it requires the init file)., (*3)

if(file_exists(MAKO_APPLICATION_PATH . '/storage/compiled.php'))
{
    include MAKO_APPLICATION_PATH . '/storage/compiled.php';
}

You can then execute the compile action of the optimizer compiler., (*4)

php reactor optimizer.compile

php reactor optimizer.compiler --strip-comments

If you want to clear the compiled files then you can do so by executing the clear action of the optimizer compiler., (*5)

php reactor optimizer.clear

How much faster does it get?

That depends on a lot of factors so the easiest way to find out is to try for yourself., (*6)

The Versions

14/01 2017

dev-master

9999999-dev

An optimizer for the Mako framework.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mako optimizer

07/02 2015

2.0.x-dev

2.0.9999999.9999999-dev

An optimizer for the Mako framework.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mako optimizer

07/02 2015

2.0.0

2.0.0.0

An optimizer for the Mako framework.

  Sources   Download

BSD-3-Clause

The Requires

 

framework mako optimizer

23/08 2014

1.0.x-dev

1.0.9999999.9999999-dev

An optimizer for the Mako framework.

  Sources   Download

The Requires

 

framework mako optimizer

23/08 2014

1.0.0

1.0.0.0

An optimizer for the Mako framework.

  Sources   Download

The Requires