Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prawee/yii2-gae-api
Create RESTful for deploy on Google App Engine with Yii2
https://github.com/prawee/yii2-gae-api
appengine appengine-php gae google restful-api standard standard-environment webservice yii2 yii2-gae-api
Last synced: 2 months ago
JSON representation
Create RESTful for deploy on Google App Engine with Yii2
- Host: GitHub
- URL: https://github.com/prawee/yii2-gae-api
- Owner: prawee
- Created: 2017-10-19T19:59:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-25T07:35:25.000Z (almost 3 years ago)
- Last Synced: 2024-04-18T11:11:47.458Z (9 months ago)
- Topics: appengine, appengine-php, gae, google, restful-api, standard, standard-environment, webservice, yii2, yii2-gae-api
- Language: PHP
- Homepage: http://www.prawee.com
- Size: 30.3 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
git clone https://github.com/prawee/yii2-gae-api
cd yii2-gae-api
composer install
```### Configuration
Update environment variable for your local
```bash
cp .env.dist .env
```Update environment variable for your GAE
```bash
cp app.yaml.dist app.yaml
cp cron.yaml.dist cron.yaml
```
Update configure on your local
```bash
cp config/main-local.php.dist config/main-local.php
```### Running
localhost
```bash
php -S localhost:8080 -t public
```localhost with google app engine
```bash
dev_appserver.py app.yaml
```### Look
```bash
# local
GET localhost:8080/requirements.php
GET localhost:8080/site
GET localhost:8080/v1/users
``````bash
# gae
GET https://.appspot.com/requirements.php
GET https://.appspot.com/site
GET https://.appspot.com/v1/users
```