mkioschi/support 问题修复 & 功能扩展

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

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

mkioschi/support

最新稳定版本:v1.0.0

Composer 安装命令:

composer require mkioschi/support

包简介

Common support resources for clean code PHP projects.

README 文档

README

Requirements

  • PHP ^8.3

Installation

To install this module, run the following command in your terminal:

composer require mkioschi/php-types

Basic usage

$email = Email::from('email@domain.com');
echo $email->getHiddenFormat(); // Output: e***l@d********m

Common methods

Most type have at least the following common methods:

 - public static function from(...$args)
 - public static function tryFrom(...$args)
 - public static function innFrom(...$args)
 - public static function isValid(...$args)
 - public function equals($value)
 - public function getValue(...$args)
 - public function __toString(...$args)

 - parse()
 - tryParse() 

Available Types

  • Address
  • Arr
  • Boolean
  • Byte
  • Centimeter
  • Cnpj
  • Cpf
  • Domain
  • Email
  • Gram
  • Gigabyte
  • Ip
  • Kilobyte
  • Kilogram
  • Megabyte
  • Money
  • Numeric
  • Ounce
  • Password
  • Path
  • PhoneNumber
  • Pound
  • PostalCode
  • Slug
  • Str
  • Url
  • Uuid

Coming soon

  • CreditCard
  • Duration
  • Foot
  • Hour
  • Kilometer
  • Meter
  • Minute
  • Percent
  • Second
  • Temperature

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-13