PHP code example of rockbuzz / lara-custom-helpers

1. Go to this page and download the library: Download rockbuzz/lara-custom-helpers 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/ */

    

rockbuzz / lara-custom-helpers example snippets


has_time_with_seconds(string $time): bool;
sum_times(...$times);
has_br_datetime_format(string $date, bool $withSeconds = false);
has_br_date_format(string $date);
has_us_datetime_format(string $date, bool $withSeconds = false);
has_us_datetime_local_format(string $date, bool $withSeconds = false);
has_us_date_format(string $date);
create_us_date_time(string $date = null, bool $withSeconds = false): ?Carbon;
getIcon_by_mime(string $mime, string $class = null);
is_current_route($routeName): bool;
active_by_url(string $url, string $class = 'active'): string;
active_by_route($routeName, string $class = 'active'): string;
mask($value, string $mask): string;
unmask(string $value, array $unmask): string;
display_active($active, string $classPrefix = 'label'): string;
string_title(string $value): string;
string_limit(string $value, int $limit = 100, string $end = '...');
string_slug($title, $separator = '-', $language = 'en');
convert_to_brl($moneyInCents, $prefix = null);
convert_to_money($moneyInCents);
convert_money_in_cents($money);