Using Composer
composer create-project gosoft/s3-skeleton=dev-master
Github
1. run composer install
2. run npm i, on linux run with sudo (optional)
3. run npm install -g grunt, on linux run with sudo (optional)
4. Copy the .env.example file and rename it as .env, in the file configure your development environment variables
5. Serving your application using built-in PHP development server: php -S localhost:8080 -t public
app
: Application codeapp/Controller
: All controllers files within theApp\Controller
namespaceapp/Models
: All models files within theApp\Models
namespaceapp/Middleware
: All middlewares files within theApp\Middleware
namespaceresources/views
: Twig template filesresources/assets
: The less work you have to do when performing repetitive tasks like minification, compilation, unit testing, linting, etc, the easier your job becomes.public
: Webserver rootvendor
: Composer dependenciesnode_modules
: npm dependencies
Devops
run grunt dev
Production
run grunt dist
Create Controller
php skeleton create:controller yourcontrollername
Create Model
php skeleton create:model yourmodelname
Create Migration
php skeleton create:migration yourmigrationname
php skeleton migrate
php skeleton rollback