cloudframework-io/appengine-php-core-7.3

Framework to develop APIs and web applications optimized for Google Appengine PHP 7.3

v73.18111 2021-06-11 15:14 UTC

README

CloudFrameWork.io / APPENGINE PHP 7.3 Framework

composer require cloudframework-io/appengine-php-core-7.3

Google Cloud

Package

https://packagist.org/packages/cloudframework-io/appengine-php-core-7.3

Memorystore. Install REDIS to manage Memory Cache

In php7 we have lost MemoryCache :(. To solve it Google provide a solution call Memorystore:

It is a REDIS server that can also be installed in localhost. You can read more about it in:

Configure in Google Cloud a VPC to connect your redis server

https://cloud.google.com/appengine/docs/standard/php7/connecting-vpc#configuring

Install REDIS in localhost

brew install redis

Manual launch (stand alone)

redis-server /usr/local/etc/redis.conf

In Background

brew services start redis

Install the php library

sudo pecl install redis-5.2.0

Setup Env Vars for localhost

export REDIS_HOST=127.0.0.1
export REDIS_PORT=6379

Setup app.yaml vars for Google Cloud

env_variables:
  REDIS_HOST: "10.*****"
  REDIS_PORT: "6379"

Using it in CloudFramework

$core->cache->get/set/delete