2017 © Pedro PelĂĄez
 

library php-utils

A collection of PHP utility classes.

image

misantron/php-utils

A collection of PHP utility classes.

  • Wednesday, July 6, 2016
  • by misantron
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

PHP utils

Build Status Code Coverage Code Climate Latest Release, (*1)

Features

  • Contains Array, String and Time helper utilities.
  • Base encoding - UTF-8
  • PSR-4 auto loading standard compatible.

Server requirements

  • PHP version >= 5.4.
  • MBString PHP extension.
  • OpenSSL PHP extension.

External dependencies

Installing

The preferred way to install is through Composer. Run this command to install the latest stable version:, (*2)

$ composer require misantron/php-utils

or add, (*3)

"misantron/php-utils": "dev-master"

to the require section of your composer.json., (*4)

Basic usage examples

use Utility\UArray;  
use Utility\UString;  
use Utility\UTime;

$array = [  
    ['name' => 'Alex', 'age' => 25],  
    ['name' => 'Sara', 'age' => 21],  
    ['name' => 'John', 'age' => 28]  
];  
$string = '..C’est du français !';  
$date1 = new \DateTime('2015-02-26 13:05');  
$date2 = new \DateTime('2015-02-26 22:16');  

$result1 = UArray::extractColumn($array, 'age');  
$result2 = UString::slug($string);  
$result3 = UTime::secondsDiff($date1, $date2);

var_dump($result1, $result2, $result3);

[25, 21, 28];  
'c-est-du-francais';  
33060;

The Versions

06/07 2016

dev-master

9999999-dev https://github.com/misantron/php-utils

A collection of PHP utility classes.

  Sources   Download

MIT

The Requires

 

The Development Requires

php array string datetime utilities

24/06 2015

2.0.0

2.0.0.0 https://github.com/misantron/php-utils

A collection of PHP utility classes.

  Sources   Download

MIT

The Requires

 

The Development Requires

php array string datetime utilities

11/06 2015

1.2.0

1.2.0.0 https://github.com/misantron/php-utils

A collection of PHP utility classes.

  Sources   Download

MIT

The Requires

 

The Development Requires

php array string datetime utilities

25/05 2015

1.1.1

1.1.1.0 https://github.com/misantron/php-utils

A collection of PHP utility classes.

  Sources   Download

MIT

The Requires

 

The Development Requires

php array string datetime utilities

10/03 2015

1.1.0

1.1.0.0 https://github.com/misantron/php-utils

A collection of PHP utility classes.

  Sources   Download

MIT

The Requires

 

The Development Requires

php array string datetime utilities

02/03 2015

1.0.0

1.0.0.0 https://github.com/misantron/php-utils

A collection of PHP utility classes.

  Sources   Download

MIT

The Requires

 

The Development Requires

php array string datetime utilities

25/02 2015

v0.9.0

0.9.0.0 https://github.com/misantron/php-utils

Collection of useful PHP utils.

  Sources   Download

MIT

The Requires

 

The Development Requires

helpers php array utility string