PHP code example of digitalkreativ / php-utilities

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

    

digitalkreativ / php-utilities example snippets


use Digitalkreativ\Utilities\EmailUtils;

var_dump( EmailUtils::isEmail( '[email protected]' );

 
use Digitalkreativ\Utilities\ValidationUtils;

var_dump( ValidationUtils::isIpV4( '10.10.100.1' ) );
var_dump( ValidationUtils::isIpV6( '10.10.100.1' ) );