https://github.com/helmab/helpers
Helper functions
https://github.com/helmab/helpers
function helpers laravel
Last synced: about 1 month ago
JSON representation
Helper functions
- Host: GitHub
- URL: https://github.com/helmab/helpers
- Owner: HELMAB
- License: mit
- Created: 2021-11-21T04:41:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-21T04:52:10.000Z (over 4 years ago)
- Last Synced: 2025-10-19T13:46:00.683Z (8 months ago)
- Topics: function, helpers, laravel
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Helpers for Laravel
[comment]: <> ([](https://packagist.org/packages/asorasoft/helpers))
[comment]: <> ([](https://packagist.org/packages/asorasoft/helpers))
[comment]: <> ()
Helper functions
## Installation
You can install the package via composer:
```bash
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
```bash
composer test
```
### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email mab@asorasoft.com instead of using the issue tracker.
## Credits
- [Hel Mab](https://github.com/helmab)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.