alphalabs/common
Composer 安装命令:
composer require alphalabs/common
包简介
Toolbox which let's you play with ease with primitive types and common objects
README 文档
README
Toolbox which let's you play with ease with primitive types and common objects
This library offers some tools to deal with some primitives and/or some common objects.
For the moment, few tools are provided for the following types:
- Numbers: Intergers, floats...
- Strings: Detect slug patterns...
Installation
Adds the library in your composer.json file:
"require": { "alphalabs/common": "1.0@dev" }
Don't forget to update your dependencies with composer update
Usage
Adds the use statement for the tools you want to use, and call the static methods directly:
<?php namespace Foo\Bar; use AlphaLabs\Common\Number\Number; class MyClass { public function foo() { $number = "-3"; Number::isStrictlyPositiveInteger($number) // False } }
To come
- Collections
- (propose your ideas)
Credits
- Sylvain Mauduit (@Swop)
License
MIT
统计信息
- 总下载量: 6.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-11-11