Download the PHP package digitalerase/deployer-loader without Composer

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

deployer-loader

|

|

:local:

What does it do?

This package allows to:

  1. Register your project vendor classes to be used in deploy.php. Read "Include class loader" for more info why you should not include your project vendor/autoload.php in deploy.php.
  2. Load single task/setting file.
  3. Load multiple tasks/settings files from folders.

Installation

composer require digitalerase/deployer-loader

Usage

Include class loader ++++++++++++++++++++

If Deployer is used as phar from global install or from local in ./vendor/bin/dep (installed from deployer/dist) then it is already including his own vendor/autoload.php. If in deploy.php file we will require vendor/autoload.php from our project then it's like asking for trouble because we are joining two autoloads with non synchronized dependencies. The second composer vendor/autoload.php added by us in deploy.php has priority because the composer uses the prepend parameter of spl_autoload_register() method which adds an autoloader on the beginning of the autoload queue instead of appending it. So classes from our project will be used before classes from Deployer phar.

The solution is to include in deploy.php the autoload.php from digitalerase/deployer-loader.

Using spl_autoload_register() it will register new closure function to find classes and it will register itself without prepend parameter. So first classes from Deployer phar autoload will be used and if they will not exists there will be fallback to classes from the main project vendors.

How to use it? Just include autoload at the beginning of your deploy.php (and remove vendor/autoload.php if you had one)

require_once(__DIR__ . '/vendor/digitalerase/deployer-loader/autoload.php');

After this point in code you can use all vendor classes declared in psr4 of your composer.json files.

Loading deployer tasks ++++++++++++++++++++++

The package digitalerase/deployer-loader allows you also to include single files or bunch of files from folder (recursively).

Changelog

See https://github.com/digitalerase/deployer-loader/blob/master/CHANGELOG.rst


All versions of deployer-loader with dependencies

PHP Build Version
Package Version
No informations.
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 digitalerase/deployer-loader contains the following files

Loading the files please wait ....