PHPackages                             letron/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. [Framework](/categories/framework)
4. /
5. letron/optimizer

ActiveLibrary[Framework](/categories/framework)

letron/optimizer
================

An optimizer for the Mako framework.

2.0.0(11y ago)338[2 issues](https://github.com/letr0n/mako-optimizer/issues)BSD-3-ClausePHP

Since Aug 23Pushed 9y ago2 watchersCompare

[ Source](https://github.com/letr0n/mako-optimizer)[ Packagist](https://packagist.org/packages/letron/optimizer)[ RSS](/packages/letron-optimizer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (5)Used By (0)

Mako Optimizer
==============

[](#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.

### How do I use it?

[](#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.

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

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

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

```
php reactor optimizer.clear

```

### How much faster does it get?

[](#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.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~56 days

Total

4

Last Release

4118d ago

Major Versions

1.0.x-dev → 2.0.02015-02-07

### Community

Maintainers

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

---

Top Contributors

[![letr0n](https://avatars.githubusercontent.com/u/7405227?v=4)](https://github.com/letr0n "letr0n (25 commits)")

---

Tags

mako-frameworkframeworkmakooptimizer

### Embed Badge

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

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

###  Alternatives

[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[phalcon/devtools

This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.

1.3k2.0M54](/packages/phalcon-devtools)[pestphp/pest-plugin-drift

The Pest Drift Plugin

734.0M74](/packages/pestphp-pest-plugin-drift)[mako/framework

Mako Framework

249170.3k23](/packages/mako-framework)[mako/app

Mako Framework

335.0k](/packages/mako-app)[richarddobron/fbt

An Internationalization Framework for PHP.

1512.0k2](/packages/richarddobron-fbt)

PHPackages © 2026

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