PHPackages                             daxter1987/laravel-env - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. daxter1987/laravel-env

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

daxter1987/laravel-env
======================

Environment for laravel applications with mysql

v1.0.7(6y ago)014.8kMITPHP

Since Oct 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/daxter1987/laravel-env)[ Packagist](https://packagist.org/packages/daxter1987/laravel-env)[ RSS](/packages/daxter1987-laravel-env/feed)WikiDiscussions master Synced today

READMEChangelog (7)DependenciesVersions (8)Used By (0)

daxter1987/laravel-env
======================

[](#daxter1987laravel-env)

By installing this composer package into your laravel application, this enables the `php artisan dax:install` command, which creates a docker-compose.yml and a daxenv.sh file into your laravel root directory. Then you can run `docker compose up -d` and you have a laravel environment with a database.

Requirements
------------

[](#requirements)

1. Must have docker installed
2. Must have docker-compose installed

Installation
------------

[](#installation)

#### 1. Install using composer by running:

[](#1-install-using-composer-by-running)

```
composer require daxter1987/laravel-env

```

#### 2. Once installed run the command

[](#2-once-installed-run-the-command)

```
php artisan dax:install

```

This creates 2 files:

1. docker-compose.yml: compose file with 2 containers
    1. Ubuntu image with nginx and Php 7.3
    2. Database image
2. daxenv.sh: file with useful shortcuts to run your environment

This also checks the .gitignore in your laravel project and adds the line `/db` if it doesn't exist. This is the folder where docker will store your local database container volume.

#### 3. \[Optional but recommended\] Give the daxenv.sh execute permissions

[](#3-optional-but-recommended-give-the-daxenvsh-execute-permissions)

If you want to use the shortcuts give the daxenv.sh file executing permissions by running the command:

```
sudo chmod 777 daxenv.sh

```

#### 4. Configure database

[](#4-configure-database)

The database connection credentials can be found in your newly created `docker-compose.yml` file. Make sure the database connection is properly configured either in your `.env` file or your `config/database.php` file.

```
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: db
MYSQL_USER: root
MYSQL_PASSWORD: root

```

Usage
-----

[](#usage)

### With shortcuts

[](#with-shortcuts)

To start the environment run

```
./daxenv.sh up

```

To stop the environment

```
./daxenv.sh down

```

To ssh into the laravel container

```
./daxenv.sh ssh

```

### Without shortcuts

[](#without-shortcuts)

To start the environment run

```
docker-compose up -d

```

To stop the environment

```
docker-compose down

```

To ssh into the laravel container run `docker container ls` to get the name of the container, then replace the container name for CONTAINER\_NAME in the command below

```
docker exec -it CONTAINER_NAME ssh

```

xdebug and PHPStorm
-------------------

[](#xdebug-and-phpstorm)

### Setup

[](#setup)

The container comes with xdebug installed (if you run phpinfo() you would see the configuration). To use it, set up PHPStorm:

1. Go to Languages and Frameworks &gt; PHP &gt; Servers and set

    - Name: Name of project
    - Host: localhost
    - Port: 8080
    - Debugger Xdebug
    - Use path mappings = true
    - Set Absolute path on server /var/www/html
2. Go to "Add Configurations"

    - Click +
    - Select PHP remote Debug template
        - Name: Name of project
        - Server: previously created server
        - IDE key: PHPSTORM
    - Click Apply

### Run

[](#run)

- Click on the Bug Icon
- Send a GET request with

```
?XDEBUG_SESSION_START=PHPSTORM

```

- Send a post request with XDEBUG\_SESSION\_START=PHPSTORM as a param

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~19 days

Recently: every ~29 days

Total

7

Last Release

2294d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9749a4b60508acad28f5bb8c17bd30e62088600d15bf079b73832c8cb02fd85f?d=identicon)[daxter1987](/maintainers/daxter1987)

---

Top Contributors

[![daxter1987](https://avatars.githubusercontent.com/u/25441224?v=4)](https://github.com/daxter1987 "daxter1987 (10 commits)")

### Embed Badge

![Health badge](/badges/daxter1987-laravel-env/health.svg)

```
[![Health](https://phpackages.com/badges/daxter1987-laravel-env/health.svg)](https://phpackages.com/packages/daxter1987-laravel-env)
```

###  Alternatives

[razorpay/ifsc

Razorpay IFSC Codes Library

382201.9k](/packages/razorpay-ifsc)[dominus77/yii2-sweetalert2-widget

Renders a SweetAlert2 widget for Yii2.

2070.4k1](/packages/dominus77-yii2-sweetalert2-widget)[colinodell/indentation

Library to detect and manipulate indentation in strings and files

3911.5k5](/packages/colinodell-indentation)[jeffreyvanrossum/paver

Block based drag and drop editor for developers.

473.5k2](/packages/jeffreyvanrossum-paver)[phpcfdi/sat-catalogos

Catálogos de SAT para CFDI 3.3, CFDI 4.0 y Nómina 1.2

304.6k24](/packages/phpcfdi-sat-catalogos)[inspiredminds/contao-file-usage

Contao extension that allows you to search for references of files in the database assisted file manager.

1212.7k10](/packages/inspiredminds-contao-file-usage)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
