PHPackages                             pxlrbt/deployer-mysql - 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. pxlrbt/deployer-mysql

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

pxlrbt/deployer-mysql
=====================

Unoffical Deployer recipe containing MySQL tasks.

2.0.0(5y ago)2172MITPHP

Since Oct 18Pushed 5y agoCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

deployer-mysql
==============

[](#deployer-mysql)

An unofficial [Deployer](https://github.com/deployphp/deployer) recipe containing a set of useful tasks for interacting with MySQL.

Installation
------------

[](#installation)

Install via Composer as a dev dependency to your project.

```
$ composer require --dev pxlrbt/deployer-mysql
```

Configuration
-------------

[](#configuration)

For configuring MySQL connection, add the following to your deployer config:

```
require __DIR__ . '/vendor/pxlrbt/deployer-mysql/recipe/mysql.php';

set('mysql.connection', [
  'host' => 'localhost',
  'port' => 3306,
  'database' => 'your_database_name',
  'username' => 'root',
  'password' => 'root',
]);
```

You can modify the dump file and `mysqldump` options via:

```
set('mysql.dump', [
  'file' => 'dump.sql',
  'options' => [
      '--skip-comments'
  ]
]);
```

Each option you want to add must be a new entry in the array.

***Note:** the* `--skip-comments` *option is the only default option set. So, if you don't have any other options for your setup, you can omit this configuration key entirely.*

Autoloading database credentials
--------------------------------

[](#autoloading-database-credentials)

Instead of providing your database credentials inside the deployer config, it's better to load them from an existing config (e.g. .env file).

### Laravel

[](#laravel)

There is a recipe that autoloads the credentials from Laravels `.env` file. Just add the recipe to your deployer file and your ready to go-

```
require __DIR__ . '/vendor/pxlrbt/deployer-mysql/recipe/laravel.php';
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 56.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 ~498 days

Total

3

Last Release

2135d ago

Major Versions

1.0.1 → 2.0.02020-07-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/de2f0e928f16fab39bac058ab23744ed045a432404d1275a5a5258acbd368798?d=identicon)[pxlrbt](/maintainers/pxlrbt)

---

Top Contributors

[![pxlrbt](https://avatars.githubusercontent.com/u/22632550?v=4)](https://github.com/pxlrbt "pxlrbt (9 commits)")[![jordanbrauer](https://avatars.githubusercontent.com/u/18744334?v=4)](https://github.com/jordanbrauer "jordanbrauer (7 commits)")

---

Tags

deployerdeployer-phpdeployer-recipesdeploymentmysqlphprecipes

### Embed Badge

![Health badge](/badges/pxlrbt-deployer-mysql/health.svg)

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

###  Alternatives

[deployer/deployer

Deployment Tool

11.0k25.4M207](/packages/deployer-deployer)[appwrite/server-ce

End to end backend server for frontend and mobile apps.

55.3k84.2k](/packages/appwrite-server-ce)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP and Apache2/Nginx as on Heroku

8161.3M10](/packages/heroku-heroku-buildpack-php)[tiamo/phpas2

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

4674.7k](/packages/tiamo-phpas2)

PHPackages © 2026

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