PHPackages                             cstaelen/deployer-wp-recipes - 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. cstaelen/deployer-wp-recipes

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

cstaelen/deployer-wp-recipes
============================

Wordpress deployer recipes

0.1.0(9y ago)143.4k7[1 issues](https://github.com/cstaelen/deployer-wp-recipes/issues)MITPHPPHP &gt;=5.6.0

Since Jul 5Pushed 6y agoCompare

[ Source](https://github.com/cstaelen/deployer-wp-recipes)[ Packagist](https://packagist.org/packages/cstaelen/deployer-wp-recipes)[ RSS](/packages/cstaelen-deployer-wp-recipes/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (11)Used By (0)

Deployer WP Recipes
===================

[](#deployer-wp-recipes)

For the record, those recipes was written using a personal Wordpress stack based on [Bedrock](https://roots.io/bedrock/) (Thanks to the great [roots.io](https://roots.io/) team), using [phpdotenv](https://github.com/vlucas/phpdotenv) package. But it can be used in many other configuration .

\##Features

- Deploy repository code with gulp compiled files
- Sync Wordpress uploads
- Pull and push Wordpress database
- Clean up some files

\##Requirements

- [Deployer PHP](http://deployer.org/)
- [WP CLI](https://wp-cli.org/)
- [phpdotenv](https://github.com/vlucas/phpdotenv) (optional)

\##Installation

Make sure to include recipe files in your `deploy.php`:

```
require 'vendor/cstaelen/deployer-wp-recipes/recipes/assets.php';
require 'vendor/cstaelen/deployer-wp-recipes/recipes/cleanup.php';
require 'vendor/cstaelen/deployer-wp-recipes/recipes/db.php';
require 'vendor/cstaelen/deployer-wp-recipes/recipes/uploads.php';

```

\##Configuration

Just add those lines below in your `deploy.php` with your own values :

```
set('wp-recipes', [
    'theme_name'        => 'Your WP theme folder name',
    'theme_dir'         => 'path/to/your/theme/folder',
    'theme_dist'        => 'theme_release', // Will be rename with theme_name
    'wwwroot_dir'       => 'web', //VHOST ROOT DIR
    'shared_dir'        => '{{deploy_path}}/shared',
    'gulp_cmd'          => 'gulp build',
    'assets_dist'       => 'path/to/theme/folder/dist',
    'local_wp_url'      => 'http://local.dev',
    'remote_wp_url'     => 'http://mywebsite.com',
    'clean_after_deploy'=>  [
        'deploy.php',
        '.gitignore',
        '*.md'
    ]
]);

```

\##Available tasks

Upload your WP database : `dep db:push prod`Download your WP database : `dep db:pull prod`Sync WP uploads with rsync : `dep uploads:sync prod`

You can also use those rules below in your `deploy.php` file to compile and deploy assets and cleanup some useless files on your staging/production server :

```
after('deploy', 'deploy:assets');
after('deploy', 'deploy:cleanup');

```

WP recipes using phpdotenv
--------------------------

[](#wp-recipes-using-phpdotenv)

If you are using **phpdotenv** to configure your servers as the awesome Bedrock Wordpress Stack do, you can use those task rules below to grab `WP_HOME` value filled in your .env file.

```
before('db:cmd:pull', 'env:uri');
before('db:cmd:push', 'env:uri');

```

*In order to do that, we assume your local .env file is in the root project folder, and the remote one in the repo shared folder.*

Make sure to leave empty those config values :

```
set('wp-recipes', [
	...
    'local_wp_url'      => '',
    'remote_wp_url'     => ''
    ...
]);

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~28 days

Recently: every ~7 days

Total

10

Last Release

3387d ago

PHP version history (2 changes)0.0.1PHP &gt;=5.3.0

0.0.6PHP &gt;=5.6.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5319804?v=4)[cl.st](/maintainers/cstaelen)[@cstaelen](https://github.com/cstaelen)

---

Top Contributors

[![cstaelen](https://avatars.githubusercontent.com/u/5319804?v=4)](https://github.com/cstaelen "cstaelen (8 commits)")

### Embed Badge

![Health badge](/badges/cstaelen-deployer-wp-recipes/health.svg)

```
[![Health](https://phpackages.com/badges/cstaelen-deployer-wp-recipes/health.svg)](https://phpackages.com/packages/cstaelen-deployer-wp-recipes)
```

###  Alternatives

[ryoluo/sail-ssl

Laravel Sail plugin to enable SSL (HTTPS) connection with Nginx.

192739.0k3](/packages/ryoluo-sail-ssl)[tiamo/phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard

4676.9k](/packages/tiamo-phpas2)[wapmorgan/php-rpm-packager

RPM packager for PHP applications.

116.5k](/packages/wapmorgan-php-rpm-packager)

PHPackages © 2026

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