PHPackages                             elepunk/oven - 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. elepunk/oven

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

elepunk/oven
============

Files or directories scaffold tool

v1.2.0(11y ago)127[3 issues](https://github.com/elepunk/oven/issues)MITPHPPHP &gt;=5.4

Since Aug 12Pushed 11y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (4)Versions (7)Used By (0)

Oven Boilerplate Generator
--------------------------

[](#oven-boilerplate-generator)

Simple boilerplate generator for PHP 5.4 and above. Based on [Indatus/Blacksmith](https://github.com/Indatus/blacksmith) package.

### Installation

[](#installation)

Install as global Composer package and add the global Composer bin directory to your PATH. `composer global require "elepunk/oven=1.3.*@dev"`

### Updating Oven

[](#updating-oven)

To update Oven, you can use `composer global update` command.

### Available Commands

[](#available-commands)

CommandDescription`oven recipe:configure`Set default recipes location`oven recipe:bake`Generate codes by using recipe folder name### Usage

[](#usage)

To start using Oven, you first need to create a new recipe.

#### Creating New Recipe

[](#creating-new-recipe)

Create a new folder and create a new file called `recipe.json`.

```
{
    "name": "Sample Recipe",
    "ingredients": {
        "controller": {
            "source": "Controller/controller.php",
            "name": "(entity)Controller.php"
        },
        "processor": {
            "source": "Processor/processor.php",
            "name": "(entity).php"
        }
    }
}
```

All files that want to be created need to be specified under `ingredients`. Source like `Controller/controller.php` will be copied to the new destination.

Check out my sample recipe [Oven Orchestra Recipe](https://github.com/elepunk/oven-orchestra).

#### Running Oven

[](#running-oven)

Generating specific item

`oven bake --r="source/to/recipe.json" --d="your/destination/directory" Foobar controller`

Generating the entire ingredients

`oven bake --r="source/to/recipe.json" --d="your/destination/directory" Foobar`

#### Organizing Your Recipes

[](#organizing-your-recipes)

Set the recipes location

`oven recipe:configure /path-to-your-recipe-files`

Create new recipes under the recipe location. Then generate the items

`oven recipe:bake --d="your/destination/directory" recipe-template-directory-name Foobar controller`

#### Available Options

[](#available-options)

`--r="source-to-recipe-file"`

This is to specify the location of the recipe file if you are in another directory. Default is the current directory.

`--d="destination"`

This will be the place where new files will be created. Default is the current directory.

`--f`

This will overwrite existing file

#### Available Template Variables

[](#available-template-variables)

VariableDescriptionOutput`(entity)`Studly cased entity nameFoobar`(instance)`Lower cased entity namefoobar`(namespaces)`Studly cased namespaceFoo\\Bar\\Foobar### Changelogs

[](#changelogs)

#### v1.3.0-dev

[](#v130-dev)

- Deprecated `oven bake` command
- `oven recipe:bake` recipe path can now be override using `--recipe` option
- Added `--ignore-namespace` option to generate files in the same directory
- Added `oven recipe:skeleton` command to create recipe boilerplate
- Make the command options more readable
- Overhaul the codebase to make it more testable
- Added unit tests

#### v1.2.0

[](#v120)

- Bump to minimum PHP verion 5.4
- Add global option to set default recipe directory
- Enable oven to bake using template
- Change errors to exceptions
- Added list of files generated after success

#### v1.1.2

[](#v112)

- Add force option using --f
- Add instance template variable

#### v1.1.1

[](#v111)

- Detect current working directory it is running from

#### v1.1.0

[](#v110)

- Fix vendor autoloading issue

#### v1.0.0

[](#v100)

- Initial release

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

4341d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2554da9ad5880fdb56945d1539d31e986b4bc3dba3a2791b9a8f8259408398d9?d=identicon)[shopalicious](/maintainers/shopalicious)

---

Top Contributors

[![ahmadshah](https://avatars.githubusercontent.com/u/4233863?v=4)](https://github.com/ahmadshah "ahmadshah (43 commits)")

---

Tags

generatorscaffoldboilerplate

### Embed Badge

![Health badge](/badges/elepunk-oven/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[phpro/soap-client

A general purpose SoapClient library

8896.1M54](/packages/phpro-soap-client)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)

PHPackages © 2026

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