Laravel Top 20 Essential Packages In 2020
----------------------------------------------
Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller architectural pattern and based on Symfony.
We are going to discuss the top laravel packages which you can use.
List of Most Useful Laravel Packages:
The Most useful Laravel Package can easily integrate with Laravel Application and Utilize the Functionality.
1)Laravel Trusted Proxies-proxy
Set trusted proxies for Laravel
Features include:
- TrustedProxies are now set as in an HTTP Middleware, which makes more logical sense than the previous ServiceProvider. If you're unsure what that means, remember to "Just Trust Fideloper™".
- You can now set the trusted header names. This is useful for proxies that don't use the usual
X-Forwarded-*
headers.
Laravel 5.6
- composer require fideloper/proxy:~4.0
Laravel 5.5
- composer require fideloper/proxy:~3.0
Laravel 5.0 - 5.4
- composer require fideloper/proxy
2)Laravel HTML and FORM generator.-html
HTML and Form Builders for the Laravel Framework
Installation
composer require laravelcollective/html
Opening A Form
//Opening a form
{!! Form::open(['url' => 'member/list']) !!}
//
{!! Form::close() !!}
3)Laravel Cli error handling for console/command.-collision
Collision was created by, and is maintained by Nuno Maduro, and is a package designed to give you beautiful error reporting when interacting with your app through the command line.
- It's included on Laravel, the most popular free, open-source PHP framework in the world.
- Built on top of the Whoops error handler.
- Supports Laravel, Symfony, PHPUnit, and many other frameworks.
Installation
composer require nunomaduro/collision --dev
4)Laravel Debugbar-laravel-debugbar
It includes a ServiceProvider to register the debugbar and attach it to the output. You can publish assets and configure it through Laravel. It bootstraps some Collectors to work with Laravel and implements a couple custom DataCollectors, specific for Laravel. It is configured to display Redirects and (jQuery) Ajax Requests.
This package includes some custom collectors:
- QueryCollector: Show all queries, including binding + timing
- RouteCollector: Show information about the current Route.
- ViewCollector: Show the currently loaded views. (Optionally: display the shared data)
- EventsCollector: Show all events
- LaravelCollector: Show the Laravel version and Environment. (disabled by default)
- SymfonyRequestCollector: replaces the RequestCollector with more information about the request/response
- LogsCollector: Show the latest log entries from the storage logs. (disabled by default)
- FilesCollector: Show the files that are included/required by PHP. (disabled by default)
- ConfigCollector: Display the values from the config files. (disabled by default)
- CacheCollector: Display all cache events. (disabled by default)
Bootstraps the following collectors for Laravel:
- LogCollector: Show all Log messages
- SwiftMailCollector and SwiftLogCollector for Mail
And the default collectors:
- PhpInfoCollector
- MessagesCollector
- TimeDataCollector (With Booting and Application timing)
- MemoryCollector
- ExceptionsCollector
It also provides a Facade interface for easy logging Messages, Exceptions and Time
Installation
composer require barryvdh/laravel-debugbar --dev
5)Laravel Excel exports and imports-excel
Features
-
Easily export collections to Excel. Supercharge your Laravel collections and export them directly to an Excel or CSV document. Exporting has never been so easy.
-
Supercharged exports. Export queries with automatic chunking for better performance. You provide us the query, we handle the performance. Exporting even larger datasets? No worries, Laravel Excel has your back. You can queue your exports so all of this happens in the background.
-
Supercharged imports. Import workbooks and worksheets to Eloquent models with chunk reading and batch inserts! Have large files? You can queue every chunk of a file! Your entire import will happen in the background.
-
Export Blade views. Want to have a custom layout in your spreadsheet? Use a HTML table in a Blade view and export that to Excel.
Installation
composer require phpoffice/phpspreadsheet
6)Laravel Dump Server-laravel-dump-server
This package will give you a dump server, that collects all your dump
call outputs, so that it does not interfere with HTTP / API responses.
Installation
You can install the package via composer:
composer require --dev beyondcode/laravel-dump-server
7)JSON Web Token Authentication for Laravel-jwt-auth
Install via composer - edit your composer.json to require the package.
"require": {
"tymon/jwt-auth": "0.5.*"
}
Then run composer update in your terminal to pull it in.
8)Desktop/mobile user agent parser with support for Laravel, based on Mobiledetect-agent
A PHP desktop/mobile user agent parser with support for Laravel, based on Mobile Detect with desktop support and additional functionality.
Installation
Install using composer:
composer require jenssegers/agent
9)CORS Middleware for Laravel-laravel-cors
The laravel-cors
package allows you to send Cross-Origin Resource Sharing headers with Laravel middleware configuration.
Installation
Install using composer:
composer require fruitcake/laravel-cors
10)A DOMPDF Wrapper for Laravel-laravel-dompdf
Installation
Install using composer:
composer require barryvdh/laravel-dompdf
11)Official Bugsnag notifier for Laravel applications.-bugsnag-laravel
The Bugsnag Notifier for Laravel gives you instant notification of errors and exceptions in your Laravel PHP applications. We support both Laravel and Lumen. Learn more about Laravel error reporting from Bugsnag.
Features
- Automatically report unhandled exceptions and crashes
- Report handled exceptions
- Attach user information and custom diagnostic data to determine how many people are affected by a crash
Getting started
- Create a Bugsnag account
- Complete the instructions in the integration guide for Laravel or Lumen
- Report handled exceptions using
Bugsnag::notify()
- Customize your integration using the configuration options
12)Slack for PHP-Slack
A simple PHP package for sending messages to Slack
Installation
Install using composer:
composer require maknz/slack
13)A beautiful error page for Laravel.-ignition
Ignition is a beautiful and customizable error page for Laravel applications running on Laravel 5.5 and newer.
Installation
Install using composer:
composer require facade/ignition
14)Laravel jQuery DataTables API-laravel-datatables-oracle
This package is created to handle server-side works of DataTables jQuery Plugin via AJAX option by using Eloquent ORM, Fluent Query Builder or Collection.
Installation
Install using composer:
composer require yajra/laravel-datatables-oracle:"~9.0"
15)Laravel universally unique identifier (UUID).
laravel-uuid
Laravel package to generate and to validate a universally unique identifier (UUID) according to the RFC 4122 standard. Support for version 1, 3, 4 and 5 UUIDs are built-in.
Installation
Install using composer:
composer require "webpatser/laravel-uuid:^3.0"
16)Laravel package to backup-laravel-backup
This Laravel package creates a backup of your application. The backup is a zip file that contains all files in the directories you specify along with a dump of your database. The backup can be stored on any of the filesystems you have configured in Laravel 5.
Installation
Install using composer:
composer require spatie/laravel-backup
17)Laravel library to help you work with dates in different languages-date
This date library extends Carbon with multi-language support. Methods such as format
, diffForHumans
, parse
, createFromFormat
and the new timespan
, will now be translated based on your locale.
Installation
Install using composer:
composer require jenssegers/date
18)A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)-mongodb
This package adds functionalities to the Eloquent model and Query builder for MongoDB, using the original Laravel API.
Installation
Install using composer:
composer require jenssegers/mongodb
19)Laravel log reader-laravel-log-viewer
Log Viewer for Laravel 5, 6 & 7 (still compatible with 4.2 too) and Lumen. Install with composer, create a route to LogViewerController
. No public assets, no vendor routes, works with and/or without log rotate.
Installation
Install using composer:
composer require rap2hpoutre/laravel-log-viewer
20)Laravel helper for the ZipArchive-zipper
This is a simple Wrapper around the ZipArchive methods with some handy functions.
Add this package to the list of required packages, inside composer.json
for Laravel 5: "chumper/zipper": "1.0.x"
Run composer update
Go to app/config/app.php
add to providers Chumper\Zipper\ZipperServiceProvider::class
add to aliases 'Zipper' => Chumper\Zipper\Zipper::class
You can now access Zipper with the Zipper alias.