PHPackages                             pe/component-class-compiler - 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. pe/component-class-compiler

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

pe/component-class-compiler
===========================

Component allows to compile multiple classes into one big string which can be dumped to file

v1.0.0(8y ago)08MITPHPPHP &gt;=5.5

Since Dec 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pavlenko/php-component-class-compiler)[ Packagist](https://packagist.org/packages/pe/component-class-compiler)[ RSS](/packages/pe-component-class-compiler/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

CMF Class compiler component
============================

[](#cmf-class-compiler-component)

### Installation

[](#installation)

```
php composer.phar require cmf/component-class-compiler:1.0.0
```

### Usage

[](#usage)

```
use CMF\Component\ClassCompiler\ClassCache;
use CMF\Component\ClassCompiler\ClassCompiler;

// Instantiate class compiler
$classCompiler = new ClassCompiler();

// Add classes to compile (include dependencies)
$classCompiler->addClasses([
    'Foo',
    'Bar',
]);

// Compiles classes to string which can be saved as php file
$classCompiler->compile();
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3129d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cf2cc7aeca3adf2a9ff304032c47261ecc3e94b18dbc1c972f1bfa9494ba645?d=identicon)[pavlenko](/maintainers/pavlenko)

---

Top Contributors

[![pavlenko](https://avatars.githubusercontent.com/u/1759651?v=4)](https://github.com/pavlenko "pavlenko (2 commits)")

---

Tags

class compiler

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pe-component-class-compiler/health.svg)

```
[![Health](https://phpackages.com/badges/pe-component-class-compiler/health.svg)](https://phpackages.com/packages/pe-component-class-compiler)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M342](/packages/psalm-plugin-laravel)[deptrac/deptrac

Deptrac is a static code analysis tool that helps to enforce rules for dependencies between software layers.

3.0k8.8M108](/packages/deptrac-deptrac)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

6003.7M96](/packages/roave-backward-compatibility-check)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4814.0M24](/packages/coenjacobs-mozart)[v.chetkov/php-clean-architecture

PHP Clean Architecture

14659.9k](/packages/vchetkov-php-clean-architecture)

PHPackages © 2026

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