PHPackages                             dugajean/dockr-cli - 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. [CLI &amp; Console](/categories/cli)
4. /
5. dugajean/dockr-cli

AbandonedArchivedLibrary[CLI &amp; Console](/categories/cli)

dugajean/dockr-cli
==================

Easy docker-compose local development setup for your LAMP and LEMP projects.

1.2.1(6y ago)3222MITPHPPHP ~7.1

Since Feb 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dugajean/dockr-cli)[ Packagist](https://packagist.org/packages/dugajean/dockr-cli)[ Docs](http://dukagj.in)[ RSS](/packages/dugajean-dockr-cli/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (9)Versions (9)Used By (0)

Dockr CLI
=========

[](#dockr-cli)

[![Build Status](https://camo.githubusercontent.com/0c7a1ee15b76dbbfca055c76b1a99eb9bb603309e0c3c7d198b39b5968339498/68747470733a2f2f7472617669732d63692e6f72672f647567616a65616e2f646f636b722d636c692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dugajean/dockr-cli)[![Latest Stable Version](https://camo.githubusercontent.com/5a499ea53ac51bca727180c0fbc8a974c2fde568e84e94e3c8e3e87f3ace1f8c/68747470733a2f2f706f7365722e707567782e6f72672f647567616a65616e2f646f636b722d636c692f762f737461626c65)](https://packagist.org/packages/dugajean/dockr-cli)[![Total Downloads](https://camo.githubusercontent.com/4395e3fa819bf409a3b9d1b8a304ce49f70823c6196a18f3d3d5619c726e3558/68747470733a2f2f706f7365722e707567782e6f72672f647567616a65616e2f646f636b722d636c692f646f776e6c6f616473)](https://packagist.org/packages/dugajean/dockr-cli)[![License](https://camo.githubusercontent.com/4955dd71ec543b8b7041e8c33599e539da83d8660cf397adc4792eae171e1931/68747470733a2f2f706f7365722e707567782e6f72672f647567616a65616e2f646f636b722d636c692f6c6963656e7365)](https://packagist.org/packages/dugajean/dockr-cli)

Easy docker-compose local development setup for your LAMP and LEMP projects.

Requirements
------------

[](#requirements)

- Docker &amp; docker-compose
- PHP 7.1+
- `ext-json`
- `ext-ctype`

Download
--------

[](#download)

###### For direct use

[](#for-direct-use)

To download the latest release, head over to [Releases](https://github.com/dugajean/dockr-cli/releases) and pick the latest PHAR. Then:

```
$ dockr.phar --version
```

Feel free to move this to `/usr/local/bin` so you can run it from anywhere: `$ mv ./dockr.phar /usr/local/bin/dockr`

###### Per project installation

[](#per-project-installation)

```
$ composer require dugajean/dockr-cli --dev
```

```
$ vendor/bin/dockr --version
```

Usage
-----

[](#usage)

Run the following command to initialize dockr:

```
$ dockr init
```

Open the newly created file `dockr.json` and read through it. Make sure everything is what you expect it to be. Then refer to the `aliases` section of the file. There you will see a couple of aliases preset for you: One will turn on the Docker containers and the other will shut them off.

Use as follows: `$ dockr up` and `$ dockr down` respectively.

You can also set your own aliases there to control your setup. You can set aliases for SSH-ing into a container, delete the docker images or whatever you want. You can also point to a class which extends Symfony's `Command` class by providing the fully qualified namespace.

Examples:

```
// ...

"aliases": {
    // ...
    "ssh": {
        "help": "SSH into a container.",
        "commands": [
            "docker-compose -f .docker/docker-compose.yml exec {container} bash"
        ]
    },
    "mycmd": [
        "\\Fully\\Qualified\\Namespace\\To\\MyCommand"
    ]
}

```

Execute the commands like so: `$ dockr ssh php-fpm` and `$ dockr mycmd`. As you can see, you can provide arguments to your custom commands.

For a full list of available commands, run `$ dockr` and if you need help with a specific command run:

```
$ dockr help
```

Testing
-------

[](#testing)

```
$ vendor/bin/phpunit
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

License
-------

[](#license)

Pouch is released under [the MIT License](LICENSE).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity61

Established project with proven stability

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 ~15 days

Recently: every ~20 days

Total

7

Last Release

2554d ago

PHP version history (2 changes)1.0PHP ^7

1.2PHP ~7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/24813be06a7921f106e2deaa194277ff0c929966aa0cf0f9d7b34212e828e429?d=identicon)[dugajean](/maintainers/dugajean)

---

Tags

dockerdocker-composeclicontainerdockerdocker-composedockr

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dugajean-dockr-cli/health.svg)

```
[![Health](https://phpackages.com/badges/dugajean-dockr-cli/health.svg)](https://phpackages.com/packages/dugajean-dockr-cli)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[n98/magerun

Tools for managing Magento projects and installations

1.4k264.7k7](/packages/n98-magerun)[n98/magerun2

Tools for managing Magento projects and installations

928244.3k6](/packages/n98-magerun2)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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