2017 © Pedro Peláez
 

library eloq

Eloq is a cute tool to validate & sanitize a form

image

pixel418/eloq

Eloq is a cute tool to validate & sanitize a form

  • Wednesday, June 17, 2015
  • by Pixel418
  • Repository
  • 0 Watchers
  • 2 Stars
  • 363 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Eloq Build Status

Eloq is a PHP library to improve the security & the data validation of user forms.
It also improves code readability by separating the forms definition and treatment., (*1)

  1. Let's code
  2. How to Install
  3. How to Contribute
  4. Author & Community

Let's code

// Login form definition
$loginForm = (new Form)
    ->addInput('email', 'required|email|validate_email')
    ->addInput('password', 'required');

// Treatment
if ($loginForm->isValid()) {
    $email = $loginForm->email;
    $password = $loginForm->password;
    // Here we should log the user ;)
}

```html isValid('email')): ?> , (*2)

= $loginForm->getInputErrorMessage('email') ?>

isValid('password')): ?> , (*3)

= $loginForm->getInputErrorMessage('password') ?>

[↑ top](#readme) How to Install -------- If you don't have composer, you have to [install it](http://getcomposer.org/doc/01-basic-usage.md#installation). Add or complete the composer.json file at the root of your project, like this : ```json { "require": { "pixel418/eloq": "0.2.*" } }

Eloq can now be downloaded via composer., (*4)

Lastly, to use it in your PHP, you can load the composer autoloader :, (*5)

require_once( './vendor/autoload.php' );

↑ top, (*6)

How to Contribute

  1. Fork the Eloq repository
  2. Create a new branch for each feature or improvement
  3. Send a pull request from each feature branch to the develop branch

If you don't know much about pull request, you can read the Github article., (*7)

All pull requests must follow the PSR2 standard and be accompanied by passing phpunit tests., (*8)

↑ top, (*9)

Author & Community

Eloq is under the MIT License. It is created and maintained by Thomas ZILLIOX., (*10)

↑ top, (*11)

The Versions

17/06 2015

dev-master

9999999-dev https://github.com/Pixel418/Eloq

Eloq is a cute tool to validate & sanitize a form

  Sources   Download

MIT

The Requires

 

form

17/06 2015

dev-develop

dev-develop https://github.com/Pixel418/Eloq

Eloq is a cute tool to validate & sanitize a form

  Sources   Download

MIT

The Requires

 

form

17/06 2015

v0.2.2

0.2.2.0 https://github.com/Pixel418/Eloq

Eloq is a cute tool to validate & sanitize a form

  Sources   Download

MIT

The Requires

 

form

27/05 2013

v0.2.1

0.2.1.0 https://github.com/Pixel418/Eloq

Eloq is a cute tool to validate & sanitize a form

  Sources   Download

MIT

The Requires

 

form

07/05 2013

v0.2.0

0.2.0.0 https://github.com/Pixel418/Eloq

Eloq is a cute tool to validate & sanitize a form

  Sources   Download

MIT

The Requires

 

form

26/03 2013

v0.1.2

0.1.2.0 https://github.com/Pixel418/Eloq

Eloq is a cute tool to validate & sanitize a form

  Sources   Download

MIT

The Requires

 

form

24/03 2013

v0.1.1

0.1.1.0 https://github.com/Pixel418/Eloq

Eloq is a cute tool to validate & sanitize a form

  Sources   Download

MIT

The Requires

 

form

24/03 2013

v0.1.0

0.1.0.0 https://github.com/Pixel418/Eloq

Eloq is a cute tool to validate & sanitize a form

  Sources   Download

MIT

The Requires

 

form