Original: Laravel 開 発 を 楽 し く す る パ ッ ケ ー ジ & ツ ー ル
In this article, I would like to introduce you to the commonly used packages and tools that make Laravel development process easier and more interesting.
The content shared here may not be completely complete, looking forward to receiving additional comments.
Reference source
- https://twitter.com/laravelphp
- https://twitter.com/laravelnews
- https://laravel-news.com
- https://github.com/chiraggude/awesome-laravel
- https://github.com/TimothyDJones/awesome-laravel
Standard
Below are the packages that are included with the standard Laravel.
briannesbitt / Carbon
https://github.com/briannesbitt/carbon
This is PHP’s DateTime extension package built into the standard Laravel, through which, manipulating DateTime becomes much easier and more convenient.
Usage is also described in detail in the homepage of Carbon, you can refer to it.
laravel / tinker
https://github.com/laravel/tinker
1 2 | $ php artisan tinker |
This is a command that allows the execution of Laravel code built into standard Laravel.
It’s easy to try out Laravel code, don’t forget to use this command.
JeffreyWay / laravel-mix
https://github.com/JeffreyWay/laravel-mix
This is a Webpack Wrapper package integrated into the standard Laravel.
With Webpack, the most complex settings are also described simply and briefly using Laravel Mix.
IDE
barryvdh / laravel-ide-helper
https://github.com/barryvdh/laravel-ide-helper
After running the generate ide-helper command, the idehelper.php file will be generated with the Facade and EloquentModel properties.
In my opinion, this is a mandatory package to use when developing Laravel.
Debug
barryvdh / laravel-debugbar
https://github.com/barryvdh/laravel-debugbar
This is the package displaying the debug bar containing debug information at the bottom of the screen.
You can consult a lot of information like query / SQL execution session, log etc. without writing debug code.
This package is not used in API development, but is definitely a good tool for screen development with Blade.
laravel / telescope
https://github.com/laravel/telescope
This is the package used to manage debug information, we can say that it is paired with laravel-debugbar that I have introduced above.
This package is very useful in API development, through which you can confirm log, execute SQL without creating debug code.
beyondcode / laravel-dump-server
https://github.com/beyondcode/laravel-dump-server
This is a tool used to output dump () results to the console, very convenient because you can look at the display on the browser to confirm the dump () results on the console.
Previously, this package was included in the standard Laravel, but has now been suspended from Laravel 5.9 and removed from the official site.
https://github.com/laravel/laravel/pull/5052/commits/f053116c5680e77c3a6c73afd193984a17ea482d
On Laravel 7, this package works normally, very convenient, so do not forget to use it.
Kiểm TRA
laravel / dusk
https://github.com/laravel/dusk
This is the package that allows testing the browser automatically
Official document: https://laravel.com/docs/7.x/dusk
Laravel TestTools
https://chrome.google.com/webstore/detail/laravel-testtools/ddieaepnbjhgcbddafciempnibnfnakl
This is a Chrome extension that allows generating test code in the Browser.
mpociot / laravel-test-factory-helper
https://github.com/mpociot/laravel-test-factory-helper
This is a package that spawns a factory model from the current model, making it easy to create data tests.
Code quality
nunomaduro / phpinsights
https://github.com/nunomaduro/phpinsights
This is a package that allows checking the reliability and simplicity of the code to improve the quality of the code.
Official site: https://phpinsights.com
Database
ucan-lab / laravel-dacapo
https://github.com/ucan-lab/laravel-dacapo
This is a package that supports creating migration for Laravel, through which, you can briefly and simply describe the table structure using YAML.
Qoraiche / laravel-mail-editor
https://github.com/Qoraiche/laravel-mail-editor
This is a package that allows you to edit your email content with the GUI.
Official site: https://maileclipse.io
Laravel News: https://laravel-news.com/maileclipse-laravel-mail-editor-package
Demo video: https://youtu.be/QFgEGNBY3FI
Aspect
ytake / Laravel-Aspect
https://github.com/ytake/Laravel-Aspect
Those that cannot be separated only by Object-Oriented (object-oriented) are completely separated by this Laravel Aspect.
CI
StyleCI
It’s CI to check coding style.
Pull requests are automatically generated, and the developer simply needs to merge and import the code.
Monitoring
getsentry / sentry-laravel
https://github.com/getsentry/sentry-laravel
An error monitoring server, used to manage exceptions.
Official site: https://sentry.io/welcome