Download the PHP package apphp/laravel-docker without Composer

On this page you can find all versions of the php package apphp/laravel-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 laravel-docker

Laravel Docker

A pretty simple Docker Compose workflow that sets up your own network of containers for local Laravel development.

Usage

To get started, make sure you have Docker installed on your system, and then clone this repository:

To start working with docker do following

  1. Open a terminal and navigate to the directory you cloned this or copy docker/ directory and docker-composer.yml to your current project and navigate to there.

  2. Rename everywhere in files myapp name with the name you prefer for your application.

  3. Run following command to spin up the containers for the web server:
docker-compose up --build -d

After building containers you may up them by following command:

docker-compose up -d

or down with

docker-compose down

After successful building your website will be accessible via:

http://localhost:8081

Schema

   ___________     ___________     ___________     ___________  
   |         |     |         |     |         |     |         |
   |  NGINX  | --→ | PHP-FPM |     | PHP-CLI |     |  REDIS  |  
   |         |     |         |     |         |     |         |
   -----------     -----------     -----------     -----------
        |               |               |
        ↓               ↓               ↓           
   ____________   ______________________________   ______________
   |  Static  |   |                            |   |            |
   | Content  |   |           CODE             |<--| Node & Npm |
   | CSS,JS.. |   |                            |   |            |
   ------------   ------------------------------   --------------

Environment Configuration

Make sure you created following keys in your .env file:

DB_DATABASE=your-db
DB_USERNAME=your-db-username
DB_PASSWORD=your-db-password

Persistent MySQL Storage

When you bring down the Docker network, your MySQL data will be removed after the containers are destroyed. This is a default behaviour of Docker containers. If you would like to have persistent data that remains after bringing containers down and back up, do the following:

  1. Create a ./storage/docker/mysql folder in your Laravel project root.
  2. Under the mysql service in your docker-compose.yml file, add the following lines:

Working with PHP-CLI

Migrations, Seeders and Import DB

After successful building and running docker containers you may run migrations and seeders. To perform these operations, simply type in your terminal and execute following commands:

Working with Composer

To install/remove new package run following commands:

Other commands you would like to run:

Working with PHP & Artisan

Example of commands you would like to run:

Working with Git

Working with Redis

Working with Node & NPM


All versions of laravel-docker with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4 || ^8
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 apphp/laravel-docker contains the following files

Loading the files please wait ....