<commit_before># Logikos\Forms
Form manager which extends Phalcon PHP

Please note that this is **NOT** yet a stable repo.  Once a stable release is available I will create a version tag for it.

## Installation

### Installing via Composer

Install Composer in a common location or in your project:

```bash
curl -s http://getcomposer.org/installer | php
```

create or edit the `composer.json` file as follows:

```json
{
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/logikostech/forms"
        }
    ],
    "require": {
        "logikostech/forms": "dev-master"
    }
}
```

Run the composer installer:

```bash
$ php composer.phar install
```

### Installing via GitHub

Just clone the repository in a common location or inside your project:

```
git clone https://github.com/logikostech/forms.git
```

## Autoloading

Add or register the following namespace strategy to your `Phalcon\Loader`:

```php

$loader = new Phalcon\Loader();

$loader->registerNamespaces([
    'Logikos\Forms' => '/path/to/this/repo/src/'
]);

$loader->register();
```

## Key features

### Radioset [Element](https://github.com/logikostech/forms/blob/master/src/Element/Radioset.php) and [Tag](https://github.com/logikostech/forms/blob/master/src/Tag/Radioset.php)

Added [Logikos\Forms\Element\Radioset](https://github.com/logikostech/forms/blob/master/src/Element/Radioset.php) which works like and extends [Phalcon\Forms\Element\Select](https://github.com/phalcon/cphalcon/blob/master/phalcon/forms/element/select.zep) and works the same way except that it outputs radio options instead of a select box.  Resulting radio tag option markup can be controlled by setting [Logikos\Forms\Tag\Radioset](https://github.com/logikostech/forms/blob/master/src/Tag/Radioset.php)::useRadioTemplate()<commit_msg>cleanup<commit_after># Logikos\Forms
Form manager which extends Phalcon PHP

Please note that this is **NOT** yet a stable repo.  Once a stable release is available I will create a version tag for it.

## Installation

### Installing via Composer

Install Composer in a common location or in your project:

```bash
curl -s http://getcomposer.org/installer | php
```

create or edit the `composer.json` file as follows:

```json
{
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/logikostech/forms"
        }
    ],
    "require": {
        "logikostech/forms": "dev-master"
    }
}
```

Run the composer installer:

```bash
$ php composer.phar install
```

### Installing via GitHub

Just clone the repository in a common location or inside your project:

```
git clone https://github.com/logikostech/forms.git
```

## Autoloading

Add or register the following namespace strategy to your `Phalcon\Loader`:

```php
$loader = new Phalcon\Loader();

$loader->registerNamespaces([
    'Logikos\Forms' => '/path/to/this/repo/src/'
]);

$loader->register();
```

## Key features

### Radioset [Element](https://github.com/logikostech/forms/blob/master/src/Element/Radioset.php) and [Tag](https://github.com/logikostech/forms/blob/master/src/Tag/Radioset.php)

Added [Logikos\Forms\Element\Radioset](https://github.com/logikostech/forms/blob/master/src/Element/Radioset.php) which works like and extends [Phalcon\Forms\Element\Select](https://github.com/phalcon/cphalcon/blob/master/phalcon/forms/element/select.zep) and works the same way except that it outputs radio options instead of a select box.  Resulting radio tag option markup can be controlled by setting [Logikos\Forms\Tag\Radioset](https://github.com/logikostech/forms/blob/master/src/Tag/Radioset.php)::useRadioTemplate()
{'fraction_non_alphanumeric': 0.1365001365001365, 'fraction_numerical': 0.0, 'mean_word_length': 3.964769647696477, 'pattern_counts': {'":': 10, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 14, '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': '6376229', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1153, 'n_words': 307}