Download the PHP package ggoitea/laravel-devops-kit without Composer

On this page you can find all versions of the php package ggoitea/laravel-devops-kit. 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-devops-kit

Laravel DevOps Kit

Español

The fastest way to give a Laravel project a consistent Docker workflow for development and production.

From a single command, this kit adds the files and conventions needed to work locally, run the application in containers and connect the repository to a production pipeline. It includes development and production Dockerfiles, Docker Compose, Nginx, PHP configuration, shell scripts, a Makefile and a GitHub Actions workflow ready to adapt.

The real advantage

This is not just a collection of Docker examples. It removes the repetitive setup work every Laravel project needs and keeps the team on the same workflow:

The result is a repeatable starting point for a new Laravel project and a practical way to standardize existing ones without rebuilding the DevOps setup from scratch.

Requirements

Installation

Require the package with Composer:

As a dev dependency (VCS)

This package is meant for development tooling, so it is recommended to install it as a dev dependency. Since it is not published on Packagist yet, declare the repository in your project's composer.json:

Then require it with Composer:

Being a dev dependency does not require PHP on the machine that only runs the scripts: the published devops-install.sh is self-contained and works with just sh.

Deploying the DevOps environment

Run the self-contained installer from the root of your Laravel project:

It publishes the development and production Dockerfiles, docker-compose.yml, docker-compose.override.yml, Makefile, devops.sh, init.sh, the docker/ configuration and .github/workflows/produccion.yml.

The installer also:

If you prefer to invoke it through Laravel, the package also registers the Artisan command. It publishes the core Docker and Makefile files:

Existing files are preserved. Both installers skip any file that already exists without overwriting it. To replace them explicitly:

The --force flag overwrites every previously installed file, so use it when you want to reset your DevOps files to the package defaults.

The published scripts (devops.sh and init.sh) are made executable automatically.

Installing without PHP

If you don't have PHP installed on your machine, use the self-contained devops-install.sh script. It runs with sh only and installs the complete set of Docker, development and production files without requiring PHP or Composer.

If the package is installed via Composer, its binary is linked in vendor/bin:

If you have the package source available locally, you can also run the script from inside your Laravel project:

Both methods produce the same files and respect the same rules — existing files are preserved unless you pass --force:

Services

The stack is defined in docker-compose.yml and includes:

Service Description Starts by default
app Laravel application (development container) Yes
pgsql PostgreSQL — the default database Yes
redis Redis (cache, queues, sessions) Yes
nginx Web server, exposes the app on port 8000 and Vite on 5173 Yes
mariadb MariaDB — alternative database No (profile tools)
mailhog Email catcher for development (UI on 8025) No (profile tools)

pgsql is the default database. mariadb and mailhog belong to the tools profile, so they are not started by make up: you must start them explicitly when you need them (see below).

Production workflow

The published .github/workflows/produccion.yml provides a production path for repositories using GitHub Actions. It runs on pushes to main or manually, installs PHP and frontend dependencies, prepares the environment, runs migrations and tests, builds the production image, pushes it to a private registry and deploys it with Docker Swarm over SSH.

Before using it, configure the produccion environment with these values:

The workflow is a production baseline, not a provider-specific deployment platform: adapt the image, registry, runner and deployment command to your infrastructure.

Makefile usage

The Makefile includes these shortcuts:

make init

Use this the first time you start a project. It runs init.sh inside the app container and takes care of the bootstrap:

  1. Copies .env.example to .env if the .env file does not exist yet.
  2. Installs dependencies with composer install.
  3. Generates the application key with php artisan key:generate when APP_KEY is empty.
  4. Installs frontend dependencies with npm install.

make up

Starts the default services: app, pgsql, redis and nginx.

You can also start only the services you need by passing them as arguments:

This starts the app, nginx and mariadb containers only (for example, to use MariaDB instead of PostgreSQL). To start the services of the tools profile:

When app is running, make up automatically launches Vite in development mode.

make npm-dev

Restarts and launches Vite in development mode (it is triggered automatically by make up):

make down, ps, logs, restart and clean

All of them accept an optional list of services:

make clean deletes the container volumes, so the data in pgsql, redis and mariadb is lost.

make shell

Opens an interactive shell inside the app container:

You can open a shell in any other service by passing it as an argument:

make artisan, composer and npm

Run commands inside the app container:

make npm run dev and make up both start Vite; make npm-dev is the dedicated alias.

Alternative: devops.sh

If you prefer not to use make, the published devops.sh provides the same basic operations:

Development

Install dependencies and run the test suite:

License

This package is released under the MIT License. See LICENSE.


All versions of laravel-devops-kit with dependencies

PHP Build Version
Package Version
Requires illuminate/console Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
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 ggoitea/laravel-devops-kit contains the following files

Loading the files please wait ...