An open API service indexing awesome lists of open source software.

https://github.com/php-runtime/google-cloud

[READ ONLY] Runtime for Google Cloud
https://github.com/php-runtime/google-cloud

Last synced: 3 months ago
JSON representation

[READ ONLY] Runtime for Google Cloud

Awesome Lists containing this project

README

          

# Google Cloud Runtime

A runtime for [Google Cloud](https://cloud.google.com/).

If you are new to the Symfony Runtime component, see the "The Long Story" down below.

## Installation

This runtime layer is special. It includes a `router.php` to enable the use of
Symfony Runtime component. You need to install this package **and** the runtime you
want to use.

To use with native or Symfony application.

```
composer require runtime/google-cloud symfony/runtime
```

If you want to use it with PSR-7.
```
composer require runtime/google-cloud runtime/psr-nyholm
```

## Usage

Define the environment variable `FUNCTION_SOURCE`.

```
# Default value
FUNCTION_SOURCE=index.php
```

Note that Google Cloud **requires** you to have an index.php file. If you are running
Symfony you probably want to define `FUNCTION_SOURCE=public/index.php` but you
still need to create an `index.php`.

```php