{"id":18633121,"url":"https://github.com/yiranzai/php-tools","last_synced_at":"2025-04-11T07:32:03.815Z","repository":{"id":57087311,"uuid":"177061122","full_name":"yiranzai/php-tools","owner":"yiranzai","description":"php-tools, php-helper","archived":false,"fork":false,"pushed_at":"2020-03-23T06:03:37.000Z","size":35,"stargazers_count":30,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-06T19:15:30.863Z","etag":null,"topics":["helpers","php","tools"],"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/yiranzai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-22T02:53:15.000Z","updated_at":"2023-11-17T15:42:43.000Z","dependencies_parsed_at":"2022-08-24T14:59:13.277Z","dependency_job_id":null,"html_url":"https://github.com/yiranzai/php-tools","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiranzai%2Fphp-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiranzai%2Fphp-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiranzai%2Fphp-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiranzai%2Fphp-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiranzai","download_url":"https://codeload.github.com/yiranzai/php-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223460631,"owners_count":17148760,"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":["helpers","php","tools"],"created_at":"2024-11-07T05:14:23.963Z","updated_at":"2024-11-07T05:14:24.644Z","avatar_url":"https://github.com/yiranzai.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-tools\n\n[ENGLISH](docs/README.md) | [中文](docs/README_ZH_CN.md)\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](docs/LICENSE.md)\n[![Build Status][ico-travis]][link-travis]\n[![Coverage Status][ico-scrutinizer]][link-scrutinizer]\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nphp tools\n\n## Structure\n\n```\nsrc/\ntests/\n```\n\n## Install\n\nVia Composer\n\n```bash\n$ composer require yiranzai/tools\n```\n\n## Usage\n\n[More please check the user manual](docs/USER_MANUAL.md)\n\n\u003e abstract\n\n-   `Arr::class`\n    -   `\\Yiranzai\\Tools\\Arr::sortBy()` // Sorts the array with the given callback and retains the original key, support multi-column sorting.\n    -   `\\Yiranzai\\Tools\\Arr::arrSortByField()` // dyadic array sorting\n    -   `\\Yiranzai\\Tools\\Arr::arrGroup()` // Arrays are grouped by field\n    -   `\\Yiranzai\\Tools\\Arr::heapSort()` // Heap Sort\n    -   `\\Yiranzai\\Tools\\Arr::mergeSort()` // Merge Sort\n    -   `\\Yiranzai\\Tools\\Arr::quickSort()` // Quick Sort\n-   `Date::class`\n    -   `\\Yiranzai\\Tools\\Date::toCarbon()` // Generate a Carbon object\n    -   `\\Yiranzai\\Tools\\Date::timeDiffFormat()` // Output the gap between two DateTime objects\n-   `Math::class`\n    -   `\\Yiranzai\\Tools\\Math::formatDiv()` // rounding format division\n    -   `\\Yiranzai\\Tools\\Math::formatMod()` // rounded out formatted remainder (modulo operation)\n    -   `\\Yiranzai\\Tools\\Math::formatMul()` // rounding format multiplication\n    -   `\\Yiranzai\\Tools\\Math::formatSub()` // rounding format subtraction\n    -   `\\Yiranzai\\Tools\\Math::formatAdd()` // rounding up formatting addition\n    -   `\\Yiranzai\\Tools\\Math::gcd()` // Find the greatest common divisor of two numbers\n    -   `\\Yiranzai\\Tools\\Math::gcdArray()` // Find the greatest common divisor of an array\n-   `Filesystem::class`\n    -   `\\Yiranzai\\Tools\\Filesystem::put()` // Store contents in the file.\n    -   `\\Yiranzai\\Tools\\Filesystem::get()` // Get the contents of a file.\n-   `Tools::class`\n    -   `\\Yiranzai\\Tools\\Tools::getNiceFileSize()` // Humanized conversion memory information\n    -   `\\Yiranzai\\Tools\\Tools::callFunc()` // Method of calling the object\n    -   `\\Yiranzai\\Tools\\Tools::iteratorGet()` // Get an object or an array of elements\n    -   `\\Yiranzai\\Tools\\Tools::arrGet()` // Get an element in the array\n    -   `\\Yiranzai\\Tools\\Tools::objectGet()` // Get an element from the object\n-   `SnowFlake::class`\n    -   `\\Yiranzai\\SnowFlake\\SnowFlake::next()` // generate 64 bit identifier\n    -   `\\Yiranzai\\SnowFlake\\SnowFlake::analysis()` // analysis 64 bit identifier\n-   `Zval::class`\n    -   `Zval::isRef()` // Determine if two variables have a reference relationship\n\n## Change log\n\nPlease see [CHANGELOG](docs/CHANGELOG.md) for more information on what has changed recently.\n\n## Testing\n\n```bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](docs/CONTRIBUTING.md) and [CODE_OF_CONDUCT](docs/CODE_OF_CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email wuqingdzx@gmail.com instead of using the issue tracker.\n\n## Credits\n\n-   [yiranzai][link-author]\n-   [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](docs/LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/yiranzai/tools.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/yiranzai/php-tools/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/yiranzai/php-tools.svg?style=flat-square\n[ico-code-quality]: https://img.shields.io/scrutinizer/g/yiranzai/php-tools.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/yiranzai/tools.svg?style=flat-square\n[link-packagist]: https://packagist.org/packages/yiranzai/tools\n[link-travis]: https://travis-ci.org/yiranzai/php-tools\n[link-scrutinizer]: https://scrutinizer-ci.com/g/yiranzai/php-tools/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/yiranzai/php-tools\n[link-downloads]: https://packagist.org/packages/yiranzai/tools\n[link-author]: https://github.com/yiranzai\n[link-contributors]: ../../contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiranzai%2Fphp-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiranzai%2Fphp-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiranzai%2Fphp-tools/lists"}