asorasoft/helpers

Helper functions

v1.0.0 2021-11-21 04:42 UTC

This package is auto-updated.

Last update: 2024-10-21 11:27:25 UTC


README

Helper functions

Installation

You can install the package via composer:

composer require asorasoft/helpers

Available Methods

  • message_error($message, $statusCode = 404) return Illumate\Http\Response
  • message_sucess($data) return Illumate\Http\Response
  • message_pagination($paginate, $number_per_page) return Illumate\Http\Response
  • to_khmer_number($str) return String
  • to_standard_number($str) return String
  • get_random_str() return String
  • in_development return Boolean
  • is_production return Boolean
  • get_phone_with_country_code($str) return String
  • get_phone_without_country_code($str) return String
  • my_logs($err, Exception $e) Logging errors

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email mab@asorasoft.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.