PHPackages                             axios/tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. axios/tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

axios/tools
===========

some tools

2.1.2(2y ago)271.3k92Apache-2.0PHPPHP &gt;=7.4CI failing

Since Apr 22Pushed 2y ago2 watchersCompare

[ Source](https://github.com/AxiosLeo/php-tools)[ Packagist](https://packagist.org/packages/axios/tools)[ Docs](https://github.com/AxiosCros/php-tools)[ RSS](/packages/axios-tools/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (3)Versions (14)Used By (2)

PHP Tools
=========

[](#php-tools)

[![CI Build Status](https://github.com/AxiosCros/php-tools/workflows/CI/badge.svg)](https://github.com/AxiosCros/php-tools/actions?query=workflow%3ACI)[![Latest Stable Version](https://camo.githubusercontent.com/f3d631a56c6bde95ce88bdb5f046bc2b2e3fc87128fa990cbdaeeb1c35a8fdb4/68747470733a2f2f706f7365722e707567782e6f72672f6178696f732f746f6f6c732f76)](//packagist.org/packages/axios/tools)[![MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)

> Some code snippets that are often used in PHP.
>
> Need PHP 7.4/8.0 and above.

- Util Class

Class NameFeature Description[SM3](./src/SM3.php)SM3 crypt tool[HMac](./src/HMac.php)support custom algorithm with HMac[UUID](./src/UUID.php)generate uuid string[Path](./src/Path.php)path operator[Files](./src/Files.php)files operator[CRC64](./src/CRC64.php)tool for crc64 arithmetic[ArrayMap](./src/ArrayMap.php)tool for array and map data[RSACrypt](./src/RSACrypt.php)RSA crypt tool[Datetime](./src/Datetime.php)tool for date time operation[XMLParser](./src/XMLParser.php)the parser for XML string[MimeTypes](./src/MimeTypes.php)tool for MimeTypes[ListToTree](./src/ListToTree.php)convert list to tree[TreeToList](./src/TreeToList.php)convert tree to list[ForkProcess](./src/ForkProcess.php)multi-process demo[PharOperator](./src/PharOperator.php)tool for build phar file[BHDConverter](./src/BHDConverter.php)tool for binary conversions[CDKEYProducer](./src/CDKEYProducer.php)tool for produce CDKEY- Util Functions

Function NameDescription[sm3](https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L28)encode string with sm3 algorithm[sm3\_file](https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L38)encode file with sm3 algorithm[hmac](https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L8)encode string with hmac algorithm[halt](https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L19)dump some information and exit process[xml\_encode](https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L48)convert array to xml string[xml\_decode](https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L55)convert xml string to array[uuid](https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L62)generate uuid string[path\_join](https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L73)join path string[client\_ip](https://github.com/AxiosCros/php-tools/blob/8f914703845099a6e91f123f31b3c0972ea3d941/funtions.php#L88)get client ip[render\_str](https://github.com/AxiosCros/php-tools/blob/3225d9b27aba6c2cc2c86756c93c4a300d4c5247/functions.php#L7)render string with paramsInstall
-------

[](#install)

```
composer require axios/tools
```

Usage
-----

[](#usage)

> see [Unit Test Case](./tests/unit/)

License
-------

[](#license)

The project is open-sourced software licensed under the [MIT](LICENSE).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~123 days

Recently: every ~310 days

Total

12

Last Release

777d ago

Major Versions

1.0.7 → 2.0.02021-02-25

PHP version history (2 changes)1.0.0PHP &gt;=7.2

2.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/423b4de06d2238d3e39bc1bed3710038b75fb705faba842d964a627d618f5e33?d=identicon)[axios](/maintainers/axios)

---

Top Contributors

[![AxiosLeo](https://avatars.githubusercontent.com/u/13862149?v=4)](https://github.com/AxiosLeo "AxiosLeo (371 commits)")

---

Tags

phpsnippetstreeuuid

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/axios-tools/health.svg)

```
[![Health](https://phpackages.com/badges/axios-tools/health.svg)](https://phpackages.com/packages/axios-tools)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
