PHPackages                             dev-to-geek/laravel-init - 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. dev-to-geek/laravel-init

ActiveLibrary

dev-to-geek/laravel-init
========================

A little package I use to add preconfigured tools (PHPStan, Larastan, Pint, Pail, ...) to my projects

v0.2.1(2mo ago)311.8k↓15.9%1[3 PRs](https://github.com/dev-to-geek/laravel-init/pulls)1MITPHPPHP ^8.3CI passing

Since Nov 28Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/dev-to-geek/laravel-init)[ Packagist](https://packagist.org/packages/dev-to-geek/laravel-init)[ Docs](https://github.com/dev-to-geek/laravel-init)[ GitHub Sponsors](https://github.com/Dev2Geek)[ RSS](/packages/dev-to-geek-laravel-init/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (26)Versions (19)Used By (1)

Laravel Init
============

[](#laravel-init)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3c91c6e84f094f444921cbb68b353eacf584c75ee400187beaa558495e05d016/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465762d746f2d6765656b2f6c61726176656c2d696e69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dev-to-geek/laravel-init)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ec9107f9c36281f7644bc7261eec1ed62ad61452d74387a148faf7a83263730e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6465762d746f2d6765656b2f6c61726176656c2d696e69742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/dev-to-geek/laravel-init/actions?query=workflow%3Arun-tests+branch%3Amain)[![PHPStan](https://camo.githubusercontent.com/cf2b4798602dd6c2a5aaf15b8502a9c57d3d2849f9e16744c9ee7f0c3e82c0a1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6465762d746f2d6765656b2f6c61726176656c2d696e69742f7068707374616e2e796d6c3f6272616e63683d6d61696e266c6162656c3d7068707374616e267374796c653d666c61742d737175617265)](https://github.com/dev-to-geek/laravel-init/actions?query=workflow%3APHPStan+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/9275261ea3dfd1e05243777f2e9135def7d182312556ebea072ab4013d5e4b9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465762d746f2d6765656b2f6c61726176656c2d696e69742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dev-to-geek/laravel-init)

A Laravel package that bootstraps your project with preconfigured development tools via a single artisan command.

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

[](#requirements)

- PHP ^8.3
- Laravel ^12.0

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

[](#installation)

```
composer require dev-to-geek/laravel-init --dev
```

Usage
-----

[](#usage)

```
php artisan laravel-init:install
```

This command will automatically install and configure the following tools:

- **Laravel Pint** -- Automated code formatting (with `pint.json` config).
- **Larastan** -- PHPStan + Larastan static analysis (with `phpstan.neon.dist` config).
- **Pest PHP** -- Modern testing framework with Mockery, Laravel and Livewire plugins.
- **Laravel Pail** -- Real-time log viewer.
- **Rector** -- Automated code refactoring (with `rector.php` config).
- **Laravel Boost** -- MCP Server for AI-assisted development.

No manual setup is required; everything is ready to use after running the command.

### Options

[](#options)

#### `--only` -- Install specific tools

[](#--only----install-specific-tools)

Install only the tools you need instead of the full suite:

```
# Install only Pint and Larastan
php artisan laravel-init:install --only=pint --only=larastan

# Install only Pest
php artisan laravel-init:install --only=pest
```

Valid tool names: `pint`, `larastan`, `pest`, `pail`, `rector`, `boost`.

#### `--force` -- Overwrite existing configuration files

[](#--force----overwrite-existing-configuration-files)

By default, existing configuration files (`pint.json`, `phpstan.neon.dist`, `rector.php`) are not overwritten. Use `--force` to replace them:

```
php artisan laravel-init:install --force
```

#### `--remove-me` -- Self-uninstall after setup

[](#--remove-me----self-uninstall-after-setup)

Remove the `laravel-init` package from your project after all tools have been installed:

```
php artisan laravel-init:install --remove-me
```

### Suggested composer scripts

[](#suggested-composer-scripts)

After installation, you can add these scripts to your `composer.json`:

```
"scripts": {
    "test": "@php artisan test",
    "test-coverage": "@php artisan test --parallel --coverage",
    "analyse": "vendor/bin/phpstan analyse --memory-limit=2G",
    "format": "vendor/bin/pint",
    "refactor": "vendor/bin/rector"
}
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Mircha Emanuel D'Angelo](https://github.com/mirchaemanuel)

License
-------

[](#license)

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

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance88

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.7% 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 ~59 days

Recently: every ~104 days

Total

9

Last Release

61d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81791da84638d830e73a3d5bd0ccd09de6a7c9730a824906e864c2a7c930a822?d=identicon)[ryuujin](/maintainers/ryuujin)

---

Top Contributors

[![mirchaemanuel](https://avatars.githubusercontent.com/u/1971953?v=4)](https://github.com/mirchaemanuel "mirchaemanuel (33 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laravellaravel-initDev2Geek

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/dev-to-geek-laravel-init/health.svg)

```
[![Health](https://phpackages.com/badges/dev-to-geek-laravel-init/health.svg)](https://phpackages.com/packages/dev-to-geek-laravel-init)
```

###  Alternatives

[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[bilfeldt/laravel-request-logger

Log Laravel application request and responses for debugging or statistics

122163.3k2](/packages/bilfeldt-laravel-request-logger)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[basillangevin/laravel-data-json-schemas

Transforms Spatie Data objects into JSON Schemas with built-in validation

1312.2k1](/packages/basillangevin-laravel-data-json-schemas)

PHPackages © 2026

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