PHP code example of mohamedhekal / shipbridge-surat
1. Go to this page and download the library: Download mohamedhekal/shipbridge-surat 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/ */
mohamedhekal / shipbridge-surat example snippets
use Hekal\ShipBridge\Facades\ShipBridge;
use Hekal\ShipBridge\DTOs\Address;
use Hekal\ShipBridge\DTOs\CreateShipmentRequest;
use Hekal\ShipBridge\DTOs\Parcel;
$shipment = ShipBridge::driver('surat')->createShipment(new CreateShipmentRequest(
origin: new Address('Depo A.Ş.', 'Organize Sanayi', 'İstanbul', 'TR', phone: '05551111111'),
destination: new Address('Ayşe Demir', 'Cumhuriyet Cad. 10', 'Ankara', 'TR', state: 'Çankaya', phone: '05559876543'),
parcels: [new Parcel(weightKg: 3.0, description: 'Kitap')],
reference: 'ORD-99',
metadata: [
'ozel_kargo_takip_no' => 'WEB-ORD99',
'cod' => 75,
'desi' => 3,
],
));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.