{"id":19696259,"url":"https://github.com/axiosleo/php-tools","last_synced_at":"2025-04-29T11:32:00.127Z","repository":{"id":46604630,"uuid":"89206055","full_name":"AxiosLeo/php-tools","owner":"AxiosLeo","description":"Some code snippets that are often used in PHP","archived":false,"fork":false,"pushed_at":"2024-04-02T08:03:03.000Z","size":355,"stargazers_count":28,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T04:43:05.313Z","etag":null,"topics":["php","snippets","tree","uuid"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/axios/tools","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/AxiosLeo.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":"2017-04-24T06:38:32.000Z","updated_at":"2025-04-16T02:01:49.000Z","dependencies_parsed_at":"2024-06-01T01:56:29.774Z","dependency_job_id":"e0cfdcac-646b-4c45-b9b4-6a9ac17f8d12","html_url":"https://github.com/AxiosLeo/php-tools","commit_stats":{"total_commits":363,"total_committers":6,"mean_commits":60.5,"dds":0.2892561983471075,"last_synced_commit":"7578c7f68572fb8a9d45980ae5af3d4b5ba2b783"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxiosLeo%2Fphp-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxiosLeo%2Fphp-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxiosLeo%2Fphp-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxiosLeo%2Fphp-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AxiosLeo","download_url":"https://codeload.github.com/AxiosLeo/php-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251493968,"owners_count":21598205,"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":["php","snippets","tree","uuid"],"created_at":"2024-11-11T19:34:26.151Z","updated_at":"2025-04-29T11:31:58.254Z","avatar_url":"https://github.com/AxiosLeo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Tools\n\n[![CI Build Status](https://github.com/AxiosCros/php-tools/workflows/CI/badge.svg)](https://github.com/AxiosCros/php-tools/actions?query=workflow%3ACI)\n[![Latest Stable Version](https://poser.pugx.org/axios/tools/v)](//packagist.org/packages/axios/tools)\n[![MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n\n\u003e Some code snippets that are often used in PHP.\n\u003e \n\u003e Need PHP 7.4/8.0 and above.\n\n- Util Class\n\n| Class Name                               | Feature Description                |\n| :--------------------------------------- | :--------------------------------- |\n| [SM3](./src/SM3.php)                     | SM3 crypt tool                     |\n| [HMac](./src/HMac.php)                   | support custom algorithm with HMac |\n| [UUID](./src/UUID.php)                   | generate uuid string               |\n| [Path](./src/Path.php)                   | path operator                      |\n| [Files](./src/Files.php)                 | files operator                     |\n| [CRC64](./src/CRC64.php)                 | tool for crc64 arithmetic          |\n| [ArrayMap](./src/ArrayMap.php)           | tool for array and map data        |\n| [RSACrypt](./src/RSACrypt.php)           | RSA crypt tool                     |\n| [Datetime](./src/Datetime.php)           | tool for date time operation       |\n| [XMLParser](./src/XMLParser.php)         | the parser for XML string          |\n| [MimeTypes](./src/MimeTypes.php)         | tool for MimeTypes                 |\n| [ListToTree](./src/ListToTree.php)       | convert list to tree               |\n| [TreeToList](./src/TreeToList.php)       | convert tree to list               |\n| [ForkProcess](./src/ForkProcess.php)     | multi-process demo                 |\n| [PharOperator](./src/PharOperator.php)   | tool for build phar file           |\n| [BHDConverter](./src/BHDConverter.php)   | tool for binary conversions        |\n| [CDKEYProducer](./src/CDKEYProducer.php) | tool for produce CDKEY             |\n\n- Util Functions\n\n| Function Name            | Description                            |\n| :----------------------- | :------------------------------------- |\n| [sm3][sm3]               | encode string with sm3 algorithm       |\n| [sm3_file][sm3_file]     | encode file with sm3 algorithm         |\n| [hmac][hmac]             | encode string with hmac algorithm      |\n| [halt][halt]             | dump some information and exit process |\n| [xml_encode][xml_encode] | convert array to xml string            |\n| [xml_decode][xml_decode] | convert xml string to array            |\n| [uuid][uuid]             | generate uuid string                   |\n| [path_join][path_join]   | join path    string                    |\n| [client_ip][client_ip]   | get client ip                          |\n| [render_str][render_str] | render string with params              |\n\n## Install\n\n```bash\ncomposer require axios/tools\n```\n\n## Usage\n\n\u003e see [Unit Test Case](./tests/unit/)\n\n## License\n\nThe project is open-sourced software licensed under the [MIT](LICENSE).\n\n[sm3]: https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L28\n\n[sm3_file]: https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L38\n\n[hmac]: https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L8\n\n[halt]: https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L19\n\n[xml_encode]: https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L48\n\n[xml_decode]: https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L55\n\n[uuid]: https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L62\n\n[path_join]: https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L73\n\n[client_ip]: https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L88\n\n[render_str]: https://github.com/AxiosCros/php-tools/blob/3225d9b27aba6c2cc2c86756c93c4a300d4c5247/functions.php#L7\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxiosleo%2Fphp-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxiosleo%2Fphp-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxiosleo%2Fphp-tools/lists"}