https://github.com/ericsizemore/utility
Collection of various PHP utility functions.
https://github.com/ericsizemore/utility
arrays dates environment filesystem hacktoberfest images numbers strings tools utilities utility utility-library
Last synced: about 2 months ago
JSON representation
Collection of various PHP utility functions.
- Host: GitHub
- URL: https://github.com/ericsizemore/utility
- Owner: ericsizemore
- License: mit
- Created: 2017-02-08T18:54:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2026-02-22T17:44:51.000Z (2 months ago)
- Last Synced: 2026-02-22T22:19:08.920Z (2 months ago)
- Topics: arrays, dates, environment, filesystem, hacktoberfest, images, numbers, strings, tools, utilities, utility, utility-library
- Language: PHP
- Homepage: https://ericsizemore.github.io/utility/
- Size: 1020 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Utility - Collection of various PHP utility functions.
[](https://scrutinizer-ci.com/g/ericsizemore/utility/build-status/master)
[](https://scrutinizer-ci.com/g/ericsizemore/utility/?branch=master)
[](https://scrutinizer-ci.com/g/ericsizemore/utility/?branch=master)
[](https://github.com/ericsizemore/utility/actions/workflows/continuous-integration.yml)
[](https://shepherd.dev/github/ericsizemore/utility)
[](https://shepherd.dev/github/ericsizemore/utility)
[](https://sonarcloud.io/summary/new_code?id=ericsizemore_utility)
[](https://packagist.org/packages/esi/utility)
[](https://packagist.org/packages/esi/utility)
[](https://packagist.org/packages/esi/utility)
[Utility](http://github.com/ericsizemore/utility/) is a small collection of useful functions that are aimed to make developers' lives just a tad bit easier.
## Installation
### Composer
Install the latest version with:
```bash
$ composer require esi/utility
```
Then, within your project (if not already included), include composer's autoload. For example:
```php
```
## Basic Usage
Utility is a set of classes that are broken down into several "components":
#### `Utilities`
* [Arrays](docs/arrays.md)
* [Conversion](docs/conversion.md)
* [Dates](docs/dates.md)
* [Environment](docs/environment.md)
* [Filesystem](docs/filesystem.md)
* [Image](docs/image.md)
* [Numbers](docs/numbers.md)
* [Strings](docs/strings.md)
As an example, let's say you want to convert a string to title case. To do so:
```php
```
All methods of found within Utility's classes are static. So, for example, to retrieve the information for a particular timezone:
```php
-5
[country] => US
[latitude] => 40.71416
[longitude] => -74.00639
[dst] =>
)
*/
?>
```
## Documentation
Please see [docs](/docs) or view [online](https://www.secondversion.com/docs/utility/).
## About
### Requirements
- Utility works with PHP 8.2.0 or above.
### Credits
- [Eric Sizemore](https://github.com/ericsizemore)
- [All Contributors](https://github.com/ericsizemore/utility/contributors)
- Special thanks to Brandon Wamboldt and their [utilphp](https://brandonwamboldt.github.io/utilphp/) library for the inspiration for `Esi\Utility`.
### Contributing
See [CONTRIBUTING](./CONTRIBUTING.md).
Bugs and feature requests are tracked on [GitHub](https://github.com/ericsizemore/utility/issues).
### Contributor Covenant Code of Conduct
See [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md)
### Backward Compatibility Promise
See [backward-compatibility.md](./backward-compatibility.md) for more information on Backwards Compatibility.
### Changelog
See the [CHANGELOG](./CHANGELOG.md) for more information on what has changed recently.
### License
See the [LICENSE](./LICENSE.md) for more information on the license that applies to this project.
### Security
See [SECURITY](./SECURITY.md) for more information on the security disclosure process.