PHPackages                             digitalerase/deployer-loader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. digitalerase/deployer-loader

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

digitalerase/deployer-loader
============================

Autoload of vendors and autoload of deployer tasks.

4.0.1.2(3y ago)02.9k3MITPHP

Since Oct 1Pushed 3y agoCompare

[ Source](https://github.com/digitalerase/deployer-loader)[ Packagist](https://packagist.org/packages/digitalerase/deployer-loader)[ RSS](/packages/digitalerase-deployer-loader/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (14)Used By (3)

deployer-loader
===============

[](#deployer-loader)

[![http://img.shields.io/packagist/v/sourcebroker/deployer-loader.svg?style=flat](https://camo.githubusercontent.com/ba4e0062721f8f5eaf17bd9f83cf595c43957b2a1e0c20cf634d428b3b0e8835/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f7572636562726f6b65722f6465706c6f7965722d6c6f616465722e7376673f7374796c653d666c6174)](https://packagist.org/packages/sourcebroker/deployer-loader)[![https://img.shields.io/badge/license-MIT-blue.svg?style=flat](https://camo.githubusercontent.com/f48f8d6cf609f5b181b9c3218a85175fe8a5809c7ea400347f39697a5d55065d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](https://packagist.org/packages/sourcebroker/deployer-loader)

- [What does it do?](#what-does-it-do)
- [Installation](#installation)
- [Usage](#usage)
    - [Include class loader](#include-class-loader)
    - [Loading deployer tasks](#loading-deployer-tasks)
- [Changelog](#changelog)

[What does it do?](#id1)
------------------------

[](#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](#id2)
--------------------

[](#installation)

```
composer require digitalerase/deployer-loader
```

[Usage](#id3)
-------------

[](#usage)

### [Include class loader](#id4)

[](#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](#id5)

[](#loading-deployer-tasks)

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

- Example for loading single file:

    ```
    new \SourceBroker\DeployerLoader\Load(
       [path => 'vendor/digitalerase/deployer-extended-database/deployer/db/task/db:copy.php'],
       [path => 'vendor/digitalerase/deployer-extended-database/deployer/db/task/db:move.php'],
    );
    ```
- Example for loading all files from folder recursively:

    ```
    new \SourceBroker\DeployerLoader\Load(
       [
         path => 'vendor/digitalerase/deployer-extended-database/deployer/db/'
         excludePattern => '/move/'
       ],
       [
         path => 'vendor/digitalerase/deployer-extended-media/deployer/media/'
       ],
    );
    ```

    You can use preg\_match "excludePattern" to exclude files.

[Changelog](#id6)
-----------------

[](#changelog)

See

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~168 days

Recently: every ~40 days

Total

13

Last Release

1169d ago

Major Versions

0.0.1 → 1.0.02017-10-01

1.0.4 → 2.0.02019-11-11

2.0.1 → 3.0.02022-10-30

3.0.0 → 4.0.02022-12-11

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9947815?v=4)[Per Forsberg](/maintainers/perforsberg77)[@perforsberg77](https://github.com/perforsberg77)

---

Top Contributors

[![kszymukowicz](https://avatars.githubusercontent.com/u/1453553?v=4)](https://github.com/kszymukowicz "kszymukowicz (28 commits)")[![blankse](https://avatars.githubusercontent.com/u/998558?v=4)](https://github.com/blankse "blankse (1 commits)")[![perforsberg77](https://avatars.githubusercontent.com/u/9947815?v=4)](https://github.com/perforsberg77 "perforsberg77 (1 commits)")

---

Tags

deployer

### Embed Badge

![Health badge](/badges/digitalerase-deployer-loader/health.svg)

```
[![Health](https://phpackages.com/badges/digitalerase-deployer-loader/health.svg)](https://phpackages.com/packages/digitalerase-deployer-loader)
```

###  Alternatives

[easycorp/easy-deploy-bundle

The easiest way to deploy Symfony applications

467312.2k](/packages/easycorp-easy-deploy-bundle)[jalogut/magento2-deployer-plus

Magento 2 deployment tool based on deployer.org

201439.0k](/packages/jalogut-magento2-deployer-plus)[sourcebroker/deployer-extended-typo3

Customisation for `sourcebroker/deployer-typo3-\*` stack

39209.4k2](/packages/sourcebroker-deployer-extended-typo3)[sourcebroker/deployer-extended

Library with some additional tasks for deployer (deployer.org).

25286.6k11](/packages/sourcebroker-deployer-extended)[rafaelstz/deployer-magento2

Magento 2 deployment tool based on deployer.org

5223.8k](/packages/rafaelstz-deployer-magento2)[ngmy/webloyer

Webloyer is a Web UI for managing Deployer deployments

2191.1k](/packages/ngmy-webloyer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
