DEV Community

Cover image for Laravel package for every project
Ariel Mejia
Ariel Mejia

Posted on

5

Laravel package for every project

Here a list of packages that I use/suggest for every Laravel project:

Laravel Ide Helper

composer require --dev barryvdh/laravel-ide-helper
Enter fullscreen mode Exit fullscreen mode

Laravel Debugbar

composer require barryvdh/laravel-debugbar --dev
Enter fullscreen mode Exit fullscreen mode

Laravel Jetstream (Teams feature is very useful but not mandatory for all the projects)

composer require laravel/jetstream
php artisan jetstream:install inertia --teams
npm install
npm run dev
php artisan migrate
Enter fullscreen mode Exit fullscreen mode

Laravel Query Builder

composer require spatie/laravel-query-builder
Enter fullscreen mode Exit fullscreen mode

PHP Code Standards Fixer

$ composer global require friendsofphp/php-cs-fixer
vendor/bin/php-cs-fixer fix
Enter fullscreen mode Exit fullscreen mode

PHP Insights

composer require nunomaduro/phpinsights --dev
php artisan vendor:publish --provider="NunoMaduro\PhpInsights\Application\Adapters\Laravel\InsightsServiceProvider"
php artisan insights
Enter fullscreen mode Exit fullscreen mode

Ray

composer require spatie/laravel-ray --dev
php artisan ray:publish-config
Enter fullscreen mode Exit fullscreen mode

Laravel Macro IDE

Add the package as a dev dependency

"tutorigo/laravel-ide-macros": "*"
Enter fullscreen mode Exit fullscreen mode

On terminal

php artisan vendor:publish --provider="Tutorigo\LaravelMacroHelper\IdeMacrosServiceProvider"
php artisan ide-helper:macros
Enter fullscreen mode Exit fullscreen mode

Those are the most useful packages to work on almost every project.

If you like to use PHPInsights or PHP-CS-Fixer there is a reading list about "Laravel profesional setup" that would guide you to customize this packages behavior with a lot of detail.

Thanks for reading

Billboard image

Monitoring as code

With Checkly, you can use Playwright tests and Javascript to monitor end-to-end scenarios in your NextJS, Astro, Remix, or other application.

Get started now!

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay