PHPackages                             nasyrov/laravel-local-server - 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. nasyrov/laravel-local-server

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

nasyrov/laravel-local-server
============================

The local server package providers a local development environment for Laravel projects.

522.4kPHP

Since Nov 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/nasyrov/laravel-local-server)[ Packagist](https://packagist.org/packages/nasyrov/laravel-local-server)[ RSS](/packages/nasyrov-laravel-local-server/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Local Server
====================

[](#laravel-local-server)

The local server package providers a local development environment for Laravel projects. It is built on a containerized architecture using Docker images and Docker Compose to provide drop-in replacements for most components of the cloud infrastructure.

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

[](#requirements)

Make sure all dependencies have been installed before moving on:

- [PHP](http://php.net/manual/en/install.php) &gt;= 7.2
- [Composer](https://getcomposer.org/download/)
- [Docker Desktop](https://www.docker.com/products/docker-desktop)

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

[](#installation)

You can install the package via composer:

```
composer require nasyrov/laravel-local-server --dev
```

Usage
-----

[](#usage)

The local server uses the command line via the `composer` command.

Navigate your shell to your project's directory. You should already have installed Laravel by running `laravel new` or `composer create-project` but if not, do so now. See [Installing Laravel](https://laravel.com/docs/master#installing-laravel).

### Starting the local server

[](#starting-the-local-server)

To start the local server, simply run `composer local-server start`. The first time this will download all the necessary Docker images.

Once the initial install is over and download have completed, you should see the output:

```
Starting blog-proxy      ... done
Starting blog-redis      ... done
Starting blog-mailhog    ... done
Starting blog-mysql      ... done
Starting blog-backend    ... done
Starting blog-phpmyadmin ... done
Starting blog-worker     ... done
Starting blog-scheduler  ... done
Starting blog-frontend   ... done

Your local server is ready!
To access your site visit: http://blog.localtest.me/
```

Visiting your site's URL should now work.

### Stopping the local server

[](#stopping-the-local-server)

To stop the local server containers, simply run `composer local-server stop`.

### Destroying the local server

[](#destroying-the-local-server)

To destroy the local server containers, simply run `composer local-server destroy`.

### Viewing the local server status

[](#viewing-the-local-server-status)

To get details on the running local server status and containers, run `composer local-server status`. You should see output similar to:

```
     Name                    Command                  State                         Ports
------------------------------------------------------------------------------------------------------------
blog-backend      docker-php-entrypoint php-fpm    Up             9000/tcp
blog-frontend     nginx -g daemon off;             Up             80/tcp
blog-mailhog      MailHog                          Up             1025/tcp, 8025/tcp
blog-mysql        docker-entrypoint.sh --def ...   Up (healthy)   3306/tcp, 33060/tcp
blog-phpmyadmin   /docker-entrypoint.sh apac ...   Up             80/tcp
blog-proxy        /entrypoint.sh traefik           Up             0.0.0.0:80->80/tcp, 0.0.0.0:8080->8080/tcp
blog-redis        docker-entrypoint.sh redis ...   Up (healthy)   6379/tcp
blog-scheduler    docker-php-entrypoint sh / ...   Up
blog-worker       docker-php-entrypoint php  ...   Up
```

All containers should have a status of "Up". If they do not, you can inspect the logs for each service by running `composer local-server logs `, for example, if `blog-mysql` shows a status other than "Up", run `composer local-server logs mysql`.

### Viewing the local server logs

[](#viewing-the-local-server-logs)

Often you'll want to access logs from the services that local server provides. For example, PHP errors logs, Nginx access logs, or MySQL logs. To do so, run the `composer local-server logs ` command, where `` can be any of `proxy`, `frontend`, `backend`, `worker`, `scheduler`, `phpmyadmin`, `mysql`, `redis`. This command will tail the logs (live update). To exit the log view, simply press `Ctrl+C`.

### Ejecting the local server configuration

[](#ejecting-the-local-server-configuration)

If you aren’t satisfied with the preselected services and configuration choices, you can `eject` at any time. It will copy all the configuration files into your project.

You don’t have to ever use `eject`. The curated service set is suitable for small to middle deployments, and you shouldn’t feel obligated to use this command. However I understand that this package wouldn’t be useful if you couldn’t customize it when you are ready for it.

See custom [recipes](../../wiki/Recipes).

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Evgenii Nasyrov](https://github.com/nasyrov)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d5180ba0cd30309ada4562457c6337069906fea97f827f1c24b82fddb1bdc9a?d=identicon)[nasyrov](/maintainers/nasyrov)

### Embed Badge

![Health badge](/badges/nasyrov-laravel-local-server/health.svg)

```
[![Health](https://phpackages.com/badges/nasyrov-laravel-local-server/health.svg)](https://phpackages.com/packages/nasyrov-laravel-local-server)
```

PHPackages © 2026

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