PHPackages                             alphalabs/common - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. alphalabs/common

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

alphalabs/common
================

Toolbox which let's you play with ease with primitive types and common objects

v1.0.0(12y ago)06.8k11MITPHPPHP &gt;=5.3.3

Since Apr 23Pushed 12y ago1 watchersCompare

[ Source](https://github.com/AlphaLabs/Common)[ Packagist](https://packagist.org/packages/alphalabs/common)[ RSS](/packages/alphalabs-common/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (1)

AlphaLabs Common
================

[](#alphalabs-common)

[![Latest Stable Version](https://camo.githubusercontent.com/f7e69554ccc6fe27d87ad50c44c5057f274fb6bfa6dd7391c6bc0da01e2388db/68747470733a2f2f706f7365722e707567782e6f72672f616c7068616c6162732f636f6d6d6f6e2f762f737461626c652e706e67)](https://packagist.org/packages/alphalabs/common) [![Latest Unstable Version](https://camo.githubusercontent.com/7ae3c672706eaf80c6fef27b5b6a48c02ef6745519ede19e78780b5529d46df8/68747470733a2f2f706f7365722e707567782e6f72672f616c7068616c6162732f636f6d6d6f6e2f762f756e737461626c652e706e67)](https://packagist.org/packages/alphalabs/common) [![SensioLabsInsight](https://camo.githubusercontent.com/141d1fabe38da2a970b47479a0b903395c466de48b191eee475b89813f9c01c2/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39626137393434382d393464342d343934302d383666382d6666646463383131396333652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/9ba79448-94d4-4940-86f8-ffddc8119c3e)

> 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
------------

[](#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
-----

[](#usage)

Adds the `use` statement for the tools you want to use, and call the static methods directly:

```
