axazara / laravel-helpers
A Laravel Helpers suited for Laravel development at Axa Zara
Requires
- php: ^8.0
- endroid/qr-code: ^4.8
- hidehalo/nanoid-php: ^1.1
- illuminate/contracts: ^8.0 || ^9.0 || ^10.0
- robthree/twofactorauth: ^2.0
Requires (Dev)
- axazara/php-cs: ^0.1.0
- insolita/unused-scanner: ^2.4
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.6
- orchestra/testbench: ^7.25
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpunit/phpunit: ^9.6
- roave/security-advisories: dev-latest
- spatie/laravel-ray: ^1.32
This package is auto-updated.
Last update: 2024-12-20 05:31:11 UTC
README
This Laravel package provides a collection of Helpers functions to help you build your Laravel application. This is a collection of functions that are commonly used in Axa Zara Laravel projects.
Requirements
Laravel 8.0 or higher
Installation
You can install the package via composer:
composer require axazara/laravel-helpers
Usage
List of available helpers functions:
Function | Description |
---|---|
arrayGet | Get an item from an array using "dot" notation. |
addQueryParamsToUrl | Add query parameters to the given URL. |
arrayPluck | Pluck an array of values from an array. |
deleteFile | Delete file from storage. |
generateAvatarUrl | Generate avatar url. |
getLanguageCode | Get language code from locale. |
getNanoId | Generate a Nano ID. |
paginationArray | Paginate array from a collection. |
storeFile | Store file in storage. |
stripeContent | Stripe content from array. |
twoFactor | Get two factor auth instance. |
makeClickableLinks | Make clickable links from text. |
Development
- Add new helper function in
src/Helpers
directory - Add new test in
tests/Helpers
directory format :HelperNameTest.php
- Run
composer test
to run the test suite. - Run
composer sniff
to run the code style check. - Run
composer format
to run the code style fixer.
Get Composer. For example, on Mac OS:
brew install composer
Install dependencies:
composer install
The library uses PHP CS Fixer for code formatting. Code must be formatted before PRs are submitted, otherwise CI will fail. Run the formatter with:
./vendor/bin/php-cs-fixer fix -v .
Security Vulnerabilities
If you discover a security vulnerability within Moneroo Laravel SDK, please send an e-mail to Moneroo Security via hello@axazara.com. All security vulnerabilities will be promptly addressed.
License
The Moneroo Laravel SDK is open-sourced software licensed under the MIT license.