{"id":15030085,"url":"https://github.com/carry0987/php-utils","last_synced_at":"2025-12-25T23:23:27.859Z","repository":{"id":231460190,"uuid":"780959274","full_name":"carry0987/PHP-Utils","owner":"carry0987","description":"An invaluable PHP utility library, encompassing a versatile range of static methods for array manipulation, string handling, date-time operations, and much more, streamlined for developers.","archived":false,"fork":false,"pushed_at":"2024-07-21T14:53:15.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T03:13:33.985Z","etag":null,"topics":["php8","psr-4"],"latest_commit_sha":null,"homepage":"","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/carry0987.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-02T13:40:29.000Z","updated_at":"2024-07-21T14:52:52.000Z","dependencies_parsed_at":"2024-04-06T05:30:36.785Z","dependency_job_id":"7066b327-4c33-44d5-a77b-fd5a6a8e8585","html_url":"https://github.com/carry0987/PHP-Utils","commit_stats":null,"previous_names":["carry0987/php-utils"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carry0987%2FPHP-Utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carry0987%2FPHP-Utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carry0987%2FPHP-Utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carry0987%2FPHP-Utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carry0987","download_url":"https://codeload.github.com/carry0987/PHP-Utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243147107,"owners_count":20243746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["php8","psr-4"],"created_at":"2024-09-24T20:12:24.290Z","updated_at":"2025-12-25T23:23:27.854Z","avatar_url":"https://github.com/carry0987.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP-Utils\n[![Packgist](https://img.shields.io/packagist/v/carry0987/utils.svg?style=flat-square)](https://packagist.org/packages/carry0987/utils)\n![CI](https://github.com/carry0987/PHP-Utils/actions/workflows/CI.yml/badge.svg)  \nThis Utils library provides a collection of static methods designed to help in various common tasks encountered in PHP development. From manipulating arrays and strings to handling date-time conversions and file paths, this library aims to be a handy tool for PHP developers.\n\n## Features\n- Array manipulation and ordering\n- String handling and sanitization\n- Date-time formatting and conversions\n- File and directory path normalization\n- URL manipulation and redirection\n- Custom HTTP headers setting\n- Query parameter handling\n- Input validation and filtering\n\n## Installation\nThis library can be easily installed via Composer. Run the following command to add it to your project:\n\n```bash\ncomposer require carry0987/utils\n```\n\n## Usage\nUtilize the static methods provided by the `Utils` class in your code without instantiating the class. Here's an example on how to use the array sorting feature:\n\n```php\nuse carry0987\\Utils\\Utils;\n\n$array = [\n    ['id' =\u003e 3, 'name' =\u003e 'Alice'],\n    ['id' =\u003e 1, 'name' =\u003e 'Charlie'],\n    ['id' =\u003e 2, 'name' =\u003e 'Bob'],\n];\n\n$sortedArray = Utils::sortData($array, 'ASC', 'id');\nprint_r($sortedArray);\n```\n\nFor more detailed information on each method, refer to the inline comments in the source code.\n\n## Contributing\nContributions, issues, and feature requests are welcome. Feel free to check the issues page if you want to contribute.\n\n## License\nThis project is open-sourced software licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarry0987%2Fphp-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarry0987%2Fphp-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarry0987%2Fphp-utils/lists"}