Skip to content

Create RESTful for deploy on Google App Engine with Yii2

Notifications You must be signed in to change notification settings

patrick-yi-82/yii2-gae-api

 
 

Repository files navigation

yii2-gae-api

Create RESTful for deploy on Google App Engine (Standard Environment) with Yii2

Support

  1. reponse both xml and json format
  2. make versioning
  3. using .env file between server and local
  4. using memcache via appengine

Installalion

$ git clone https://github.com/prawee/yii2-gae-api
$ cd yii2-gae-api
$ composer install

Configuration

Update environment variable for your local

$ cp .env.dist .env

Update environment variable for your GAE

$ cp app.yaml.dist app.yaml
$ cp cron.yaml.dist cron.yaml

Update configure on your local

$ cp config/main-local.php.dist config/main-local.php

Running

localhost

$ php -S localhost:8080 -t web

localhost with google app engine

$ dev_appserver.py app.yaml

Look

# local
GET localhost:8080/site
GET localhost:8080/v1/users
# gae
GET https://<project-id>.appspot.com/site
GET https://<project-id>.appspot.com/v1/users

About

Create RESTful for deploy on Google App Engine with Yii2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%