Download the PHP package eureciclo/gae-support-laravel without Composer
On this page you can find all versions of the php package eureciclo/gae-support-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eureciclo/gae-support-laravel
More information about eureciclo/gae-support-laravel
Files in eureciclo/gae-support-laravel
Package gae-support-laravel
Short Description Google App Engine (Standard and Flexible Environment) runtime support for Laravel apps.
License MIT
Informations about the package gae-support-laravel
GaeSupportLaravel
Google App Engine (GAE) Standard Environment support package for Laravel 9.x.
Based on original work for App Engine Standard (on the PHP5.5 runtime) by @shpasser https://github.com/shpasser/GaeSupportL5
Note: we only intend to support Laravel LTS releases, with this version targeted specifically at Laravel 9.x
Functionality
- StackDriver Logging integration
- StackDriver Trace integration (see docs/trace.md)
- Blade View Pre-Compiler (optional, see docs/blade-pre-compile.md)
- Guzzle integration (optional, see docs/trace.md)
- Laravel Auth Integration for IAP (optional, see docs/iap-auth-verify.md)
- Queue Driver for Cloud Tasks (optional, see docs/queue.md)
- Examples for deployment from Git via Cloud Build, plus encrypted secrets with KMS (optional, see docs/cloudbuild.md)
Installation
Pull in the package via Composer:
Laravel Specific (Not Lumen)
1. Add the following to composer.json
:
2. For Laravel, include the service provider within config/app.php
:
3. Also, for added functionality, include the optional service providers:
And remove the relevant Laravel service providers that these replace:
4. Update bootstrap/app.php
to load the overridden application class & initialise logging to Stackdriver:
5. Update app/Exceptions/Handler.php
to enable proper Exception logging to StackDriver Error Reporting & Logging:
Change the following use
statement:
To our class, that'll inject the required logging hook:
6. In config/logging.php
, configure a custom logger and set it as the default:
It's also useful to set the emergency log path to a location App Engine will forward to Stackdriver Logging, see below.
7. In .env
, set the following:
Lumen Specific (Not Laravel)
1. Update bootstrap/app.php
to load the overridden application class
2. Update app/Exceptions/Handler.php
to enable proper Exception logging to StackDriver Error Reporting & Logging:
Change the following use
statement:
To our class, that'll inject the required logging hook:
Upgrading (from Laravel/Lumen 6.x LTS)
Laravel Specific (Not Lumen)
1. Update the package version in composer.json
:
2. Follow the Laravel upgrade steps for all versions 6.x ... 9.x
Lumen Specific (Not Laravel)
1. Update the package version in composer.json
:
2. Follow the Lumen upgrade steps for all versions 6.x ... 9.x
All versions of gae-support-laravel with dependencies
a1comms/eloquent-datastore Version ~11
a1comms/eloquent-sqlcommenter Version ~11
a1comms/opencensus Version ~0
a1comms/opencensus-exporter-stackdriver Version ~0
guzzlehttp/guzzle Version ^7.4.1
google/cloud Version >=0.175.0 <1.0.0
firebase/php-jwt Version ^6.3
illuminate/support Version ~11
illuminate/contracts Version ~11
illuminate/http Version ~11
illuminate/cache Version ~11
illuminate/console Version ~11
illuminate/queue Version ~11
illuminate/view Version ~11
illuminate/container Version ~11
illuminate/encryption Version ~11
illuminate/filesystem Version ~11
illuminate/collections Version ~11
symfony/console Version ^7.0
xantios/mimey Version ^2.2