2017 © Pedro Peláez
 

library common

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

image

alphalabs/common

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

  • Wednesday, April 23, 2014
  • by Swop
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6,764 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

AlphaLabs Common

Latest Stable Version Latest Unstable Version SensioLabsInsight, (*1)

Toolbox which let's you play with ease with primitive types and common objects, (*2)

This library offers some tools to deal with some primitives and/or some common objects., (*3)

For the moment, few tools are provided for the following types:, (*4)

  • Numbers: Intergers, floats...
  • Strings: Detect slug patterns...

Installation

Adds the library in your composer.json file:, (*5)

"require": {
    "alphalabs/common": "1.0@dev"
}

Don't forget to update your dependencies with composer update, (*6)

Usage

Adds the use statement for the tools you want to use, and call the static methods directly:, (*7)

<?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, (*8)

The Versions

23/04 2014

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

common utils tools

23/04 2014

v1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

common utils tools