Slim3 GAE Skeleton
Slim 3 skeleton working with Google App Engine include cron configuration.
Demo https://slim3-gae-skeleton.appspot.com/health_check.
Installation
$ composer create-project --no-interaction --stability=dev jaredchu/slim3-gae-skeleton my-app
Deploy
Install gcloud then run init command in project directory:
$ gcloud init
Deploy your project:
$ gcloud app deploy
Browse to http://[YOUR_PROJECT_ID].appspot.com
Remember to run this command after update cron.yaml
:
$ gcloud app deploy cron.yaml
Run locally
$ cd my-app
$ php -S 0.0.0.0:8888 -t . index.php
- Browse to http://localhost:8888
Key directories
app
: application codeapp/Controllers
: contains controller classesapp/Enums
: contains enum classesapp/Schedules
: contains schedule classes
Key files
index.php
: Entry point to application, route configurationapp.yaml
: Google App Engine main configurationcron.yaml
: Google App Engine cron configuration
Contributing
- Fork it!
- Create your feature branch:
$ git checkout -b feature/your-new-feature
- Commit your changes:
$ git commit -am 'Add some feature'
- Push to the branch:
$ git push origin feature/your-new-feature
- Submit a pull request.