1. Go to this page and download the library: Download masterix21/laravel-contacts 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/ */
$user->contacts; // every contact
$user->emails; // only contacts with a non-null email
$user->phones; // only contacts with a non-null phone
$user->mobiles; // only contacts with a non-null mobile
$user->websites; // only contacts with a non-null website