limenet / laravel-baseline
A highly opinionated Laravel baseline.
Fund package maintenance!
Linus Metzler
Installs: 440
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/limenet/laravel-baseline
Requires
- php: ^8.2
- ext-simplexml: *
- illuminate/contracts: ^11.0||^12.0
- phpstan/phpstan: ^2.1.8
- spatie/laravel-package-tools: ^1.16
- symfony/finder: ^6.0 || ^7.0
- symfony/yaml: ^6.0 || ^7.0
Requires (Dev)
- larastan/larastan: ^2.9||^3.8.0
- laravel/framework: ^11.0||^12.37.0
- laravel/pint: ^1.25.1
- nikic/php-parser: ^5.6.2
- nunomaduro/collision: ^7.10.0||^8.8.2
- orchestra/testbench: ^9.0.0||^10.0.0
- pestphp/pest: ^3.8.3||^4.1.3
- pestphp/pest-plugin-arch: ^3.1.1||^4.0
- pestphp/pest-plugin-laravel: ^3.2.0||^4.0
- phpstan/extension-installer: ^1.4.3
- phpstan/phpstan-deprecation-rules: ^2.0.3
- phpstan/phpstan-phpunit: ^2.0.7
- spatie/temporary-directory: ^2.3
- dev-main
- v1.1.8
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.0
- v0.2.12
- v0.2.11
- v0.2.10
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.19
- v0.1.18
- v0.1.17
- v0.1.16
- v0.1.15
- v0.1.14
- v0.1.13
- v0.1.12
- v0.1.11
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
This package is auto-updated.
Last update: 2026-01-14 12:58:44 UTC
README
Checks your Laravel installation against a highly opinionated baseline.
Installation
You can install the package via composer:
composer require limenet/laravel-baseline
You can publish the config file with:
php artisan vendor:publish --tag="laravel-baseline-config"
Usage
"post-update-cmd": [ "@php artisan limenet:laravel-baseline" ],
Checks
This package validates your Laravel installation against the following checks:
Testing & Quality Tools
usesPest()- Validates Pest testing framework is configured (not PHPUnit directly)usesRector()- Validates Rector automated code modernization is installedusesLarastan()- Validates Larastan static analysis tool is configuredusesPhpstanExtensions()- Validates PHPStan extensions are installedphpstanLevelAtLeastEight()- Validates PHPStan is configured to at least level 8usesPhpInsights()- Validates PHP Insights code quality analysis is configuredcheckPhpunit()- Validates PHPUnit configuration with coverage reportshasCompleteRectorConfiguration()- Validates comprehensive Rector configuration
IDE & Developer Tools
usesIdeHelpers()- Validates Laravel IDE Helper is configuredusesLaravelBoost()- Validates Laravel Boost AI development toolusesLimenetPintConfig()- Validates custom Laravel Pint formatting standards
Laravel Features & Monitoring
usesLaravelHorizon()- Validates Laravel Horizon Redis queue managerusesLaravelPennant()- Warns if Laravel Pennant feature flags are missing (optional)usesLaravelPulse()- Validates Laravel Pulse application monitoringusesLaravelTelescope()- Validates Laravel Telescope request debuggingusesSpatieHealth()- Validates Spatie Health check monitoringusesSpatieBackup()- Validates Spatie Backup database backups
Infrastructure & Dependencies
usesPredis()- Validates Predis Redis client is installedisLaravelVersionMaintained()- Validates Laravel 11+ is useddoesNotUseSail()- Validates Sail is NOT used (negative check)
CI/CD & Deployment
hasCiJobs()- Validates GitLab CI pipeline jobs are properly configuredcallsSentryHook()- Warns if Sentry error tracking is missing (optional)phpVersionMatchesCi()- Validates PHP version consistency with CI configurationisCiLintComplete()- Validates complete linting pipelinedoesNotUseIgnition()- Validates Ignition debugger is NOT installed
Local Development
phpVersionMatchesDdev()- Validates PHP version consistency with DDEVddevHasPcovPackage()- Validates DDEV coverage configurationddevMutagenIgnoresNodeModules()- Validates DDEV Mutagen sync configuration
Build & Release
bumpsComposer()- Validates automatic composer dependency bumpingusesReleaseIt()- Validates automated release managementhasNpmScripts()- Validates required npm build scripts
Security & Configuration
hasEncryptedEnvFile()- Validates encrypted environment file existshasGuidelinesUpdateScript()- Validates baseline guidelines update scriptcallsBaseline()- Validates self-validation runs after updates
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.