Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prinx/phputils
Some Custom PHP Utilities Classes
https://github.com/prinx/phputils
Last synced: 15 days ago
JSON representation
Some Custom PHP Utilities Classes
- Host: GitHub
- URL: https://github.com/prinx/phputils
- Owner: prinx
- Created: 2020-06-08T11:13:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-22T14:45:00.000Z (about 4 years ago)
- Last Synced: 2024-12-02T12:53:45.673Z (about 1 month ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP Utils
PHP Utilities classes
## Installation
```shell
composer require prinx/phputils
```
## Usage
Import the composer autoload file:
```php
require_once 'path/to/vendor/autoload.php';
```
Then you can _use_ the needed utility class:
```php
use Prinx\Utils\Str;echo Str::isMaxLength('Woow', 5); // true
```
## Utilities classes
Each utility class provides a set of static methods.### Str
Check the available methods [here](https://github.com/Prinx/phputils/edit/master/src/Str.php).### Date
Check the available methods [here](https://github.com/Prinx/phputils/edit/master/src/Date.php).### HTTP
Check the available methods [here](https://github.com/Prinx/phputils/edit/master/src/HTTP.php).### URL
Check the availableg methods [here](https://github.com/Prinx/phputils/edit/master/src/URL.php).### SMS
Check the available methods [here](https://github.com/Prinx/phputils/edit/master/src/SMS.php).