PHPackages                             sourcebroker/deployer-extended - 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. sourcebroker/deployer-extended

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

sourcebroker/deployer-extended
==============================

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

24.2.0(4d ago)25292.2k↓45.8%5[1 issues](https://github.com/sourcebroker/deployer-extended/issues)11MITPHP

Since Feb 19Pushed 4d ago4 watchersCompare

[ Source](https://github.com/sourcebroker/deployer-extended)[ Packagist](https://packagist.org/packages/sourcebroker/deployer-extended)[ RSS](/packages/sourcebroker-deployer-extended/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (66)Used By (11)

deployer-extended
=================

[](#deployer-extended)

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

- [What does it do?](#what-does-it-do)
- [New tasks (`deployer/` folder)](#new-tasks-deployer-folder)
    - [cache](#cache)
        - [cache:clear\_php\_cli](#cache-clear-php-cli)
        - [cache:clear\_php\_http](#cache-clear-php-http)
    - [deploy](#deploy)
        - [deploy:check\_branch](#deploy-check-branch)
        - [deploy:check\_branch\_local](#deploy-check-branch-local)
        - [deploy:check\_composer\_install](#deploy-check-composer-install)
        - [deploy:check\_composer\_validate](#deploy-check-composer-validate)
        - [deploy:check\_lock](#deploy-check-lock)
    - [file](#file)
        - [file:backup](#file-backup)
        - [file:copy\_dirs\_ignore\_existing](#file-copy-dirs-ignore-existing)
        - [file:copy\_files\_ignore\_existing](#file-copy-files-ignore-existing)
        - [file:upload\_build](#file-upload-build)
    - [service](#service)
        - [service:php\_fpm\_reload](#service-php-fpm-reload)
- [Tasks and settings override (`includes/` folder)](#tasks-and-settings-override-includes-folder)
    - [bin/composer](#bin-composer)
    - [bin/php](#bin-php)
    - [releases](#releases)
- [Changelog](#changelog)

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

[](#what-does-it-do)

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

The project is organized into two main directories:

- `deployer/`

    Contains files (tasks/settings) that are safe to be loaded as until explicitly used they do not affect Deployer. So even if you use two tasks from `deployer/` folder you can load whole directory safely. Tasks are set to be hidden by default so they will not pollute Deployer task list.
- `includes/`

    Contains files that should be included selectively in your deployment process. Unlike the functionality in the `deployer/` directory, these components can override default Deployer functionality (for example override `bin/composer` or `bin/php` setting in Deployer).

[New tasks (`deployer/` folder)](#id2)
--------------------------------------

[](#new-tasks-deployer-folder)

### [cache](#id3)

[](#cache)

#### [cache:clear\_php\_cli](#id4)

[](#cacheclear_php_cli)

This task clears the file status cache, opcache and eaccelerator cache for CLI context.

#### [cache:clear\_php\_http](#id5)

[](#cacheclear_php_http)

This task clears the file status cache, opcache and eaccelerator cache for HTTP context. It does following:

1. Creates file `cache_clear_[random].php` in `{{deploy_path}}/current` folder.
2. Fetch this file with selected method - curl / wget / file\_get\_contents - by default its wget.
3. The file is not removed after clearing cache for reason. It allows to prevent problems with realpath\_cache.

You must set **public\_urls** configuration variable so the script knows the domain it should fetch the php script. Here is example:

```
host('staging')
 ->setHostname('vm-dev.example.com')
 ->setRemoteUser('project1')
 ->set('public_urls', ['https://staging-t3base13.example.com'])
 ->set('deploy_path', '~/t3base13.example.com/staging');
```

Task configuration variables:

- **cache:clear\_php\_http:phpcontent**

    *required:* no

    *type:* string

    *default value:*

    ```
