Download the PHP package poing/laravel-elb without Composer

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

Running Laravel on AWS Elastic Beanstalk with HTTPS

This package provides the essential elements for a Laravel app running on AWS Elastic Beanstalk (ELB) with HTTPS.

It provides the following:

Elastic Beanstalk with HTTPS Quick Start Guide

Here are Step-by-Step instructions to deploy a new Laravel application to AWS Elastic Beanstalk.

Installation

You can install this package using composer

Commands:

Once the package is installed, the following artisan commands will be available in your Laravel application:

Elastic Beanstalk Configuration Files

This package provides Elastic Beanstalk configuration files (.ebextensions) to configure the environment, customize AWS resources, and perform Laravel tasks. Like running artisan commands.

These provide the basic requirements for deploying Laravel to Elastic Beanstalk. Files are named so you can insert files within the processing order.

If you think something is missing, something could be done better, feel free to submit a pull request.
Except for HTTP to HTTPS redirect, see the next section for an explanation.

MariaDB or Auroa

Because I often use Auroa or MarieDB, instead of MySQL. I added the fix for non-MySQL Databases.

Laravel 5.4 made a change to the default database character set, and it’s now utf8mb4 which includes support for storing emojis. This only affects new applications and as long as you are running MySQL v5.7.7 and higher you do not need to do anything.

While AWS does provide a higher version of MySQL. Aurora (MySQL Compatabe), does not support the increased string length. yet

HTTP to HTTPS Redirection

Middleware included in this package eliminates the necessity of using .ebextensions to handle HTTP to HTTPS redirection with the Apache RewriteEngine method. While allowing some traffic not to be redirected, such as the Elastic Beanstalk HealthChecker.

Redirection does not occur for any of the following conditions:

It provides the same functionality as the https-redirect recommended in the AWS documentation, and allows for custom paths to easily be excluded.

You may choose to use the .ebextensions method, it should not affect this middleware.

The middleware is a result of frustration trying to get the correct RewriteCond rules to exclude multiple conditions using the .ebextensions method. Handling the HTTP to HTTPS redirection with Laravel provides more flexibility with less headaches. I was working with an application that could not fetch content from third party domains with HTTPS.

Basic Usage

By default, this package includes a sample view and allows HTTP access to URI's with a base of /unsecure.

Configuration

To use your own configuration, run elb:publish to install config/laravel-elb.php in your Laravel application.

This will disable the sample view included with the package.

Excluded URI Paths
Behaviour:
Strict Mode
Behaviour:

Recognizing Secure Requests

The AWS Elastic Beanstalk environment uses a Load Balancer to serve HTTPS requests, while the Laravel application actually runs in an AWS Elastic Beanstalk environment that only supports HTTP.

This can cause the Laravel application to represent HTTP to helper methods that return URL information, since the Laravel application is not aware of the Load Balancer.

Incorrect Response:

This package uses peppeocchi/laravel-elb-middleware to simplify using HTTPS with your Laravel application on AWS Elastic Beanstalk. Ensuring that your Laravel application will correctly recognize secure requests when running on Elastic Beanstalk with a Load Balancer. Allowing helper methods that return URL information, to represent the correct protocol scheme.

Correct Response:

This middleware is based on a gist by Giuseppe Occhipinti that does the exact same thing.


All versions of laravel-elb with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version >=5.5
peppeocchi/laravel-elb-middleware Version >=3
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 poing/laravel-elb contains the following files

Loading the files please wait ....