GithubHelp home page GithubHelp logo

prawee / yii2-gae-api Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 31 KB

Create RESTful for deploy on Google App Engine with Yii2

Home Page: http://www.prawee.com

PHP 100.00%
gae google appengine appengine-php yii2 restful-api webservice yii2-gae-api standard standard-environment

yii2-gae-api's Introduction

Yii2 API with Google App Engine

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

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

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 public

localhost with google app engine

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

yii2-gae-api's People

Contributors

prawee avatar tunecino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.