rockbuzz/lara-custom-helpers
Composer 安装命令:
composer require rockbuzz/lara-custom-helpers
包简介
laravel custom helpers
README 文档
README
Laravel custom helpers
Requirements
PHP: >=7.3
Install
$ composer require rockbuzz/lara-custom-helpers
Usage
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);
License
The Lara Custom Helpers is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 3.57k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-12