PHPackages                             runtime/google-cloud - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. runtime/google-cloud

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

runtime/google-cloud
====================

Google Cloud runtime

1.0.0(6mo ago)133.3kMITPHPPHP &gt;=8.0.5

Since Apr 29Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/php-runtime/google-cloud)[ Packagist](https://packagist.org/packages/runtime/google-cloud)[ GitHub Sponsors](https://github.com/nyholm)[ RSS](/packages/runtime-google-cloud/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Google Cloud Runtime
====================

[](#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
------------

[](#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
-----

[](#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`.

```
