Download the PHP package ez-php/docker without Composer

On this page you can find all versions of the php package ez-php/docker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package docker

ez-php/docker

Docker base image and scaffolding stubs for ez-php modules and projects.


Base Image (au9500/php:8.5)

Central PHP runtime image published on Docker Hub. All ez-php modules use it as their base.

Includes:

Build locally:

Build args:

Arg Default Description
WWWUSER 1000 UID for the sail user
WWWGROUP 1000 GID for the sail group

Scaffolding (composer require --dev ez-php/docker)

Scaffolds Docker setup for a new module or project by copying stub files into the project root.

Usage

Or via Composer script (add to your project's composer.json):

What gets copied

Stub file Purpose
Dockerfile FROM au9500/php:8.5 — minimal module image
docker-compose.yml App service only
docker-compose.mysql.yml MySQL service addon (merge as needed)
docker-compose.redis.yml Redis service addon (merge as needed)
.env.example Env var template
start.sh Convenience script: copies .env, starts compose, opens shell
docker/db/create-db.sh MySQL init script: creates main + testing databases

Existing files are never overwritten — safe to re-run after customisation.

Updating existing Docker files

When stubs change (e.g. new base image version, updated start.sh), run update-docker to sync existing files:

Files that do not yet exist in the target are skipped — use docker-init to add new files.

{{MODULE_NAME}} placeholder

The script reads the package name from composer.json and replaces all {{MODULE_NAME}} occurrences. For a package named ez-php/cache, it becomes cache, resulting in container names like ez-php-cache-app.

Combining compose files

For a module that needs MySQL and Redis:

Or merge the relevant services manually into docker-compose.yml.


Module Dockerfile after scaffolding

The generated Dockerfile is intentionally minimal:

All extensions, Composer, the sail user, and the default start script are baked into the base image. No COPY instructions needed for common infrastructure.


All versions of docker with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ez-php/docker contains the following files

Loading the files please wait ...