Download the PHP package ignited/laravel-serverless without Composer

On this page you can find all versions of the php package ignited/laravel-serverless. 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 laravel-serverless

Note: this project has been abandoned, in the years the functionality of Bref has mostly caught up and this package is now redundant.

[ABANDONED] Laravel Serverless

This package makes deploying to Amazon Lambda a breeze. It combines the best of Bref and Serverless to bring you an effortless deploy.

Build Status Total Downloads Latest Version Dependency Status

Quick Start

  1. Install prerequisites:

  2. Install via composer:

  3. Publish serverless.yml

  4. Deploy to AWS

That's it! The rest is handled by this package. There's quite a lot going under the hood.

Configuration

Storage

When running on Lambda - all functions/code are placed into /var/task, since the filesystem is read only - Laravel will not be able to write to certain folders.

For that reason this package takes most of the hassle away by creating a /tmp/storage folder and reconfiguring Laravel during bootstrap.

Lamda does have a 500MB limit so it is recommended you write straight to an S3 bucket. When dealing with large files upon upload you should use a Signed Storage URL to allow clients to write directly to S3. More info on this coming soon.

Sessions

Given the ephemeral nature of a Lambda container it is recommended you only use a database cache or redis for sessions. This can be configured as normal and provide the options as SSM secrets or serverless.yml.

Database

Database can be configured as normal add your configuration to the SSM parameter store.

Logging

As Laravel cannot easily write to logs it is recommended that you use stderr. This is picked up by Lambda and can be viewed within Cloudwatch.

You can configure this as such:

Cache

Given the ephemeral nature of a Lambda container it is recommended you only use a database cache or redis cache. This can be configured as normal and provide the options as SSM secrets or serverless.yml.

Under the hood

Bref takes care of the following:

Serverless takes care of the following:

This package takes care of the following:

PHP Versions

Currently Bref supported runtimes are 7.2 and 7.3.

You can change this by updating the layer reference in serverless.yml.

PHP Extensions

For a full list of supported PHP extensions and to configure more see Supported Extensions.

Environment Variables

Environment variables can be added to the serverless.yml file.

For example:

Note: Secrets should be added to SSM secrets.

SSM Secrets

Laravel Serverless will take care of loading configuration and secrets from SSM at runtime. To do this you will need to provide APP_SECRETS_SSM_PATH in your serverless.yml enviroment:

This will look for any parameters under /app/ and set them as an env.

For example:

Supported Laravel Versions

Event Type Supported
Laravel 5.8
Laravel 6.0 (LTS)

Supported Event Types

Event Type Supported
Console (Manual Invocation)
Amazon API Gateway
Amazon Elastic Load Balancing
Amazon Alexa Coming Soon
Amazon Simple Email Service Coming Soon
Amazon SQS (Laravel Queues) Coming Soon

Directory Changes

Default New
storage/app /tmp/storage/app
storage/bootstrap/cache /tmp/storage/bootstrap/cache
storage/framework/cache /tmp/storage/framework/cache
storage/framework/views /tmp/storage/framework/views

Credits

Licensing

Laravel Serverless is licensed under the MIT License.

All files located in the vendor and external directories are externally maintained libraries used by this software which have their own licenses; we recommend you read them, as their terms may differ from the terms in the MIT License.


All versions of laravel-serverless with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ~5.8.0|^6.0|^7.0|^8.0|^9.0
illuminate/contracts Version ~5.8.0|^6.0|^7.0|^8.0|^9.0
illuminate/pipeline Version ~5.8.0|^6.0|^7.0|^8.0|^9.0
illuminate/http Version ~5.8.0|^6.0|^7.0|^8.0|^9.0
bref/bref Version ~0.5
aws/aws-sdk-php Version ^3.86
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 ignited/laravel-serverless contains the following files

Loading the files please wait ....