Performance
A performance-optimization toolkit for Laravel. Performance ships image optimization, JS/CSS strategies, speculative loading, page and fragment caching, database query analysis and a real-user monitoring dashboard — every feature opt-in.
v1.2.0
MIT License
★ 0
composer require artisanpack-ui/performance
$ composer require artisanpack-ui/performance
✓ Installed
$ php artisan perf:install
✓ Published config, migrated, validated environment
@perfMonitor → drop into your layout
What it does
Find and fix the slow parts
A toolkit for the whole performance surface — images, assets, caching, queries and real-user monitoring — that you switch on feature by feature.
Image optimization
WebP/AVIF conversion, responsive sizes, LQIP placeholders and lazy loading.
JS & CSS strategies
Deferred, async and conditional scripts, critical CSS and HTML minification.
Speculative loading
Prefetch and prerender via the Speculation Rules API and HTTP Early Hints.
Caching
Page and fragment caching with tag-based invalidation and cache warming.
Database optimization
N+1 detection, slow-query logging and index suggestions.
Real-user monitoring
Web Vitals collection, aggregation and a Livewire admin dashboard.
Get started
Install and run the setup command
Every feature is off until you flip its PERF_* flag — enable only what you need, per environment.
1 · Install
composer require artisanpack-ui/performance
2 · Run the installer
php artisan perf:install
Requirements
What you need
| Requirement | Detail |
|---|---|
| PHP | 8.2+ (8.3+ on Laravel 13) |
| Laravel | 10, 11, 12 or 13 |
| Imaging | ext-gd or ext-imagick |
| Every feature is opt-in via PERF_* env flags. React and Vue dashboards ship via @artisanpack-ui/performance. | |
Speed things up with Performance
Add image, cache, query and monitoring tooling to your Laravel app in one command. Free and open source under the MIT license.
