PHP code example of 3neti / contact

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

    

3neti / contact example snippets


loadMigrationsFrom()

use LBHurtado\Contact\Models\Contact;

$contact = Contact::create([
    'mobile' => '09171234567',
    'country' => 'PH',
]);

$contact->mobile;

$contact->bank_account = 'BPI:1234567890';

$contact->bank_code;      
$contact->account_number;

$contact->name = 'Juan Dela Cruz';
$contact->email = '[email protected]';

$contact->save();

$contact->kyc_status = 'approved';

$contact->isKycApproved();
$contact->needsKyc();

$contact->recipients();

Contact::fromWebhookSender($payload);

use LBHurtado\Contact\Data\ContactData;

ContactData::fromModel($contact);
bash
php artisan vendor:publish --tag=config
bash
php artisan migrate