bsadnu/helpers-box

The huge amount of helpers you can use in any PHP project

v0.1.3 2018-09-04 12:20 UTC

This package is not auto-updated.

Last update: 2024-05-16 12:13:39 UTC


README

Latest Stable Version Total Downloads License

This library provides a number of static helper methods. At the moment it is a full copy of Laravel 5.7 Arr and Str helpers.

Installation

Open a command console, enter your project directory and execute:

$ composer require bsadnu/helpers-box

Usage

Simply call static methods as follows:

<?php

...

use Bsadnu\HBox\Arr;
use Bsadnu\HBox\Str;

...

class SomeClass
{
    ...
    
    public function someMethod()
    {
        ...
        
        Arr::pluck($someArray, $value);
        
        Str::camel($someString);
        
        ...
    }

    ...
}