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
- Host: GitHub
- URL: https://github.com/php-runtime/google-cloud
- Owner: php-runtime
- License: mit
- Created: 2021-04-26T20:41:40.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-12-18T07:37:27.000Z (4 months ago)
- Last Synced: 2025-12-21T15:39:58.891Z (4 months ago)
- Language: PHP
- Size: 30.3 KB
- Stars: 13
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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