PHPackages                             kasseler/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. kasseler/compiler

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

kasseler/compiler
=================

String compiler library

1.0.1(11y ago)038MITPHPPHP &gt;=5.4.0

Since Feb 28Pushed 11y ago1 watchersCompare

[ Source](https://github.com/RobinCK/compiler)[ Packagist](https://packagist.org/packages/kasseler/compiler)[ Docs](http://kasseler-cms.net)[ RSS](/packages/kasseler-compiler/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Compiler Component
==================

[](#compiler-component)

[![Build Status](https://camo.githubusercontent.com/3143ea07c6d21d238a257c91c2efd3f7c13e1ab4463ef16aed4d5dd4fbe725dc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f526f62696e434b2f636f6d70696c65722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/RobinCK/compiler/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/49ff49354790818c847125d1858bd1a971176146d6df404557115239825a05fb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f526f62696e434b2f636f6d70696c65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/RobinCK/compiler/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/f45542cfad70bdaf4f736b4785558c4c9ad2cc77808b85ccb692b8dc972cfcb3/68747470733a2f2f706f7365722e707567782e6f72672f6b617373656c65722f636f6d70696c65722f762f737461626c652e737667)](https://packagist.org/packages/kasseler/config)[![Total Downloads](https://camo.githubusercontent.com/a6194917f896c812a55fe8e7907af5391dd1edc73ee07975818f47407c15bc68/68747470733a2f2f706f7365722e707567782e6f72672f6b617373656c65722f636f6d70696c65722f646f776e6c6f6164732e737667)](https://packagist.org/packages/kasseler/compiler)[![Latest Unstable Version](https://camo.githubusercontent.com/d4b4dda14e64a89f6dee28ddaf796a96b5eb15b89510975be2827c87a1a5a125/68747470733a2f2f706f7365722e707567782e6f72672f6b617373656c65722f636f6d70696c65722f762f756e737461626c652e737667)](https://packagist.org/packages/kasseler/compiler)[![License](https://camo.githubusercontent.com/f82bff37770d996259933b76079f891cd7e14548a3361175ec82687f572e487d/68747470733a2f2f706f7365722e707567782e6f72672f6b617373656c65722f636f6d70696c65722f6c6963656e73652e737667)](https://packagist.org/packages/kasseler/compiler)

The compiler converts the string data in php.

### Requirements

[](#requirements)

- PHP &gt;= 5.4

### Installation

[](#installation)

```
$ composer require kasseler/compiler
```

### Usage

[](#usage)

```
$compiler = new Compiler('substr|md5|is_array'); //allow functions
$compiler->run("is_array([1, 2, 3, 5])"); //return true
$compiler->run("substr('my function compile', 3, 8)"); //return string 'function'
$compiler->run("[1, 2, 3, 4, 5]"); //return array [1, 2, 3, 4, 5]
$compiler->run('{"assoc":[1, 2, 3, 4, 5]}'); //return assoc array ['assoc' => [1, 2, 3, 4, 5]]
$compiler->run("md5('654')"); //return hash md5 'ab233b682ec355648e7891e66c54191b'
$compiler->run("true"); //return boolean true
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

4117d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24ea64ad06776e5f6ad1e3d4e2bceb16dab50e52445699db7d6f942cd91de3eb?d=identicon)[kasseler](/maintainers/kasseler)

---

Top Contributors

[![RobinCK](https://avatars.githubusercontent.com/u/10226014?v=4)](https://github.com/RobinCK "RobinCK (8 commits)")

### Embed Badge

![Health badge](/badges/kasseler-compiler/health.svg)

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

###  Alternatives

[lizards-and-pumpkins/catalog

Lizards &amp; Pumpkins catalog module

554.0k5](/packages/lizards-and-pumpkins-catalog)

PHPackages © 2026

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