PHP code example of kanekescom / laravel-helperia

1. Go to this page and download the library: Download kanekescom/laravel-helperia library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kanekescom / laravel-helperia example snippets


use Kanekescom\Helperia\Traits\HasMethodCaller;

class MyClass
{
    use HasMethodCaller;

    protected $class;

    public function __construct($array = [])
    {
        $this->class = collect($array);
    }
}

use Kanekescom\Helperia\Support\ClassExtender;

class MyClass extends ClassExtender
{
    public function __construct($array = [])
    {
        $this->class = collect($array);
    }
}

method_public(MyClass::class);

method_protected(MyClass::class);

method_private(MyClass::class);

convert_date_format('01-01-2024', 'd-m-Y', 'Y-m-d', $default = null);

parse_date_format('01-01-2024', 'Y-m-d', $default = null);