|  Download Utility - Collection of various PHP utility functions.          
     
 Utility is a small collection of useful functions that are aimed to make developers' lives just a tad bit easier. InstallationComposerInstall the latest version with: $ composer require esi/utility
 Then, within your project (if not already included), include composer's autoload. For example: <?php
require 'vendor/autoload.php';
?>
 Basic UsageUtility is a set of classes that are broken down into several "components": Utilities
As an example, let's say you want to convert a string to title case. To do so: <?php
use Esi\Utility\Strings;
$title = Strings::title('this is my title');
echo $title;
?>
 All methods of found within Utility's classes are static. So, for example, to retrieve the information for a particular timezone: <?php
use Esi\Utility\Dates;
$timezone = Dates::timezoneInfo('America/New_York');
print_r($timezone);
/*
Array
(
    [offset] => -5
    [country] => US
    [latitude] => 40.71416
    [longitude] => -74.00639
    [dst] => 
)
*/
?>
 DocumentationPlease see docs or view online. AboutRequirements
Utility works with PHP 8.2.0 or above.
 Submitting bugs and feature requestsBugs and feature requests are tracked on GitHub Issues are the quickest way to report a bug. If you find a bug or documentation error, please check the following first: 
That there is not an Issue already open concerning the bug
That the issue has not already been addressed (within closed Issues, for example)
 ContributingSee CONTRIBUTING. AuthorEric Sizemore - <[email protected]> - <https://www.secondversion.com> LicenseUtility is licensed under the MIT License - see the LICENSEfile for details AcknowledgementsThis library is inspired by Brandon Wamboldt's utilphp library. |