{"id":20655251,"url":"https://github.com/ericsizemore/utility","last_synced_at":"2026-02-27T08:58:39.653Z","repository":{"id":56979284,"uuid":"81364391","full_name":"ericsizemore/utility","owner":"ericsizemore","description":"Collection of various PHP utility functions.","archived":false,"fork":false,"pushed_at":"2026-02-22T17:44:51.000Z","size":1048,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-22T22:19:08.920Z","etag":null,"topics":["arrays","dates","environment","filesystem","hacktoberfest","images","numbers","strings","tools","utilities","utility","utility-library"],"latest_commit_sha":null,"homepage":"https://ericsizemore.github.io/utility/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericsizemore.png","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","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"ko_fi":"ericsizemore","github":"ericsizemore","tidelift":"packagist/esi/utility"}},"created_at":"2017-02-08T18:54:34.000Z","updated_at":"2026-02-22T17:44:23.000Z","dependencies_parsed_at":"2024-04-11T14:59:05.404Z","dependency_job_id":"4a6b9389-aea5-4482-b43a-27309d2de8b0","html_url":"https://github.com/ericsizemore/utility","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":"0.16666666666666663","last_synced_commit":"2fea68faf4175bdb283e35e5cb089726fd02e029"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/ericsizemore/utility","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericsizemore%2Futility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericsizemore%2Futility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericsizemore%2Futility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericsizemore%2Futility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericsizemore","download_url":"https://codeload.github.com/ericsizemore/utility/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericsizemore%2Futility/sbom","scorecard":{"id":113504,"data":{"date":"2025-08-11","repo":{"name":"github.com/ericsizemore/utility","commit":"8056e9b1e9ee75b4c2293e1491115a9bf836a727"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":8.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 30 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: all commits (30) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T18:43:02.252Z","repository_id":56979284,"created_at":"2025-08-15T18:43:02.254Z","updated_at":"2025-08-15T18:43:02.254Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29888679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T08:34:21.514Z","status":"ssl_error","status_checked_at":"2026-02-27T08:32:38.035Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arrays","dates","environment","filesystem","hacktoberfest","images","numbers","strings","tools","utilities","utility","utility-library"],"created_at":"2024-11-16T18:09:41.233Z","updated_at":"2026-02-27T08:58:39.647Z","avatar_url":"https://github.com/ericsizemore.png","language":"PHP","readme":"# Utility - Collection of various PHP utility functions.\n[![Build Status](https://scrutinizer-ci.com/g/ericsizemore/utility/badges/build.png?b=master)](https://scrutinizer-ci.com/g/ericsizemore/utility/build-status/master)\n[![Code Coverage](https://scrutinizer-ci.com/g/ericsizemore/utility/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/ericsizemore/utility/?branch=master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ericsizemore/utility/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ericsizemore/utility/?branch=master)\n[![Continuous Integration](https://github.com/ericsizemore/utility/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/ericsizemore/utility/actions/workflows/continuous-integration.yml)\n[![Type Coverage](https://shepherd.dev/github/ericsizemore/utility/coverage.svg)](https://shepherd.dev/github/ericsizemore/utility)\n[![Psalm Level](https://shepherd.dev/github/ericsizemore/utility/level.svg)](https://shepherd.dev/github/ericsizemore/utility)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ericsizemore_utility\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=ericsizemore_utility)\n[![Latest Stable Version](https://img.shields.io/packagist/v/esi/utility.svg)](https://packagist.org/packages/esi/utility)\n[![Downloads per Month](https://img.shields.io/packagist/dm/esi/utility.svg)](https://packagist.org/packages/esi/utility)\n[![License](https://img.shields.io/packagist/l/esi/utility.svg)](https://packagist.org/packages/esi/utility)\n\n\n[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.\n\n## Installation\n\n### Composer\n\nInstall the latest version with:\n\n```bash\n$ composer require esi/utility\n```\n\nThen, within your project (if not already included), include composer's autoload. For example:\n\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\n?\u003e\n```\n\n## Basic Usage\n\nUtility is a set of classes that are broken down into several \"components\":\n\n#### `Utilities`\n\n  * [Arrays](docs/arrays.md)\n  * [Conversion](docs/conversion.md)\n  * [Dates](docs/dates.md)\n  * [Environment](docs/environment.md)\n  * [Filesystem](docs/filesystem.md)\n  * [Image](docs/image.md)\n  * [Numbers](docs/numbers.md)\n  * [Strings](docs/strings.md)\n\nAs an example, let's say you want to convert a string to title case. To do so:\n```php\n\u003c?php\n\nuse Esi\\Utility\\Strings;\n\n$title = Strings::title('this is my title');\n\necho $title;\n\n?\u003e\n```\n\nAll methods of found within Utility's classes are static. So, for example, to retrieve the information for a particular timezone:\n\n```php\n\u003c?php\n\nuse Esi\\Utility\\Dates;\n\n$timezone = Dates::timezoneInfo('America/New_York');\n\nprint_r($timezone);\n\n/*\nArray\n(\n    [offset] =\u003e -5\n    [country] =\u003e US\n    [latitude] =\u003e 40.71416\n    [longitude] =\u003e -74.00639\n    [dst] =\u003e \n)\n*/\n\n?\u003e\n```\n\n## Documentation\nPlease see [docs](/docs) or view [online](https://www.secondversion.com/docs/utility/).\n\n## About\n\n### Requirements\n\n- Utility works with PHP 8.2.0 or above.\n\n### Credits\n\n- [Eric Sizemore](https://github.com/ericsizemore)\n- [All Contributors](https://github.com/ericsizemore/utility/contributors)\n- Special thanks to Brandon Wamboldt and their [utilphp](https://brandonwamboldt.github.io/utilphp/) library for the inspiration for `Esi\\Utility`.\n\n### Contributing\n\nSee [CONTRIBUTING](./CONTRIBUTING.md).\n\nBugs and feature requests are tracked on [GitHub](https://github.com/ericsizemore/utility/issues).\n\n### Contributor Covenant Code of Conduct\n\nSee [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md)\n\n### Backward Compatibility Promise\n\nSee [backward-compatibility.md](./backward-compatibility.md) for more information on Backwards Compatibility.\n\n### Changelog\n\nSee the [CHANGELOG](./CHANGELOG.md) for more information on what has changed recently.\n\n### License\n\nSee the [LICENSE](./LICENSE.md) for more information on the license that applies to this project.\n\n### Security\n\nSee [SECURITY](./SECURITY.md) for more information on the security disclosure process.\n","funding_links":["https://ko-fi.com/ericsizemore","https://github.com/sponsors/ericsizemore","https://tidelift.com/funding/github/packagist/esi/utility"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericsizemore%2Futility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericsizemore%2Futility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericsizemore%2Futility/lists"}