Skip to content

logikostech/forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logikos\Forms

Form manager which extends Phalcon PHP

Installation

Installing via Composer

Install Composer in a common location or in your project:

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

create or edit the composer.json file as follows:

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

Run the composer installer:

$ 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:

$loader = new Phalcon\Loader();

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

$loader->register();

Key features

Wrapper for Phalcon\Forms\Form which adds some additional features.

Radioset Element and Tag

Added Logikos\Forms\Element\Radioset which works like and extends Phalcon\Forms\Element\Select 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::useRadioTemplate()

Phalcon plugin to query selectbox options. Works well as a backend to select2. docs/SelectOptions.md contains basic usage information.