PHP code example of linelab-studio / zf2-validator-api-client
1. Go to this page and download the library: Download linelab-studio/zf2-validator-api-client 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/ */
linelab-studio / zf2-validator-api-client example snippets
'LabValidator' => [
'apiKey' => 'exampleApiKey',
'host' => 'https://localhost/validator/api'
],
public function validatorAction()
{
$form = new Form();
$form
->add([
'name' => 'email',
'type' => 'email',
'attributes' => [
' ]
]
]);
}
namespace App\Validator;
class EmailAddressValidator extends LabValidator\EmailValidator
{
public function __construct(array $config = null)
{
parent::__construct($config);
}
}