承接 carry0987/utils 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

carry0987/utils

最新稳定版本:1.1.1

Composer 安装命令:

composer require carry0987/utils

包简介

This Utils library provides a collection of static methods designed to help in various common tasks encountered in PHP development. From manipulating arrays and strings to handling date-time conversions and file paths, this library aims to be a handy tool for PHP developers.

README 文档

README

Packgist CI
This Utils library provides a collection of static methods designed to help in various common tasks encountered in PHP development. From manipulating arrays and strings to handling date-time conversions and file paths, this library aims to be a handy tool for PHP developers.

Features

  • Array manipulation and ordering
  • String handling and sanitization
  • Date-time formatting and conversions
  • File and directory path normalization
  • URL manipulation and redirection
  • Custom HTTP headers setting
  • Query parameter handling
  • Input validation and filtering

Installation

This library can be easily installed via Composer. Run the following command to add it to your project:

composer require carry0987/utils

Usage

Utilize the static methods provided by the Utils class in your code without instantiating the class. Here's an example on how to use the array sorting feature:

use carry0987\Utils\Utils;

$array = [
    ['id' => 3, 'name' => 'Alice'],
    ['id' => 1, 'name' => 'Charlie'],
    ['id' => 2, 'name' => 'Bob'],
];

$sortedArray = Utils::sortData($array, 'ASC', 'id');
print_r($sortedArray);

For more detailed information on each method, refer to the inline comments in the source code.

Contributing

Contributions, issues, and feature requests are welcome. Feel free to check the issues page if you want to contribute.

License

This project is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 176
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固