PHPackages                             madflow/cheesecake - 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. madflow/cheesecake

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

madflow/cheesecake
==================

Create projects or directory structures from templates

3.1(2y ago)16.8kMITPHPPHP ^7.4||^8.0CI failing

Since Feb 9Pushed 2y ago2 watchersCompare

[ Source](https://github.com/madflow/cheesecake)[ Packagist](https://packagist.org/packages/madflow/cheesecake)[ Docs](https://github.com/madflow/cheesecake)[ RSS](/packages/madflow-cheesecake/feed)WikiDiscussions master Synced today

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

Cheesecake - the best!
======================

[](#cheesecake---the-best)

Cheesecake is a project/directory skeleton generator thingy for PHP. It is inspired by .

Installation
============

[](#installation)

```
    $ composer require madflow/cheesecake
    $ ./vendor/bin/cheesecake

```

Use it without the cli
======================

[](#use-it-without-the-cli)

```
    $template = __DIR__ .'/mytemplate';
    $output = __DIR__ .'/myoutput';
    $params = ['project_name' => 'Yeah!'];
    $options = [
        Generator::OPT_OUTPUT => $output,
        Generator::OPT_NO_INTERACTION => true,
    ];
    $o = new Generator($template, $params, $options);
    $o->run();
```

Development
===========

[](#development)

```
# Clone the repo
git clone https://github.com/madflow/cheesecake.git

# Install dependencies
cd cheesecake
composer install

```

Examples
========

[](#examples)

##### Create a Silex starter project

[](#create-a-silex-starter-project)

```
# Create output directory
mkdir /tmp/silex

# Mmmh  - Cheesecake
./bin/cheesecake -o /tmp/silex examples/silex-starter

```

Hooks
=====

[](#hooks)

Put your hooks in `hooks` and name them `pre_gen.php` or `post_gen.php`.

Hacks
=====

[](#hacks)

- When processing Twig templates the Mustache engine tries to interpret expressions like `{{ okay | upper }}` and will fail with `Mustache_Exception_UnknownFilterException: Unknown filter: upper`
- In order to circumvent this, it is possible to define a magic `filters_ignore` parameter in your `cheesecake.json` file.

```
    {
        "app_name": "twig",
        "filters_ignore": ["upper"]
    }

```

- `filters_ignore` excepts an array of strings which will be translated to dummy filters.

---

- You can always try to change the delimiter like documented here:
- This way it should be possible to circumvent problems with other template engines.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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 ~780 days

Total

4

Last Release

861d ago

Major Versions

1.0 → 2.02018-10-06

2.0 → 3.02020-04-28

PHP version history (4 changes)1.0PHP ^5.6.0 || ^7.0

2.0PHP &gt;=7.0.0

3.0PHP &gt;=7.1.0

3.1PHP ^7.4||^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3afa709401445586294eac0c60244fcd66eb57429dbcca239b5a04ab033a0c45?d=identicon)[madflow](/maintainers/madflow)

---

Top Contributors

[![madflow](https://avatars.githubusercontent.com/u/183248?v=4)](https://github.com/madflow "madflow (22 commits)")[![icanhazstring](https://avatars.githubusercontent.com/u/883543?v=4)](https://github.com/icanhazstring "icanhazstring (2 commits)")

---

Tags

command-linephpproject-templatescaffoldingskeleton-templategeneratorbootstrapprojectstarter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/madflow-cheesecake/health.svg)

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

###  Alternatives

[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k28.9M2.2k](/packages/infection-infection)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k246.0M11.1k](/packages/symfony-framework-bundle)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54642.4k4](/packages/jolicode-castor)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19664.8M1.6k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M398](/packages/drupal-core-recommended)

PHPackages © 2026

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