Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample Foreman template to follow hexagonal architecture found here: http://git.io/9NY65w
{
"structure": {
"copy": [
{
"from": "/projects/hex-arch-laravel/app/lib/Contracts/Instances/InstanceInterface.php",
"to": "app/lib/Contracts/Instances/InstanceInterface.php"
},
{
"from": "/projects/hex-arch-laravel/app/lib/Contracts/Notification/CreatorInterface.php",
"to": "app/lib/Contracts/Notification/CreatorInterface.php"
},
{
"from": "/projects/hex-arch-laravel/app/lib/Contracts/Notification/DestroyerInterface.php",
"to": "app/lib/Contracts/Notification/DestroyerInterface.php"
},
{
"from": "/projects/hex-arch-laravel/app/lib/Contracts/Notification/UpdaterInterface.php",
"to": "app/lib/Contracts/Notification/UpdaterInterface.php"
},
{
"from": "/projects/hex-arch-laravel/app/lib/Contracts/Repositories/RepositoryInterface.php",
"to": "app/lib/Contracts/Repositories/RepositoryInterface.php"
},
{
"from": "/projects/hex-arch-laravel/app/lib/Providers/RepositoriesServiceProvider.php",
"to": "app/lib/Providers/RepositoriesServiceProvider.php"
},
{
"from": "/projects/hex-arch-laravel/app/lib/Repositories/DbRepository.php",
"to": "app/lib/Repositories/DbRepository.php"
},
{
"from": "/projects/hex-arch-laravel/app/lib/Validators/Validator.php",
"to": "app/lib/Validators/Validator.php"
}
],
"move": [
{
"from": "",
"to": ""
}
],
"delete": [
],
"touch": [
],
"mkdir": [
"app/lib/Services"
]
},
"composer": {
"require": [
{
"package": "php",
"version": ">=5.4.0"
},
{
"package": "laravel/framework",
"version": "4.1.*"
},
{
"package": "nesbot/Carbon",
"version": "*"
}
],
"require-dev": [
{
"package": "mockery/mockery",
"version": "dev-master"
},
{
"package": "hot/phpunit-runner",
"version": "dev-master"
},
{
"package": "phpunit/phpunit",
"version": "dev-master"
},
{
"package": "codeception/codeception",
"version": "1.8.*@dev"
},
{
"package": "squizlabs/php_codesniffer",
"version": "*"
},
{
"package": "fabpot/php-cs-fixer",
"version": "*"
},
{
"package": "phpmd/phpmd",
"version": "*"
}
],
"autoload": {
"classmap": [
"app/lib",
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/test/TestCase.php"
],
"psr-0": [
],
"psr-4": [
]
}
}
}
@brianwebb01

This comment has been minimized.

Copy link
Owner Author

@brianwebb01 brianwebb01 commented Feb 25, 2014

You could execute a new Forman build with this template using:

foreman build ~/projects/myNewApp foreman-sample.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.