PHPackages                             ankitjain28may/larahost - 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. ankitjain28may/larahost

ActiveLibrary

ankitjain28may/larahost
=======================

Create a Virtualhost in nginx during laravel project creation

v3.1.0(5y ago)1181[1 issues](https://github.com/ankitjain28may/larahost/issues)MITPHPCI failing

Since Jul 23Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (7)Used By (0)

Larahost
========

[](#larahost)

[![Build Status](https://camo.githubusercontent.com/2869886578e748d06dc94e088f40190c870982fbaa3cfc57b2a21f74340a4cb4/68747470733a2f2f7472617669732d63692e6f72672f616e6b69746a61696e32386d61792f6c617261686f73742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ankitjain28may/larahost)[![Latest Stable Version](https://camo.githubusercontent.com/3eac34ca034fd26dc498f618855c7007eeb2115fd8ac28ee5b8a324019ed52d6/68747470733a2f2f706f7365722e707567782e6f72672f616e6b69746a61696e32386d61792f6c617261686f73742f762f737461626c65)](https://packagist.org/packages/ankitjain28may/larahost)[![Packagist](https://camo.githubusercontent.com/342709c950c3c6d06c912383747155031022049b3a43a7be74b1789211953299/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e6b69746a61696e32386d61792f6c617261686f73742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ankitjain28may/larahost)

Larahost is the extended plugin written over the `laravel/installer` plugin to set up the nginx virtualhost for the application automatically while installing.

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

[](#installation)

It requires nginx to be installed in the system.

1. First, download the Larahost installer using Composer:

    ```
        composer global require ankitjain28may/larahost
    ```
2. Download the nginx configuration and put it in the nginx virtualhosts folder according to OS. Make necessary changes in the file related to port and PHP FastCGI configuration.

    For example- It is `/usr/local/etc/nginx/servers/` for Mac.

    ```
        cd /usr/local/etc/nginx/servers/
        curl https://raw.githubusercontent.com/ankitjain28may/larahost/master/nginx_conf/example.conf -O
    ```
3. Export these variables in $PATH.

    ```
        export NGINX_EXAMPLE_FILE='/usr/local/etc/nginx/servers/example.conf'
        export NGINX_DEST='/usr/local/etc/nginx/servers/'
    ```
4. Once everything is setup, the `larahost` new command will create a fresh Laravel installation in the directory you specify.

    ```
        larahost new blog
    ```

Contribute
----------

[](#contribute)

> Feel free to contribute

License
-------

[](#license)

> Copyright (c) 2019 Ankit Jain - Released under the MIT License

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

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 ~97 days

Recently: every ~122 days

Total

6

Last Release

1995d ago

Major Versions

1.5.0 → v2.0.02020-05-17

v2.0.0 → v3.0.02020-11-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/79b96139365daf0dd608b959d78729615f04e303e9cd665c3175356c9ec167bc?d=identicon)[ankitjain28](/maintainers/ankitjain28)

---

Top Contributors

[![ankitjain28may](https://avatars.githubusercontent.com/u/14014254?v=4)](https://github.com/ankitjain28may "ankitjain28may (14 commits)")

---

Tags

laravelnginxlaravel-nginx

### Embed Badge

![Health badge](/badges/ankitjain28may-larahost/health.svg)

```
[![Health](https://phpackages.com/badges/ankitjain28may-larahost/health.svg)](https://phpackages.com/packages/ankitjain28may-larahost)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M224](/packages/laravel-horizon)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M598](/packages/laravel-ui)[laravel/sail

Docker files for running a basic Laravel application.

1.9k186.9M1.0k](/packages/laravel-sail)[laravel/octane

Supercharge your Laravel application's performance.

4.0k21.5M156](/packages/laravel-octane)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)

PHPackages © 2026

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