<commit_before>debver - Debian/Ubuntu packager version helper
==============================================
*Version 1.1*  [![Build Status](https://secure.travis-ci.org/valorin/debver.png)](http://travis-ci.org/valorin/debver)

Simple PHP helper class for working with Debian/Ubuntu package version strings.

Installing
----------

The easiest way to install **Debver** is to use [Composer](http://getcomposer.org/download/), the awesome dependency manager for PHP. Once Composer is installed, run `composer.phar require valorin/debver:1.*` and composer will do all the hard work for you.

Usage
-----

If you are using the autoloader in Composer (or your framework ties into it), then all you need to do is add a `use Debver\Version;` statement at the top of each file you wish to use **Debver** in and us e it like a normal class:

```php
<?php
namespace YourApplication;
use Debver\Version;

$version1 = "5.1.2-1ubuntu3.9";
$version2 = "3.9.4-4ubuntu0.2";

$compare = Version::compare($version1, $version2);
```

**Compare two version strings:**<commit_msg>Incrementing version to 1.2.<commit_after>debver - Debian/Ubuntu packager version helper
==============================================
*Version 1.2*  [![Build Status](https://secure.travis-ci.org/valorin/debver.png)](http://travis-ci.org/valorin/debver)

Simple PHP helper class for working with Debian/Ubuntu package version strings.

Installing
----------

The easiest way to install **Debver** is to use [Composer](http://getcomposer.org/download/), the awesome dependency manager for PHP. Once Composer is installed, run `composer.phar require valorin/debver:1.*` and composer will do all the hard work for you.

Usage
-----

If you are using the autoloader in Composer (or your framework ties into it), then all you need to do is add a `use Debver\Version;` statement at the top of each file you wish to use **Debver** in and us e it like a normal class:

```php
<?php
namespace YourApplication;
use Debver\Version;

$version1 = "5.1.2-1ubuntu3.9";
$version2 = "3.9.4-4ubuntu0.2";

$compare = Version::compare($version1, $version2);
```

**Compare two version strings:**
{'fraction_non_alphanumeric': 0.1665886757136172, 'fraction_numerical': 0.018717828731867104, 'mean_word_length': 4.538860103626943, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5945228', 'n_tokens_mistral': 683, 'n_tokens_neox': 633, 'n_words': 240}