Skip to content

Instantly share code, notes, and snippets.

@brianwebb01
Created February 25, 2014 02:21
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianwebb01/9201450 to your computer and use it in GitHub Desktop.
Save brianwebb01/9201450 to your computer and use it in GitHub Desktop.
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
Copy link
Author

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