PHP code example of wander4747 / correios-crawler

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

    

wander4747 / correios-crawler example snippets




use Correios\Tracking;
use Correios\Zip;
use Correios\Sms;

//parameter: tracking code
$tracking = new Tracking('PW950125025BR');
echo $tracking->find();

//parameter: address or zip
$zip = new Zip('Avenida Paulista');
echo $zip->find();

//parameter: tracking code, cell sender, recipient cell
$sms = new Sms('PW950125025BR','(31) 99332-6095', '(31) 99332-6096');
$sms->send();