Download the PHP package svenfinke/docker_php_mysql without Composer

On this page you can find all versions of the php package svenfinke/docker_php_mysql. 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_php_mysql

Default development stack with docker

This package is supposed to provide you with a basic setup to develop your php application with docker. Just install it with composer require svenfinke/docker_php_mysql --dev and start the container with vendor/bin/docker_start.sh

Parameters

The docker setup is automatically loading the .env file from your project root. This way you can easily set any Composer CLI parameters that would be set with environment variables. You can also configure the Database with the following parameters:

The ports which are exposed to the host can be configured with this variables:

Ports are being used to ensure that Mac is also supported.

Managing the containers

There are a few scripts to start/stop the containers:

All the scripts are located at vendor/bin. They should be quite self-explaining. Stop is really using stop, so if you want to remove the containers, call the remove script.

Additional Scripts

Sometimes you want to SSH into the machine or run some scripts on it. There are 2 ways of doing this: docker_ssh.sh will run shell on the php-fpm machine. The other, more flexible, way is to use docker_exec.ssh php-fpm sh. This command would be the equivalent to docker_ssh.sh, but you could also run e.g. docker_exec.ssh php-fpm 'bin/console doctrine:migrations:migrate' if you are running a symfony application.


All versions of docker_php_mysql with dependencies

PHP Build Version
Package Version
No informations.
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 svenfinke/docker_php_mysql contains the following files

Loading the files please wait ....