PHP code example of componenta / email
1. Go to this page and download the library: Download componenta/email 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/ */
componenta / email example snippets
use Componenta\Stdlib\Email;
$email = Email::fromString('[email protected]');
(string) $email; // "[email protected]"
$email->local; // "ada"
$email->domain; // "example.com"
$email->isFromDomain('example.com'); // true
$email->masked(); // "ad*@example.com"