Download the PHP package inakianduaga/eloquent-external-storage without Composer

On this page you can find all versions of the php package inakianduaga/eloquent-external-storage. 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 eloquent-external-storage

eloquent-external-storage

Build Status Coverage Status Code Climate HHVM Status Dependency Status

Adds external storage capabilities to an eloquent model.

Features

Installation

Add package as a composer dependency

In your composer.json file, include

and then run

composer update --no-scripts inakianduaga/laravel-html-builder-extensions

to install the package

Database configuration

The storage driver needs three additional fields, where it stores the content path, an md5 checksum of the contents, and the driver class used to store the contents.

Configuration

Each model (class) that needs external storage must have a configuration set, controlled by model properties:

Choosing / changing a storage driver dynamically

If you want to switch storage drivers dynamically for a given model, you can do so by using the model's setStorageDriver(StorageDriver $driver, $storageDriverConfigurationPath = null) method. This will use the given driver with the chosen configuration path (or leave the current config path if null)

Drivers configuration

The package provides placeholder configurations for the different included drivers. In the laravel installation root folder, run

php artisan config:publish inakianduaga/eloquent-external-storage

You can then modify the placeholder values in the files

Note that you should set the models $storageDriverConfigPath property to point to inakianduaga/eloquent-external-storage::awsS3 for the example above, when using S3.

Usage:

Development & Testing

Requirements

Tools

There are several commands related to testing

Both options have the ability to generate a code coverage report in different formats. When this is selected, a local server will be launched to visualize the coverage report

Testing AWS S3 Driver

Tests Coverage report

Documentation generation


All versions of eloquent-external-storage with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
illuminate/support Version 4.2.x
illuminate/database Version 4.2.x
illuminate/console Version 4.2.x
illuminate/config Version 4.2.x
aws/aws-sdk-php 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 inakianduaga/eloquent-external-storage contains the following files

Loading the files please wait ....