
Martin Joo
@mmartin_joo
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
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
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
4/ laravel-backup You should regularly back up your databases and filesystem. With laravel-backup it takes only two lines of code:
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
6/ phpinsights This is my favorite static analysis tool. It scores your codebase and gives you this beautiful page in the terminal:
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
8/ larastan It’s a very great static analysis tool on top of phpstan that integrates well with Laravel:
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:
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:
11/ pest The most amazing PHP testing framework built top on phpunit:
12/ clockwork Debugbar on steroids. You can monitor: - Requests - Performance metrics - Log entries - DB queries - Cache queries - Redis commands - Events, jobs - ...and more
13/ json-api A package that implements the JSON API standard and makes your life easy. This is what a JsonApiResource looks like:
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!
15/ laravel-activitylog A very convenient audit log package. It will log every activity in your application:
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!
@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:
@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:
@JustSteveKing 21/ laravel-nestedset by lazychaser Let’s be honest… We all hate hierarchical data structures and trees. Fortunately, this package saves us:
@JustSteveKing 22/ accountant by Altek Another pretty impressive auditing and accountability package:
@JustSteveKing 23/ Thanks for reading! I just released a new book - Building a database engine Check it out here: https://buff.ly/4kcvgcv