PHP code example of pixel418 / eloq
1. Go to this page and download the library: Download pixel418/eloq library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pixel418 / eloq example snippets
// Login form definition
$loginForm = (new Form)
->addInput('email', 'alid()) {
$email = $loginForm->email;
$password = $loginForm->password;
// Here we should log the user ;)
}
html
if (!$loginForm->isValid('email')):