1. Go to this page and download the library: Download mohamedhekal/shipbridge-mng 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-mng 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('mng')->createShipment(new CreateShipmentRequest(
origin: new Address('Depo', 'Sanayi Cd 1', 'İstanbul', 'TR', phone: '05551111111'),
destination: new Address('Ali Yılmaz', 'Atatürk Mah. No:5', 'Adana', 'TR', state: 'Seyhan', phone: '05551234567', email: '[email protected]'),
parcels: [new Parcel(weightKg: 2.0, description: 'Ayakkabı')],
reference: 'ORD-42',
metadata: [
'city_code' => 1,
'district_code' => 100,
'cod' => 150,
'desi' => 2,
],
));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.