<commit_before># PHP utils

Collection of useful PHP utils.

[![Build Status](https://travis-ci.org/misantron/php-utils.svg?branch=master)](https://travis-ci.org/misantron/php-utils)
[![Code Coverage](http://img.shields.io/coveralls/misantron/php-utils.svg)](https://coveralls.io/r/misantron/php-utils)

## Features

- Contains Array, String and Time utilities.
- Work with PHP version >= 5.3.3 (HHVM is not tested)
- Base encoding - UTF-8
- PSR-0 auto loading standard compatible.

## Server requirements

- PHP version >= 5.3.3.
- PHP mbstring extension.

## External dependencies

- [Slugify](https://github.com/cocur/slugify) library

## Installation

You can install library through [Composer](https://getcomposer.org):

```shell
$ composer require misantron/php-utils
```

## Simple usage example

```php
use Utility\UArray;

$array = array(
    array('name' => 'Alex', 'age' => 25),
    array('name' => 'Sara', 'age' => 21),
    array('name' => 'John', 'age' => 28)
);

$result = UArray::extractColumn($array, 'age');

var_dump($result);

array(
    25,
    21,
    28
);
```<commit_msg>README.md badges update<commit_after># PHP utils

[![Build Status](http://img.shields.io/travis/misantron/php-utils.svg?style=flat-square)](https://travis-ci.org/misantron/php-utils)
[![Code Coverage](http://img.shields.io/coveralls/misantron/php-utils.svg?style=flat-square)](https://coveralls.io/r/misantron/php-utils)
[![GitHub Release](http://img.shields.io/github/release/misantron/php-utils.svg?style=flat-square)](https://github.com/misantron/php-utils)
[![Packagist Version](http://img.shields.io/packagist/v/misantron/php-utils.svg?style=flat-square)](https://packagist.org/packages/misantron/php-utils)

## Features

- Contains Array, String and Time utilities.
- Work with PHP version >= 5.3.3 (HHVM is not tested)
- Base encoding - UTF-8
- PSR-0 auto loading standard compatible.

## Server requirements

- PHP version >= 5.3.3.
- PHP mbstring extension.

## External dependencies

- [Slugify](https://github.com/cocur/slugify) library

## Installation

You can install library through [Composer](https://getcomposer.org):

```shell
$ composer require misantron/php-utils
```

## Simple usage example

```php
use Utility\UArray;

$array = array(
    array('name' => 'Alex', 'age' => 25),
    array('name' => 'Sara', 'age' => 21),
    array('name' => 'John', 'age' => 28)
);

$result = UArray::extractColumn($array, 'age');

var_dump($result);

array(25, 21, 28);
```
{'fraction_non_alphanumeric': 0.18608414239482202, 'fraction_numerical': 0.016181229773462782, 'mean_word_length': 4.411378555798687, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 11, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1232734', 'n_tokens_mistral': 926, 'n_tokens_neox': 868, 'n_words': 174}