Profile picture of Martin Joo

Martin Joo

@mmartin_joo

Published: April 7, 2025
4
24
159

Here are my favorite 22 Laravel packages📦 I would immediately DIE without them! 🧵Keep Reading

1/ laravel-excel The single best package to handle Excel exports and imports: - Exporting collections - Storing files - Exporting from a query - Queue jobs - And more

Image in tweet by Martin Joo

2/ laravel-health This amazing Spatie package can monitor the health of your application and server. It sends you notifications if something's wrong. For example: - CPU load - Used disk space - Database connections - Redis - and more

Image in tweet by Martin Joo

3/ blueprint With this package, you can define your models in a YAML file and it will generate: - Migrations - Models with relationships - Factories - CRUD Controllers - Routes - Form requests - Even Jobs, Mails, Events, or basic HTTP tests

Image in tweet by Martin Joo

4/ laravel-backup You should regularly back up your databases and filesystem. With laravel-backup it takes only two lines of code:

Image in tweet by Martin Joo

5/ laravel-data If you’re using DTOs to handle data in your application, this is a must-have: - DTO as request, response - Nested DTOs - Lazy loading properties - Validation rules - Easy mapping from requests or models

Image in tweet by Martin Joo

6/ phpinsights This is my favorite static analysis tool. It scores your codebase and gives you this beautiful page in the terminal:

Image in tweet by Martin Joo

7/ laravel-query-builder With this package, you can build Eloquent queries based on the Request. It can handle things like: - Filtering - Sorting - Including relationships - Sparse fieldsets

Image in tweet by Martin Joo

8/ larastan It’s a very great static analysis tool on top of phpstan that integrates well with Laravel:

Image in tweet by Martin Joo

9/ has-many-deep With this package, you can query deep relationships with a single SQL query. Consider these relations: Country → has many → User → has many → Post → has many → Comment With this relationship, you can query every comment to a country in just one query:

Image in tweet by Martin Joo

10/ deptrac You can keep your architecture clean with this static analysis tool. You can define what layer can use what other layers and it will force you to obey these rules. It can be especially useful in legacy projects if want to refactor:

Image in tweet by Martin Joo

11/ pest The most amazing PHP testing framework built top on phpunit:

Image in tweet by Martin Joo

12/ clockwork Debugbar on steroids. You can monitor: - Requests - Performance metrics - Log entries - DB queries - Cache queries - Redis commands - Events, jobs - ...and more

Image in tweet by Martin Joo

13/ json-api A package that implements the JSON API standard and makes your life easy. This is what a JsonApiResource looks like:

Image in tweet by Martin Joo

14/ ziggy This package makes it possible to use your Laravel named routes from your Javascript. It can be a Blade, an Inertia, or an SPA application. Very useful!

Image in tweet by Martin Joo

15/ laravel-activitylog A very convenient audit log package. It will log every activity in your application:

Image in tweet by Martin Joo

16/ laravel-ide-helper The good old IDE helper! This package makes your IDE understand your models and Laravel classes. It gives you very nice autocompletion. https://buff.ly/2nzR073

17/ laravel-transporter by @JustSteveKing If you’re working with 3rd party APIs and services, you ABSOLUTELY need this package!

Image in tweet by Martin Joo

@JustSteveKing 18/ request-factories If you’re writing a lot of API or feature tests (which you should do, by the way) this package will save you hours when constructing request data:

Image in tweet by Martin Joo

@JustSteveKing 19/ laravel-backup by Spatie Another package from Spatie. With this one, your whole backup process should look like this: php artisan backup:run

@JustSteveKing 20/ terminal by TitasGailius If you’re working with terminal commands you can use Symfony Process which is a pretty good component. Terminal takes it to another level:

Image in tweet by Martin Joo

@JustSteveKing 21/ laravel-nestedset by lazychaser Let’s be honest… We all hate hierarchical data structures and trees. Fortunately, this package saves us:

Image in tweet by Martin Joo

@JustSteveKing 22/ accountant by Altek Another pretty impressive auditing and accountability package:

Image in tweet by Martin Joo

@JustSteveKing 23/ Thanks for reading! I just released a new book - Building a database engine Check it out here: https://buff.ly/4kcvgcv

Share this thread

Read on Twitter

View original thread

Navigate thread

1/24