PHP code example of sonover / address

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

    

sonover / address example snippets


return [
    'modules' => [
        Sonover\Address\Providers\ModuleServiceProvider::class
    ]
];

class Contact extends Model {
    use Addressable;
}

$contact->addAddress([
    'address' => 'Example',
    'city' => 'Example City',
    'province' => 'St. George',
    'country' => 'GD',
    'postalcode' => 'GD-142'
], 'shipping');

$contact->removeAddress($address)