2017 © Pedro PelĂĄez
 

library phormix

HTML-Form Checker

image

gueff/phormix

HTML-Form Checker

  • Thursday, February 8, 2018
  • by gueff
  • Repository
  • 1 Watchers
  • 7 Stars
  • 1,144 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Phormix

Overview

[EN], (*1)

Check HTML-Forms with Phormix, (*2)

Installation

create the composer.json file with following content:, (*3)

{
    "require": {
        "gueff/phormix":"dev-master"
    }
}

run installation, (*4)

$ composer install

Process

  • create a configuration file (JSON), which describes the later HTML form
  • Build the HTML Form
  • At backend* Phormix will check the transmitted data from the HTML form against the configuration

*Receiving Unit (Crontroller, PHP-Script o.a.), (*5)

Usage

Examples:, (*6)

// instantiate, 
// load config, run
$oPhormix = new \Phormix();
$oPhormix->init('/var/www/App/formular.json')->run();

// instantiate, 
// set different session prefix,
// load config, run
$oPhormix = new \Phormix();
$oPhormix->setSessionPrefix('myPhormixCheck')
->init('/var/www/App/formular.json')
->run();

// instantiate, 
// load config,
// set a certain identifier
// run
$oPhormix = new \Phormix();
$oPhormix->setConfigArrayFromJsonFile($sAbsPathToConfigFile)
->setIdentifier($sIdentifier)
->run();

// instantiate, 
// set a proper array as config,
// set a certain identifier
// run
$oPhormix = new \Phormix();
$oPhormix->setConfigArray($aArray)
->setIdentifier($sIdentifier)
->run();

// instantiate, 
// set different session prefix,
// set a proper array as config,
// set a certain identifier
// run
$oPhormix = new \Phormix();
$oPhormix->setSessionPrefix('myPhormixCheck')
->setConfigArray($sAbsPathToConfigFile)
->setIdentifier($sIdentifier)
->run();

[DE], (*7)

HTML-Formulare checken mit Phormix, (*8)

Installation

Erstelle die Datei composer.json mit folgendem Inhalt:, (*9)

{
    "require": {
        "gueff/phormix":"dev-master"
    }
}

FĂŒhre Installation durch, (*10)

$ composer install

Ablauf

  • Eine Konfiguration (JSON) anlegen, in der das spĂ€tere HTML-Formular beschrieben wird
  • HTML-Formular bauen
  • Im Backend* wird das gesendete HTML-Formular mitels Phormix nun gegen die Konfiguration gecheckt.

*Entgegennehmende Stelle (Crontroller, PHP-Script o.a.), (*11)

The Versions

08/02 2018

dev-master

9999999-dev http://www.phormix.de

HTML-Form Checker

  Sources   Download

GPLv3 GPL-3.0-or-later

The Requires

  • php >=5.3.0

 

by Guido K.B.W. Ueffing

php form validate sanitize