2017 © Pedro Peláez
 

project yii2-gae-api

Create RESTful for deploy on Google App Engine with Yii2

image

prawee/yii2-gae-api

Create RESTful for deploy on Google App Engine with Yii2

  • Saturday, December 23, 2017
  • by prawee
  • Repository
  • 1 Watchers
  • 3 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 API with Google App Engine

Create RESTFul for deploy on Google App Engine (Standard Environment) with Yii2, (*1)

Support

  1. response both xml and json format
  2. make versioning
  3. using .env file between server and local
  4. using memcache via app-engine

Installation

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

Configuration

Update environment variable for your local, (*2)

cp .env.dist .env

Update environment variable for your GAE, (*3)

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

Update configure on your local, (*4)

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

Running

localhost, (*5)

php -S localhost:8080 -t public

localhost with google app engine, (*6)

dev_appserver.py app.yaml

Look

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

The Versions

23/12 2017

dev-master

9999999-dev https://github.com/prawee/yii2-gae-api.git

Create RESTful for deploy on Google App Engine with Yii2

  Sources   Download

MIT

The Requires

 

The Development Requires

api yii2 restful gae google app engine