A Framework scaffolder.
Currently supports Slim Framework only.
composer require --dev dbould/davework
cp vendor/dbould/davework.json.example myProjectRoot/davework.json
I'm currently still working on fixing the Phar archive, but I'll add a link and instructions when that's finished.
eg:
{
"topLevelNamespace": "Dbould\\Davework"
}
Top level code directory eg:
{
"rootDirectory": "src/"
}
eg:
{
"testNamespace": "Test"
}
eg:
{
"testsDirectory": "test/"
}
Optional. If set to true, factory files will be created in the same directory as the class files they're associated with. If set to false, factories go into a separate Factory/ directory. eg:
{
"factoriesLiveWithClasses": false
}
Create new file with associated files. There is no need to append the type of the file to the end of the fileName, it will be added for you.
vendor/bin/davework slim:create-file fileName type [moduleName]
Run all test suites
vendor/bin/phpunit
Run all functional tests
vendor/bin/phpunit tests/Functional
Run all unit tests
vendor/bin/phpunit tests/Unit
Generate through Box https://github.com/box-project/box2
vendor/bin/box build -v