Giter Site home page Giter Site logo

zxyfaxcn / php-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from axiosleo/php-tools

0.0 1.0 0.0 306 KB

Some code snippets that are often used in PHP

Home Page: https://packagist.org/packages/axios/tools

License: MIT License

PHP 100.00%

php-tools's Introduction

PHP Tools

CI Build Status Latest Stable Version MIT

Some code snippets that are often used in PHP.

Need PHP 7.4/8.0 and above.

  • Util Class
Class Name Feature Description
SM3 SM3 crypt tool
HMac support custom algorithm with HMac
UUID generate uuid string
Path path operator
Files files operator
CRC64 tool for crc64 arithmetic
ArrayMap tool for array and map data
RSACrypt RSA crypt tool
Datetime tool for date time operation
XMLParser the parser for XML string
MimeTypes tool for MimeTypes
ListToTree convert list to tree
TreeToList convert tree to list
ForkProcess multi-process demo
PharOperator tool for build phar file
BHDConverter tool for binary conversions
CDKEYProducer tool for produce CDKEY
  • Util Functions
Function Name Description
sm3 encode string with sm3 algorithm
sm3_file encode file with sm3 algorithm
hmac encode string with hmac algorithm
halt dump some information and exit process
xml_encode convert array to xml string
xml_decode convert xml string to array
uuid generate uuid string
path_join join path string
client_ip get client ip
render_str render string with params

Install

composer require axios/tools

Usage

see Unit Test Case

License

The project is open-sourced software licensed under the MIT.

php-tools's People

Contributors

axiosleo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.