PHP code example of guil95 / vos

1. Go to this page and download the library: Download guil95/vos 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/ */

    

guil95 / vos example snippets

 

namespace MyNamespace;

use Guil95\Vos;

$email = new Email('invalidEmail'); // throws VoInvalidException
$email = new Email('[email protected]'); // $email->getvalue() returns [email protected]

$name = new Name('Name%$invalid Ch4aract8er'); // $name->getValue() returns Nameinvalid Character
$name = new Name('Name Gui'); // $name->getValue() returns Name Gui