PHPackages                             neutrino/optimizer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. neutrino/optimizer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

neutrino/optimizer
==================

The Neutrino Optimizer package.

0.1.2(8y ago)01.0k1MITPHPPHP &gt;=5.5

Since Nov 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pn-neutrino/optimizer)[ Packagist](https://packagist.org/packages/neutrino/optimizer)[ Docs](https://phalcon-nucleon.github.io)[ RSS](/packages/neutrino-optimizer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

Neutrino : Optimizer component
==============================

[](#neutrino--optimizer-component)

[![Build Status](https://camo.githubusercontent.com/d4378a7be9e2b055322eac7a3f80b6c7e94f9202025b425b9b61698eb434ccf4/68747470733a2f2f7472617669732d63692e6f72672f706e2d6e65757472696e6f2f6f7074696d697a65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pn-neutrino/optimizer) [![Coverage Status](https://camo.githubusercontent.com/a8432c1d3a7382d23441c26ce86fca0d36ca6d7e300e820a86e922096ee848c1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f706e2d6e65757472696e6f2f6f7074696d697a65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/pn-neutrino/optimizer)

Optimize the composer autoload by using Phalcon\\Loader.

How use :
---------

[](#how-use-)

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

### Optimize Memory

[](#optimize-memory)

```
$composerOptimizer->optimizeMemory();
```

Memory optimizer use composer dumpautoload without " --optimize ".

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).

### Optimize Process

[](#optimize-process)

```
$composerOptimizer->optimizeProcess();
```

Process optimizer use composer dumpautoload with " --optimize ".

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.

Autoload :
----------

[](#autoload-)

In your bootstrap file, Change your call of composer/autoload.php by :

```
// 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}"
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~60 days

Total

4

Last Release

3276d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9364c697a58ed619a061145dc64c8ee6bbd0536c4594ab3c2b0ffce3e902bc5?d=identicon)[Ark4ne](/maintainers/Ark4ne)

---

Top Contributors

[![Ark4ne](https://avatars.githubusercontent.com/u/6144058?v=4)](https://github.com/Ark4ne "Ark4ne (7 commits)")

---

Tags

composerautoloadoptimizenucleonneutrino

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/neutrino-optimizer/health.svg)

```
[![Health](https://phpackages.com/badges/neutrino-optimizer/health.svg)](https://phpackages.com/packages/neutrino-optimizer)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.4k187.2M2.6k](/packages/composer-composer)[jean85/pretty-package-versions

A library to get pretty versions strings of installed dependencies

1.3k289.5M63](/packages/jean85-pretty-package-versions)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89352.7M321](/packages/nette-robot-loader)[bamarni/composer-bin-plugin

No conflicts for your bin dependencies

52722.0M859](/packages/bamarni-composer-bin-plugin)[composer/metadata-minifier

Small utility library that handles metadata minification and expansion.

181115.0M13](/packages/composer-metadata-minifier)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
