PHP code example of fusonic / assert
1. Go to this page and download the library: Download fusonic/assert 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/ */
fusonic / assert example snippets
Assert::that('User', 'username', $username)->notEmpty()->length(10);
Assert::lazy('User')
->that($username, 'username')
->notEmpty()
->that($password, 'password')
->minLength(8)
->maxLength(30)
->verifyNow();