Download the PHP package a1comms/gae-support-laravel without Composer

On this page you can find all versions of the php package a1comms/gae-support-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package gae-support-laravel

GServerlessSupportLaravel

Latest Stable Version   PHP Version Require   Monthly Downloads   Total Downloads   License

     


Google Serverless runtime support package for Laravel 11.x.

Supporting Cloud Run & App Engine (Standard Environment) with the php83 runtime.

Based on original work for App Engine (GaeSupportL5 using the php55 runtime) by @shpasser.

Functionality

Installation

1. Pull in the package via Composer:

2. Add the following to composer.json:

This is to automatically run the artisan command that prepares our app for deployment after composer finishes running: this creates any necessary cache files and if enabled, pre-compiles all of the blade views.

If you are deploying with Cloud Build, composer install is likely to run just before packaging/deployment to your chosen serverless product, so this will ensure everything else required runs as part of that step.

3. Update the use statement at the top of bootstrap/app.php from:

to:

This will enable automatic exception reporting to Cloud Logging & Error Reporting, alongside adjusting the emergency logger to work correctly inside the containerized environment by writing to stderr.

Important: the Logging API & the Trace API need to be enabled within your project, and the service account being used by your serverless app needs to have IAM permissions to use them:

4. Configure the service providers within config/app.php by adding:

5. Add the following environment variables:

This can be done either in .env, inside app.yaml, or as part of the Cloud Run service configuration - we recommend the latter two options where possible.

When using Cloud Tasks, you'll also want to configure:

If you are using an external CDN such as Cloudflare, also configure the following environment variable with the name of the HTTP header used for passing the client's IP address:

And if you need to disable OpenTelemetry tracing (we highly recommend you leave it enabled), define the following environment variable:

Also, if running in a development environment, please also set the following:

This does several things, such as:

Upgrading (from Laravel 9.x LTS)

1. Update the package version in composer.json:

2. Follow the Laravel upgrade steps for all versions 9.x ... 11.x

3. Update any references in your code to our namespace:

A1comms\GaeSupportLaravel

has changed to:

AffordableMobiles\GServerlessSupportLaravel

4. Ensure bootstrap/app.php is extending our Application class:

Please see step 3 in the main installation guide as an example.

5. Change to the new provider configuration format in config/app.php:

Please see step 4 in the main installation guide as an example.

6. Update explicit/silent exception reporting:

Anywhere referencing the Error Reporting integration class directly:

AffordableMobiles\GServerlessSupportLaravel\Integration\ErrorReporting::exceptionHandler($e);

should be updated to report using Laravel's new method:

report($e);

7. Revert config/logging.php to the Laravel default.

8. Update environment variables:

Please see step 5 in the main installation guide & update your environment variables accordingly.

9. If you are using php-gds for Datastore, consider switching to eloquent-datastore.

Otherwise, you'll need to require it via composer yourself, as it is no longer required by this repository.

10. If using the lcobucci/jwt compatible DWDTokenSource, it has now been removed.

Migrate to the google/auth compatible GCEDWDCredentials.

11. Update your app.yaml file(s) to specify runtime: php83.


All versions of gae-support-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
a1comms/eloquent-datastore Version ~1
a1comms/eloquent-sqlcommenter Version ~9
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
kelvinmo/simplejwt Version ^0.6.2
illuminate/support Version ~9
illuminate/contracts Version ~9
illuminate/http Version ~9
illuminate/cache Version ~9
illuminate/console Version ~9
illuminate/queue Version ~9
illuminate/view Version ~9
illuminate/container Version ~9
illuminate/encryption Version ~9
illuminate/filesystem Version ~9
illuminate/collections Version ~9
xantios/mimey Version ^2.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package a1comms/gae-support-laravel contains the following files

Loading the files please wait ....