Download the PHP package webravolab/layers without Composer

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

WebravoLab Layers

Laravel hexagonal architecture - Domain Driven Design abstraction layers

Includes:

Installation

To perform tests omit the to install the development dependencies.

The package is compatible with Laravel >= 5, not using (at the moment) any real version dependency.

Configuration

RabbitMQ Queue Handler

To use RabbitMQService you must have a running RabbitMQ server and copy the following file:

copy to laravel /config directory and customize configuration to access your RabbitMQ instance.

Database Queue Handler

DBQueueService is a DB based 100% replacement of RabbitMQ. It needs 3 tables to work:

You can find the Laravel migrations to build these tables under . Just replace the DB connection from testbench to whatever is your database name.

Testing

PhpUnit test suite is available. It creates a memory based SqLite database instance to create the required tables and perform tests. It uses the package to simulate a full Laravel environment.

To test CdnService with Google Cloud Storage you must copy your service account json file to /tests folder (google-credentials.json).

Usage

To understand the generic Queue Handler behaviour plese refer to the included tests for usage examples.

To understand the queue strategies please refer to RabbitMQ documentation.

Notes

Stackdriver logging implementations require google/cloud-logging library and its dependencies.

It also needs a service account json key loaded in the project root directory. Refer to Google Cloud authentication docs for the details.

Config helper

Webravo\Infrastructure\Library\Configuration is a helper to access environment and config variables in a standard way, allowing variables override through a database table called settings.

You can find the Laravel migration to build the setting table under .

To enable settings override you must set the environment variable SETTINGS_DB_CONNECTION with the name of your DB connection where the settings table is located.


All versions of layers with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
webravolab/cdn Version dev-master
webpatser/laravel-uuid Version ^3.0
psr/log Version 1.1
google/apiclient Version ^2.2
google/cloud-logging Version ^1.14
php-amqplib/php-amqplib Version >=2.6.1
google/cloud-datastore Version dev-master
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 webravolab/layers contains the following files

Loading the files please wait ....