PHPackages                             mauris/concrete - 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. [CLI &amp; Console](/categories/cli)
4. /
5. mauris/concrete

AbandonedArchivedLibrary[CLI &amp; Console](/categories/cli)

mauris/concrete
===============

Rock solid PHAR compiler for PHP

1.2.1(11y ago)30301BSD-3-ClausePHPPHP &gt;=5.3.3

Since Dec 24Pushed 11y ago4 watchersCompare

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

READMEChangelog (3)Dependencies (4)Versions (8)Used By (0)

\#Concrete

[![Build Status](https://camo.githubusercontent.com/10c128fc4c706120e2b1ec640db8537f97abbe9bfff45b5564374fbed4e65ed7/68747470733a2f2f7472617669732d63692e6f72672f6d61757269732f636f6e63726574652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mauris/concrete) [![Latest Stable Version](https://camo.githubusercontent.com/5d50a30a6232c69ef73e4195b7deb68662153cd0b6f080b2664f91a8592fb246/68747470733a2f2f706f7365722e707567782e6f72672f6d61757269732f636f6e63726574652f762f737461626c652e737667)](https://packagist.org/packages/mauris/concrete) [![Total Downloads](https://camo.githubusercontent.com/628bbe567ac8e756270c6e3c95d6519d69f3db0de5d1d3051794e3611809b479/68747470733a2f2f706f7365722e707567782e6f72672f6d61757269732f636f6e63726574652f646f776e6c6f6164732e737667)](https://packagist.org/packages/mauris/concrete)

> Rock-solid PHAR compiler for PHP

\##What is Concrete?

Concrete is a simple CLI tool that helps you to compile your PHP application into PHAR binary for distribution.

\##Usage

There are three ways of using Concrete. Through [Composer](https://getcomposer.org/), you can install Concrete to your system hassle-free or include it as a library on your project. Alternatively, you can build Concrete into a PHAR archive and use the binary.

\###Usage - Composer CLI Application

With great thanks to Composer, you can install Concrete on your machine. You must ensure that Composer is installed on your system. Run the following command to install Concrete.

```
composer global require mauris/concrete

```

After installation is complete, you will be able to use concrete:

```
concrete build

```

\###Usage - Composer Library

You can use Concrete by adding the following [`mauris/concrete`](https://packagist.org/packages/mauris/concrete) into your `composer.json` file like this:

```
{
    "require":{
        "mauris/concrete": "1.2.*"
    },
}

```

Then install your dependencies by following the [Composer installation](http://getcomposer.org/doc/00-intro.md) command:

```
$ php composer.phar install

```

After which, you may create a `Compiler` class that extends from `\Concrete\Compiler` and you may write your build script within the protected overriding method `compile()`. To build your PHAR binary, write a script to run the `build()` method of your `Compiler` class.

\###Usage - PHAR Binary

You can use Concrete as a standalone PHAR binary. Either

1. Download from the [Release](https://github.com/mauris/concrete/releases) page; or,
2. Follow the instructions found in "Building Concrete" to build the `concrete.phar`.

\##Building Concrete

Concrete uses `concrete.json` to compile itself into `concrete.phar` by running:

```
$ php bin/concrete

```

Concrete will use the information found in the `concrete.json` file of the project directory to build itself.

Afterwhich, you will find the `concrete.phar` generated in the current working directory.

\##License

Concrete is released open source under the *BSD 3-Clause License*. See the `LICENSE` file in repository for details.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

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

Recently: every ~175 days

Total

7

Last Release

4186d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

1.2.0PHP &gt;=5.3.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/1743cee8bb3242229368d7fca5a7ac952932fd377d0c3d4343eb8dceea6a395e?d=identicon)[mauris](/maintainers/mauris)

---

Top Contributors

[![mauris](https://avatars.githubusercontent.com/u/996939?v=4)](https://github.com/mauris "mauris (110 commits)")

---

Tags

phpclipharcompiler

### Embed Badge

![Health badge](/badges/mauris-concrete/health.svg)

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

###  Alternatives

[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k69](/packages/humbug-box)[seregazhuk/php-watcher

Automatically restart PHP application once the source code changes

394137.8k4](/packages/seregazhuk-php-watcher)

PHPackages © 2026

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