attla / support
Collection of resources to improve and extend ways to use laravel.
dev-main
2024-11-17 20:33 UTC
Requires
- php: >=7.2.5
- illuminate/contracts: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/database: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/support: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
This package is auto-updated.
Last update: 2024-11-17 20:33:23 UTC
README
🛠️ Collection of resources to improve and extend ways to use laravel.
Installation
composer require attla/support
Usage
Arr examples:
use Attla\Support\Arr as AttlaArr; use Illuminate\Support\Arr; // Convert a value to array AttlaArr::toArray($value); // array Arr::toArray($value); // array // Randomize positions of an array AttlaArr::randomized($value); // array Arr::randomized($value); // array
Str examples:
use Attla\Support\Str as AttlaStr; use Illuminate\Support\Str; use Illuminate\Support\Stringable; AttlaStr::isBase64($value); // bool Str::isBase64($value); // bool (new Stringable($value))->isBase64(); // bool AttlaStr::isHttpQuery($value); // bool Str::isHttpQuery($value); // bool (new Stringable($value))->isHttpQuery(); // bool AttlaStr::isSerialized($value); // bool Str::isSerialized($value); // bool (new Stringable($value))->isSerialized(); // bool
License
This package is licensed under the MIT license © Octha.