davispuh/php-utils 问题修复 & 功能扩展

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

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

davispuh/php-utils

最新稳定版本:1.0.0

Composer 安装命令:

composer require davispuh/php-utils

包简介

PHP Utils

README 文档

README

Several PHP functions. Hopefully will be useful for someone...

Table of Contents

Implemented functions

Utilities.php

  • Utilities::RemoveDoubleWhitespace($Text)
  • Utilities::ShiftLeft($Number, $Bits)
  • Utilities::ShiftRight($Number, $Bits)
  • Utilities::BitwiseOR($Number1, $Number2)
  • Utilities::BitwiseAND($Number1, $Number2)
  • Utilities::BitSet($Number, $Bit)
  • Utilities::BitClear($Number, $Bit)
  • Utilities::BitTest($Number, $Bit)
  • Utilities::GetStrVal($Number)
  • Utilities::GetIntVal($Number)
  • Utilities::GetDateTime($DateTime = NULL)
  • Utilities::ParseDateInterval(\DateInterval $DateInterval)
  • Utilities::CreateTime($Time)
  • Utilities::CreateDate($Date)
  • Utilities::FormatDateInterval($DateInterval)
  • Utilities::FormatNumber($Number, $Sep = ' ')
  • Utilities::CompareMax($Number1, $Number2)
  • Utilities::UIntersectArrayMerge($Array1, $Array2, $CompareFunction)
  • Utilities::GetValue($Array, $Value1 = NULL, $Value2 = NULL, $Value3 = NULL, $Value4 = NULL)
  • Utilities::GetOrFirst($Key, $Array)
  • Utilities::IsValidFQDN($FQDN)
  • Utilities::ParseURL($URL)
  • Utilities::ParseQuery($QueryString)
  • Utilities::GetHost($URL)
  • Utilities::QueryFirstResult($Result)
  • Utilities::NormalizeIP($IP)

Authors

Currently everything (all functions, files, text) in this repository are made by me @davispuh and I've dedicated this repository to public domain.

Unlicense

All text, documentation, code and files in this repository are in public domain (including this text, README). It means you can copy, modify, distribute and include in your own work/code, even for commercial purposes, all without asking permission.

Contribute

Feel free to improve existing functions or add new ones which might be usefull.

Warning: By sending pull request to this repository you dedicate any and all copyright interest in pull request (code files and all other) to the public domain. (files will be in public domain even if pull request doesn't get merged)

Also before sending pull request you acknowledge that you own all copyrights or have authorization to dedicate them to public domain.

If you don't want to dedicate code to public domain or if you're not allowed to (eg. you don't own required copyrights) then DON'T send pull request.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: UNLICENSE
  • 更新时间: 2013-01-21