empaphy/usephul 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

empaphy/usephul

最新稳定版本:v1.9.0

Composer 安装命令:

composer require empaphy/usephul

包简介

Provides useful classes and functions that extend the standard functionality of PHP.

README 文档

README

Tests Quality

Usephul is a PHP library that provides useful classes and functions that extend the standard functionality of PHP.

Table of Contents

Overview

Array Functions

Attribute Functions

  • applies() — Finds whether an attribute has been applied to a given object, class, interface, or trait.

Enumerations

  • EnumDynamicity — Adds dynamicity of case names to PHP Enumerations.

Error Handling Functions

Generators

Math

  • greatest() — Finds the value that is greater than all the other values.
  • least() — Finds the value that is less than all the other values.
  • rank() — Returns the ordinal rank for a given value.

Paths

Classes:

  • PathInfo — Provides information about a file path.

Functions:

PCRE Functions

  • preg_escape() — Escapes all instances of the given PCRE delimiter character in a raw regular expression pattern.

SPL Functions

Trait Functions

  • uses() — Checks whether an object or class uses a given trait.

Types

Enums:

  • Fallback — A unit enum representing an fallback value.

Constants:

  • fallback — An alias to Fallback::default, representing a default fallback value.

Variable handling Functions

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-12