Download the PHP package percymamedy/dcompose without Composer

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

Dcompose

Latest Stable Version Latest Unstable Version Build Status License Total Downloads

Introduction

Laradock is an awesome tool that helps with building a Docker environment for running your Laravel or PHP apps.

However, it can be quite a pain to identify and use only specific components needed for your app. Most of the time you'll find yourself using only few images and remembering which one (So you can run docker-compose up -d ..) for which project is a pain.

I built Dcompose because I was always finding myself copying the images' Docker files needed from laradock to my projects and recreating the docker-compose.yml file everytime for each project. Inspired by Composer, I embarked on a quest to build my own tool that would "require" in my projects only the components that I needed and update automatically my docker-compose.yml file.

This is how Dcompose was born. I do not know where this library will end up but my hope is for people who've had the same issue as me might find it useful.

License

Dcompose is open-sourced software licensed under the MIT license

Installation

Fisrt make sur you have Docker and Docker Compose installed on your system. Check out Docker and Docker Compose installation docs.

Then, download Dcompose using Composer:

Make sure to place composer's system-wide vendor bin directory in your $PATH so the Dcompose executable can be located by your system. This directory exists in different locations based on your operating system; however, some common locations include:

Usage

Init command

With the init command you may start defining which services you want to use in your project. You should run this command in the root of your project like follows:

This is an interacting command which will ask you about your project name and services which you'll use. Services are just the Laradock services which exists, check out laradock's github repo to get a sense of all services which you can require.

After running this command a new folder will be created into your project's root directory which will contain only the services and correct file layout.

You will also find a file inside the .docker folder. You can modify this file to change values specific for your environment.

Now you may run the following command inside the folder to run your project :

Require command

If you've missed a service or you need another service from laradock you can run the require command as follows:

Where is the name of one of laradock's services. This will then add the service to your folder and file.

Now you may run the following command inside the folder :

or :

If you've ran the command.

Remove command

You can remove a service using the following command :

This is not going to remove the service folder from the folder and correct sections from file.

However the container, image and volume created for this service will still be on your system. To remove them completely you should run docker commands :

Generate tools command

Generating the commands line tools helps in running and executing docker containers from laradock :

A new script will be created which gives you access to three options:

Start docker containers:

Stop docker containers:

Ssh into workspace container after starting contaners :

Refresh command

laradock files are fetched and cached such that , and command are carried out faster without the need to refetch files from dist all the time.

However, there is not way of knowing when laradock has been updated, thus the command allows us to refresh the cached laradock files :

Road map v0.2

Road map v0.3

Credits

Big Thanks to all developers who worked hard to create something amazing!

Creator

Percy Mamedy

Twitter: @PercyMamedy
GitHub: percymamedy


All versions of dcompose with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
ext-zip Version *
guzzlehttp/guzzle Version ~6.0
laravel-zero/framework Version ^7.0
symfony/finder Version ^5.0
symfony/yaml Version ^5.0
laminas/laminas-text Version ^2.7
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 percymamedy/dcompose contains the following files

Loading the files please wait ....