piscarocarlos / helpify
A package that catalogs common utility functions for Laravel
Requires
- php: ^8.1
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
README
This package consolidates a set of commonly used utility functions for Laravel. It aims to streamline development by providing practical and reusable tools for common tasks. Whether it's string manipulation, date handling, or other routine operations, this helper package simplifies developers' lives by centralizing these essential functionalities.
Installation
You can install the package via composer:
composer require piscarocarlos/helpify
And then, if using Laravel 5, include the service provider within config/app.php
.
'providers' => [ Piscarocarlos\Helpify\HelpifyServiceProvider::class, ];
And, for convenience, add a facade alias to this same file at the bottom:
'aliases' => [ 'Helpify' => Piscarocarlos\Helpify\Facades\Helpify::class, ];
Usage
use Helpify\Helpers; $url = 'https://www.example.com'; $shortenedURL = short_url($url); // OR $shortenedURL = Helpers::short_url($url);
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.