PHP code example of neutrino / optimizer

1. Go to this page and download the library: Download neutrino/optimizer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

neutrino / optimizer example snippets


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

$composerOptimizer->optimizeMemory();

$composerOptimizer->optimizeProcess();

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