Download the PHP package shpasser/gae-support-lumen without Composer

On this page you can find all versions of the php package shpasser/gae-support-lumen. 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-lumen

GaeSupportLumen

Latest Stable Version Total Downloads Latest Unstable Version License

Google App Engine(GAE) Support package for Lumen.

Currently supported features:

For Laravel 5 see https://github.com/shpasser/GaeSupportL5.

Installation

Pull in 'shpasser/gae-support-lumen' and 'illuminate/mail' packages via Composer.

Within bootstrap/app.php:

Usage

Generate the GAE related files / entries.

The default GCS bucket is configured unless a custom bucket id is defined using the --bucket option.

When --db-name option is defined at least one of --db-socket or --db-host should be defined also.

Mail

The mail driver configuration can be found in config/mail.php and .env.production, these configuration files are modified / generated by the artisan command. There is no need in any kind of custom configuration. All the outgoing mail messages are sent with sender address of an administrator of the application, i.e. [email protected]. The sender, to, cc, bcc, replyTo, subject, body and attachment parts of email message are supported.

Queues

The modified queue configuration file config/queue.php should contain:

The 'default' queue and encryption are used by default. In order to use the queue your app/Http/routes.php file should contain the following route:

This route will be used by the GAE queue to push the jobs. Please notice that the route and the GAE Queue Connection 'url' parameter point to the same URL. For more information on the matter please see http://laravel.com/docs/master/queues#push-queues.

Cache, Session and Log

Cache, Session and Log components are supported via the use of specific drivers / handlers:

The configuration options for the mentioned drivers / handlers are generated by the artisan command and can be found in .env.production configuration file.

Database

Google Cloud SQL is supported via Laravel's MySql driver. The connection configuration is added by the artisan command to config/database.php under cloudsql. The connection parameters can be configured using --db-socket, --db-name and --db-host options via the artisan command.

The database related environment variables are set in .env.production and .env.local files.

The production environment is configured to use the socket connection while the local configured to connect via the IPv4 address of the Google Cloud SQL instance. Use Google Developers Console in order to obtain the socket connection string and enable the IPv4 address of your database instance.

The migrations are supported while working in local environment only.

To use either the production or the local environment rename the appropriate file to .env.

Filesystem

In order to support Laravel filesystem on GAE the artisan command modifies config/filesystem.php to include an additional disk:

and adds the following line to .env.production file:

The last but not the least, pull in 'league/flysystem' package via Composer.

Optimizations

The optimizations allow the application to reduce the use of GCS, which is the only read-write storage available on GAE platform as of now.

In order to optimize view compilation the included cachefs filesystem can be used to store compiled views using memcached service. cachefs does not provide the application with a reliable storage solution, information stored using memcached is managed according to memcached rules and may be deleted when memcached decides to. Since the views can be compiled again without any information loss it is appropriate to store compiled views using cachefs.

'cachefs' has the following structure:

/
+-- framework
    +-- views

'/framework/views' is used to store the compiled views.

Use the following option to enable the feature in .env.production file:

Additionally the initialization of GSC bucket can be skipped to boost the performance:

the storage path will be set to /storage directory of the GCS bucket and storage directory structure creation will be skipped.

If not used the filesystem initialization can be removed to minimize GCS usage. In order to do so, remove the following line from .env.production file:

Deploy

Backup the existing .env file if needed and rename the generated .env.production to .env before deploying your app.

Download and install GAE SDK for PHP and deploy your app.


All versions of gae-support-lumen with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
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 shpasser/gae-support-lumen contains the following files

Loading the files please wait ....