For many years, I have used Laravel, and I believe it is the framework that breathes the best life into PHP. However, the creation of Helpers has not been standardized within this framework. Thus, I decided to create a standard and implement it across the various systems and companies I have worked with. Today, many colleagues have decided to support this initiative and create a package that becomes a powerful feature in Laravel.
Our solution offers a simple, efficient, and elegant way to execute your application's custom methods from any class or view, making development much easier. Enhance your Laravel project while maintaining the elegance and cleanliness of your code with this package.
We have oriented the entire use of Helpers towards classes and, most importantly, centralized the existing Laravel helpers through the categories of this package. We include native Laravel functionalities accessible through classes like Str::
and Arr::
. Other helpers that are not accessed via classes but as functions should continue to be used as presented in Laravel's official documentation.
It's time to standardize how we create and use helpers in our projects.
To use this solution, ensure the following:
PHP: Version 8.0 or higher
Laravel Framework: Version 10.0 or higher
To install the dependency via composer, run the following command:
composer require rmunate/laravel_helpers
This will download the latest available version of the package.
Ensure that in your composer.json
, you have the library listed with the latest version: "rmunate/laravel_helpers": "^3.0"
This project is under the MIT License.
π Support My Projects! π
Make any contributions you see fit; the code is entirely yours. Together, we can do amazing things and improve the world of development. Your support is invaluable. β¨
If you have ideas, suggestions, or just want to collaborate, we are open to everything! Join our community and be part of our journey to success! ππ©βπ»π¨βπ»