Download the PHP package hubchain/gae-support-laravel without Composer
On this page you can find all versions of the php package hubchain/gae-support-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hubchain/gae-support-laravel
More information about hubchain/gae-support-laravel
Files in hubchain/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 and Flexible Environment support package for Laravel 5.5 LTS.
Based on original work for App Engine Standard (on the PHP5.5 runtime) by @shpasser https://github.com/shpasser/GaeSupportL5
This library is designed for homogeneous operation between the Standard Environment and the Flexible Environment.
Note: we only intend to support Laravel LTS releases, with this version targeted specifically at Laravel 5.5 LTS
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 .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:
All versions of gae-support-laravel with dependencies
opencensus/opencensus-exporter-stackdriver Version ~0
guzzlehttp/guzzle Version ~6
a1comms/php-gds Version ~4.2
google/cloud Version >=0.100.0 <1.0.0
kelvinmo/simplejwt Version ^0.2.4