PHPackages                             artemevsin/docker-php - 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. artemevsin/docker-php

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

artemevsin/docker-php
=====================

Prepared docker environment with PHP, Apache and MySQL

v0.3.6(1y ago)01.5kMITDockerfile

Since Sep 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/artemevsin/docker-php)[ Packagist](https://packagist.org/packages/artemevsin/docker-php)[ RSS](/packages/artemevsin-docker-php/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (31)Used By (0)

Docker PHP
==========

[](#docker-php)

Introduction
------------

[](#introduction)

Package with prepared environment to run your PHP applications in docker containers.

This package contains PHP (5.6, 7.1, 7.2, 7.4) + Apache , MySQL and Adminer images. The package uses docker-compose tool and whole environment is started with it.

This package also contains Blackfire for better profiling your application and Selenium for running acceptance tests.

Contributing
------------

[](#contributing)

If you find a bug or this package does not work at all on you machine, please create an issue and describe your problem. If you successfully fixed that bug, please send a pull request.

If you have some ideas, how to improve this package, please create an issue also.

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

[](#installation)

### Requirements

[](#requirements)

Docker and Docker-compose are required.

### Installation

[](#installation-1)

#### Linux

[](#linux)

In root folder of your project run this command to install your dependencies. More information [here](https://hub.docker.com/r/library/composer/)

```
docker run --rm --interactive --tty --volume $PWD:/app composer require --dev artemevsin/docker-php
```

### Configuration

[](#configuration)

Create new .env file (or existing one if exists) in root folder. You can use these variables to define your configuration.

- PROJECT\_NAME=myproject
- PHP\_VERSION=7
- DOCUMENT\_ROOT=/www

With default configuration your application will be available on .

### Usage

[](#usage)

In root folder of your project run

```
vendor/bin/docker-php
```

#### MySQL

[](#mysql)

You can access MySQL DB from your app with this config:

```
host: mysql
user: dev
pass: dev

```

#### Blackfire

[](#blackfire)

If you want to use Blackfire you can put your credentials to .env like:

```
BLACKFIRE_SERVER_ID=xxx
BLACKFIRE_SERVER_TOKEN=xxx

```

#### Selenium tests

[](#selenium-tests)

For running acceptance tests with codeception you should put something like this in your acceptance.suite.yml:

```
actor: AcceptanceTester
modules:
    enabled:
        - WebDriver
        - \Helper\Acceptance
    config:
      WebDriver:
        url: 'http://myproject.local/'
        host: chrome
        port: 4444
        browser: chrome
```

Tests are started using this command:

```
docker exec -it myproject_webserver_1 php vendor/bin/codecept run acceptance
```

Credits
-------

[](#credits)

Created by Artem Evsin

Contact
-------

[](#contact)

You can contact me by sending email to .

License
-------

[](#license)

This project is licensed under MIT license.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 59.5% 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 ~89 days

Recently: every ~399 days

Total

30

Last Release

568d ago

### Community

Maintainers

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

---

Top Contributors

[![artemevsin](https://avatars.githubusercontent.com/u/12592377?v=4)](https://github.com/artemevsin "artemevsin (25 commits)")[![cofiscz](https://avatars.githubusercontent.com/u/26636714?v=4)](https://github.com/cofiscz "cofiscz (17 commits)")

### Embed Badge

![Health badge](/badges/artemevsin-docker-php/health.svg)

```
[![Health](https://phpackages.com/badges/artemevsin-docker-php/health.svg)](https://phpackages.com/packages/artemevsin-docker-php)
```

###  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)
