jaredchu / slim3-gae-skeleton
Slim 3 skeleton working with Google App Engine include cron configuration.
Installs: 598
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 0
Type:project
Requires
- mtdowling/cron-expression: ^1.2
- nesbot/carbon: ^1.22
- slim/slim: ^3.0
This package is not auto-updated.
Last update: 2024-11-10 04:12:14 UTC
README
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.