Download the PHP package mofeier/tools without Composer

On this page you can find all versions of the php package mofeier/tools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tools

PHP通用工具包

一个简洁、高效、功能丰富的PHP通用工具包,为项目开发提供基础功能支持。

功能特点

系统要求

安装

使用示例

1. 消息体处理(Message类)

统一API返回格式,支持链式调用和静态调用。

基础使用

链式调用

扩展字段

字段映射(替换默认字段名)

格式转换

独立方法调用

2. 状态码管理(StatusCodes类)

统一管理系统状态码和对应消息提示。

3. 工具函数(Utils类)

提供各种实用工具方法,所有工具函数均以util_开头。

数组操作

字符串处理

编码解码

加密解密工具方法

许可证生成

安全工具

4. 安全加密(Security类)

提供多种加密方式,支持OpenSSL和Sodium引擎。

5. 高精度数学计算(Maths类)

提供高精度数学计算功能,适用于金融计算等场景。

6. Facade模式使用

Facade模式提供了更简洁的调用方式,类似于Laravel和ThinkPHP的Facade体验。

基础使用

链式调用与Facade

静态方法直接调用

架构设计

目录结构

命名规范

错误处理

所有方法都包含适当的错误处理机制,对于关键操作会抛出异常,方便进行错误追踪和调试。

测试

运行测试:

贡献

欢迎提交Issue和Pull Request来帮助改进这个工具包。

许可证

本项目采用 Apache 2.0开源许可证。


All versions of tools with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mofeier/tools contains the following files

Loading the files please wait ...