There are 10+ packages for building Laravel apps


Why was this list of packages created? Because I’m a “lazy” developer and a member of multiple Laravel groups on Facebook. The most common problem I encounter is which packages are needed for development. I’m lazy so I don’t want to start from scratch every time.

Why is the management pack not included in this article? They will be explained in another article.

1. The module

If you’re not developing a “toy project.” Then, using modules and partitioning by module functionality is the preferred approach. Centrally manages entities, controllers, views, routes, and configurations of modules. What else? And easier code transfer between multiple applications.

advantage

– Code encapsulation

– Order in code

– Code transfer for multiple applications

– Code generators – modules, controllers, entity classes, etc

See the dead simple github.com/nWidart/lar…

2. Spatie permissions

If you don’t know Spatie, you should start getting to know them right away! Great company. Spaite’s roles and permissions package is one of the best in the permissions package.

advantages

Role –

– authority

– Direct permission

– middleware

– Rich blade template commands

– Artisan command

Where to get it? Github.com/spatie/lara…

3. Laravel Datatables

If you’re using DataTables and you’re creating your own JavaScript, Ajax, routing, database queries, filters, searches, etc. Believe me, this is a better solution.

advantages

– Easy to use

– the DataTable service

– Customize database query

– generate the JavaScript

– Multiple customizations

Where to get it? Github.com/yajra/larav…

4. Form constructor

To be honest, I don’t like mixing forms in HTML. The Laravel form constructor allows you to separate your forms from the HTML view.

advantage

– Easy to use

– Form objectification

– Multiple form fields are supported

– Supports subtables

– Easily create custom form fields

See more on Github: github.com/kristijanhu…

5. Flash notice

After saving the form data, I redirect to the list page, edit the page, or display the page. With Flash notifications, we can easily send success, warning, or error messages to users.

advantage

– Easy to use

– Multiple parameters (success, error, warning, popover, tone, etc.)

– User-defined view

See more on Github: github.com/laracasts/f…

6. Laravel Menu package

If your application needs to easily change different menu items based on user roles or permissions, this package is not to be missed.

advantage

– Easy to use

– Multi-view multiplexing

– custom

– Data populability

– cacheable

Look here look here github.com/spatie/lara…

7. Laravel Activity Log

Many data administrators want to keep track of all active records of their users. This package makes it easy to keep track of when and where your users create and update entities. Plus, the package can now record changes to data between entities in multiple versions.

advantage

– Simple entity implementation

– Records all users who create and update entities and the number of times

– Supports recording custom information (login, logout, etc.)

Poking me ah github.com/spatie/lara…

8. Laravel Js Validation

It’s my thing! Does automatic front-end validation against the requested data object sound great? Yes, that’s right! Our lazy goal is to code as little as possible!

advantage

– Generate front-end validation based on the request object

– No need to write any Javascript code (yes, you heard that right)

– Support asynchronous validation (unique, exist, custom rules, etc.)

– more than language

Hurry up github.com/proengsoft/…

9. Persistent settings

If your app has a lot of complex configuration items (theme, logo, company Settings, API Settings, default Settings, etc.), this package will come in handy. It saves the configuration information of key => value pairs in the database, and then you can easily use them in auxiliary methods in the application.

advantage

– cacheable

– can be encrypted

– Context-able Settings (user example)

Where to get it? Github.com/edvinaskruc…

10. Multi-tenant

In developing SASS application services, each client has a separate database, domain name, and subdomain name, and does not put them all in the same repository. If you have similar needs, this project is for you.

Function:

– Multiple databases;

– Multiple domains and subdomains;

– Automatically generate Apache or Nginx configuration files;

– Support queue;

– Supports separate storage of files.

It can be obtained here: github.com/hyn/multi-t…

Additional recommendations

11. Laravel IDE Helper – allows your PHPStorm to support autocomplete, such as Model, Facade and database entity fields.

Github.com/barryvdh/la…

12. Provide arrays, strings, and object-related helper functions:

Github.com/letsdrink/o…

13. Automatically convert PHP arrays to Javascript objects:

Packagist.org/packages/la…

To learn more, please visit:

Tencent T3-T4 standard boutique PHP architect tutorial directory directory, as long as you finish the guarantee salary rise a step (continue to update)


I hope the above content can help you. Many PHPer will encounter some problems and bottlenecks when they are advanced, and they have no sense of direction when writing too many business codes. I have sorted out some information, including but not limited to: Distributed architecture, high scalability, high performance, high concurrency, server performance tuning, TP6, Laravel, YII2, Redis, Swoole, Swoft, Kafka, Mysql optimization, shell scripting, Docker, microservices, Nginx, etc.