Download the PHP package elepunk/oven without Composer
On this page you can find all versions of the php package elepunk/oven. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package oven
Oven Boilerplate Generator
Simple boilerplate generator for PHP 5.4 and above. Based on Indatus/Blacksmith package.
Installation
Install as global Composer package and add the global Composer bin directory to your PATH.
Updating Oven
To update Oven, you can use command.
Available Commands
Command | Description |
---|---|
oven recipe:configure |
Set default recipes location |
oven recipe:bake |
Generate codes by using recipe folder name |
Usage
To start using Oven, you first need to create a new recipe.
Creating New Recipe
Create a new folder and create a new file called .
All files that want to be created need to be specified under . Source like will be copied to the new destination.
Check out my sample recipe Oven Orchestra Recipe.
Running Oven
Generating specific item
Generating the entire ingredients
Organizing Your Recipes
Set the recipes location
Create new recipes under the recipe location. Then generate the items
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
Variable | Description | Output |
---|---|---|
(entity) |
Studly cased entity name | Foobar |
(instance) |
Lower cased entity name | foobar |
(namespaces) |
Studly cased namespace | Foo\Bar\Foobar |
Changelogs
v1.3.0-dev
- Deprecated command
- recipe path can now be override using option
- Added option to generate files in the same directory
- Added 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
- 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
- Add force option using --f
- Add instance template variable
v1.1.1
- Detect current working directory it is running from
v1.1.0
- Fix vendor autoloading issue
v1.0.0
- Initial release
All versions of oven with dependencies
symfony/console Version 2.5.*
illuminate/filesystem Version 4.2.*
symfony/event-dispatcher Version 2.5.*