<commit_before>ZF2 Version Module v2
=====================

A simple database versioning system for ZF2 applications.

## Installation Instructions

1. Add to `composer.json`.

```json
    "require": {
        "valorin/version": "*"
    },
```

2. Run `composer.phar install` or `composer.phar update` to install in your application.

3. Add the module name (`Valorin\Version`) to `config/application.config.php`.

```php
<?php
return array(
    // ...
    'modules' => array(
        'Application',
        // ...
        'Valorin\Version',
    ),
    // ...
);
```

4. Add the version class configuration to `config/autoload/global.php`.
Updating the `class_dir` and `class_namespace` values as required.

```php
<?php
return array(
    // ...
    'valorin' => Array(
        'version' => Array(
            'class_dir'       => __DIR__ ."/../../data/versions",
            'class_namespace' => "\Application\Version",
        ),
    ),
    // ...
);
```

5. The available commands will be exposed via the standard ZF2 console.

```
valorin@gandalf:~/zf2/$ php ./public/index.php

Version Management
  cli version status           [--verbose|-v]    Display the current version status of application.
  cli version upgrade          [--verbose|-v]    Upgrade the application to the latest version.
  cli version upgrade   NUMBER [--verbose|-v]    Upgrade the application to the specified version.
  cli version downgrade NUMBER [--verbose|-v]    Downgrade the application to the specified version.

  --verbose    (optional) Output debugging information.
```

## Licence

See [LICENCE.txt](https://github.com/valorin/ValVersion/blob/master/LICENCE.txt).<commit_msg>Updating the README.<commit_after>ZF2 Version Module v2
=====================

A simple database versioning system for ZF2 applications.

## Installation Instructions

1. Add to `composer.json`.

```json
    "require": {
        "valorin/version": "*"
    },
```

2. Run `composer.phar install` or `composer.phar update` to install in your application.

3. Add the module name (`Valorin\Version`) to `config/application.config.php`.

```php
<?php
return array(
    // ...
    'modules' => array(
        'Application',
        // ...
        'Valorin\Version',
    ),
    // ...
);
```

4. Add the version class configuration to `config/autoload/global.php`.
Updating the `class_dir` and `class_namespace` values as required.

```php
<?php
return array(
    // ...
    'valorin' => Array(
        'version' => Array(
            'class_dir'       => __DIR__ ."/../../data/versions",
            'class_namespace' => "\Application\Version",
        ),
    ),
    // ...
);
```

5. The available commands will be exposed via the standard ZF2 console.

```
valorin@gandalf:~/zf2/$ php ./public/index.php

Version Management
  index.php version status           [--verbose|-v]    Display the current version status of application.
  index.php version upgrade          [--verbose|-v]    Upgrade the application to the latest version.
  index.php version upgrade   NUMBER [--verbose|-v]    Upgrade the application to the specified version.
  index.php version downgrade NUMBER [--verbose|-v]    Downgrade the application to the specified version.

  --verbose    (optional) Output debugging information.
```

## Licence

See [LICENCE.txt](https://github.com/valorin/ValVersion/blob/master/LICENCE.txt).
{'fraction_non_alphanumeric': 0.15144302290984826, 'fraction_numerical': 0.005950609937518596, 'mean_word_length': 2.6703056768558953, 'pattern_counts': {'":': 4, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '277665', 'n_tokens_mistral': 1033, 'n_tokens_neox': 980, 'n_words': 299}