cloudframework-io/appengine-php-core-7.4

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

v74.24161 2023-12-16 05:47 UTC

This package is auto-updated.

Last update: 2024-10-16 07:50:13 UTC


README

CloudFrameWork.io / APPENGINE PHP 7.4 Framework

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

Google Cloud

Package

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

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