asorasoft / helpers
辅助函数
v1.0.0
2021-11-21 04:42 UTC
Requires
- php: ^7.1
- illuminate/support: ^5.0 || ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-09-21 11:21:27 UTC
README
辅助函数
安装
您可以通过composer安装此包
composer require asorasoft/helpers
可用方法
message_error($message, $statusCode = 404)
返回Illumate\Http\Response
message_success($data)
返回Illumate\Http\Response
message_pagination($paginate, $number_per_page)
返回Illumate\Http\Response
to_khmer_number($str)
返回String
to_standard_number($str)
返回String
get_random_str()
返回String
in_development
返回Boolean
is_production
返回Boolean
get_phone_with_country_code($str)
返回String
get_phone_without_country_code($str)
返回String
my_logs($err, Exception $e)
记录错误
测试
composer test
变更日志
请参阅 CHANGELOG 了解最近更改的详细信息。
贡献
请参阅 CONTRIBUTING 了解详细信息。
安全
如果您发现任何安全相关的问题,请通过电子邮件 mab@asorasoft.com 而不是使用问题跟踪器。
鸣谢
许可
MIT 许可证 (MIT)。请参阅 许可文件 了解更多信息。