Download the PHP package jlucki/docker-php-dev-env without Composer

On this page you can find all versions of the php package jlucki/docker-php-dev-env. 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-dev-env

Docker PHP Development Environment

This repository allows you to quickly get a development environment up and running using Docker, including a MySQL database and some debugging tools.

This environment includes the latest versions of the following software:

Prerequisites

Project Setup

Run composer create-project jlucki/docker-php-dev-env "project_name"

Alternatively, download the files from this repo and copy them to your project directory.

Running the Container

  1. Run docker compose up from the project directory
    • Note: the above command will only work on versions newer than 3.6. If you are using Docker 3.6 or older, use docker-compose up
  2. Visit localhost in your browser

Setting up Xdebug in Your IDE

The following instructions are for PHPStorm.

  1. Click on Run > Edit Configurations
  2. Click the + and add a new PHP Remote Debug configuration
  3. Give the configuration a name
  4. Tick Filter debug connection by IDE key
  5. Add PHPSTORM in the session id
  6. Click the ... next to Server
  7. Click the + to add a new server
  8. Give the server a name, and set the host to localhost
  9. Tick Use path mappings
  10. Under the Project files file/directory, next to your project folder, for the Absolute path on the server column add /var/www/html
  11. Hit Apply and OK until you've returned to the IDE
  12. Click the Start Listening for PHP Debug Connections icon
  13. Set a breakpoint in your code
  14. Refresh the page in your browser
  15. Accept Incoming Connection From Xdebug
  16. Happy debugging!

See https://xdebug.org/docs/remote for how to enable xdebug sessions.

Additional Notes

For database connections, use mysql as the hostname. If you would like a different hostname, change the service name in the docker-compose.yml file.

Windows 10 Troubleshooting

If you are having problems and can't seem to fix the issue, try one or both of these fixes:

Solution 1

Try switching to Windows containers:

Right-click the Docker icon in the system tray and click Switch to Windows containers as seen below:

Context Menu

Solution 2

If the Use the WSL 2 based engine setting is checked:

Uncheck the setting, then enable file sharing located under the Resources section, then the File Sharing section as seen below:

Docker Settings

If the Use the WSL 2 based engine setting is unchecked: Enable/check the setting (file sharing is automatically configured)


All versions of docker-php-dev-env 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 jlucki/docker-php-dev-env contains the following files

Loading the files please wait ....