PHPackages                             patressz/laravel-essentials - 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. patressz/laravel-essentials

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

patressz/laravel-essentials
===========================

Patressz Essentials

0.2.0(7mo ago)015MITPHPPHP ^8.3|^8.4CI failing

Since Jun 11Pushed 7mo agoCompare

[ Source](https://github.com/patressz/laravel-essentials)[ Packagist](https://packagist.org/packages/patressz/laravel-essentials)[ RSS](/packages/patressz-laravel-essentials/feed)WikiDiscussions main Synced today

READMEChangelog (9)Dependencies (10)Versions (10)Used By (0)

Laravel Essentials
==================

[](#laravel-essentials)

 [![Total Downloads](https://camo.githubusercontent.com/a70246b53bd8f9c12f131c5d9b9e28d41200eaea485aadad2ec901cb3cccafda/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706174726573737a2f6c61726176656c2d657373656e7469616c73)](https://packagist.org/packages/patressz/laravel-essentials) [![Latest Version](https://camo.githubusercontent.com/202cb8908c74d5788ffcde1f72ba94502b14d754ccc1b7af698de9a129a420ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706174726573737a2f6c61726176656c2d657373656e7469616c73)](https://packagist.org/packages/patressz/laravel-essentials) [![License](https://camo.githubusercontent.com/a4b6b15dd9316c1508158747f01a766ff20ce7850789844098ae02632283ba9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706174726573737a2f6c61726176656c2d657373656e7469616c73)](https://packagist.org/packages/patressz/laravel-essentials)

---

**Laravel Essentials** is a Laravel package that streamlines the setup of essential development tools and applies Laravel best practices to your application. It provides an interactive installation command that sets up code quality tools and configures your AppServiceProvider with production-ready optimizations.

> **Requires [PHP 8.3+](https://php.net/releases/) and Laravel 11+**

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

[](#installation)

Install the package via Composer:

```
composer require patressz/laravel-essentials --dev
```

Usage
-----

[](#usage)

Run the installation command to set up your Laravel project with essential tools and configurations:

```
php artisan essentials:install
```

### What it does

[](#what-it-does)

The installation command will:

1. **Install Development Tools** (interactive selection):

    - **Laravel Pint** - Code style fixer
    - **PHPStan (Larastan)** - Static analysis tool
    - **Rector** - PHP automated refactoring tool
2. **Configure AppServiceProvider** with Laravel best practices:

    - **Model Strictness** - Enforce strict model behavior in production
    - **Model Unguarded** - Disable mass assignment protection globally
    - **Automatic Eager Loading** - Prevent N+1 queries in development
    - **Date Configuration** - Use Carbon Immutable by default
    - **Command Safety** - Prohibit destructive commands in production
    - **HTTPS Enforcement** - Force HTTPS scheme in production
    - **Asset Prefetching** - Enable Vite asset prefetching

### Command Options

[](#command-options)

```
# Skip confirmation prompts and overwrite existing files
php artisan essentials:install --yes
```

Development Tools
-----------------

[](#development-tools)

After installation, you can use these commands for code quality:

🧹 **Code Style Fixing with Pint**:

```
./vendor/bin/pint
```

⚗️ **Static Analysis with PHPStan**:

```
./vendor/bin/phpstan
```

🔧 **Code Refactoring with Rector**:

```
./vendor/bin/rector
```

Configuration Files
-------------------

[](#configuration-files)

The package will create configuration files for the selected tools:

- `pint.json` - Laravel Pint configuration
- `phpstan.neon` - PHPStan configuration with Laravel rules
- `rector.php` - Rector configuration with Laravel-specific rules

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

[](#requirements)

- PHP 8.3 or higher
- Laravel 11.0 or higher

License
-------

[](#license)

**Laravel Essentials** was created by **[Patrik Strišovský](mailto:patrik.strisovsky7@gmail.com)** under the **[MIT license](https://opensource.org/licenses/MIT)**.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance64

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Recently: every ~42 days

Total

9

Last Release

220d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/27a59a5b5530a6fbaa12c7a3b755fa6e2e4d6897a400487d6a548bfcb7d7dd88?d=identicon)[patressz](/maintainers/patressz)

---

Top Contributors

[![patressz](https://avatars.githubusercontent.com/u/81393875?v=4)](https://github.com/patressz "patressz (36 commits)")

---

Tags

phplaraveldevessentials

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/patressz-laravel-essentials/health.svg)

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

###  Alternatives

[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M203](/packages/laravel-ai)[livewire/flux

The official UI component library for Livewire.

9527.8M128](/packages/livewire-flux)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[laravel/surveyor

Static analysis tool for Laravel applications.

86121.4k13](/packages/laravel-surveyor)

PHPackages © 2026

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