Download the PHP package tcgunel/omniship-aras without Composer
On this page you can find all versions of the php package tcgunel/omniship-aras. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tcgunel/omniship-aras
More information about tcgunel/omniship-aras
Files in tcgunel/omniship-aras
Package omniship-aras
Short Description Aras Kargo carrier for Omniship shipping library
License MIT
Informations about the package omniship-aras
Omniship Aras Kargo
Aras Kargo carrier driver for the Omniship shipping library.
Installation
Usage
Initialize
Create Shipment
Integration Code & Barcodes
Per Aras Kargo requirements:
integrationCodemust be unique, minimum 6 characters, numeric onlybarcodesare auto-generated fromintegrationCode+ 2-digit piece suffix if not provided- Single piece:
integrationCode=12345678→ barcode1234567801 - Multi piece:
integrationCode=12345678→ barcodes1234567801,1234567802
You can also provide explicit barcodes (one per piece):
If a package has quantity: 3, you need 3 barcodes for that package's pieces.
Generate Labels
Aras Kargo does not provide labels — they must be designed by the integrator. The built-in label generator creates print-ready HTML labels with barcodes (via Google Fonts Libre Barcode 128).
Each package piece gets its own label with:
- Carrier name and date
- Sender name
- Receiver name, phone, address
- Payment type or COD info
- Integration code with barcode
- Piece barcode with barcode
- Piece number (e.g.
Paket: 1/3)
Custom Label Template
You can provide your own HTML template with placeholders:
Available placeholders: {{carrierName}}, {{date}}, {{senderName}}, {{receiverName}}, {{receiverPhone}}, {{receiverAddress}}, {{paymentTypeText}}, {{codLine}}, {{codDisplay}}, {{paymentDisplay}}, {{integrationCode}}, {{barcodeNumber}}, {{pieceNumber}}, {{totalPieces}}.
Raw Label Data
For full control over rendering, get LabelData objects directly:
php $response = $carrier->getTrackingStatus([ 'trackingNumber' => 'ORD-001', // your integration code ])->send();
if ($response->isSuccessful()) { $info = $response->getTrackingInfo(); echo $info->trackingNumber; echo $info->status->value; // PRE_TRANSIT, IN_TRANSIT, DELIVERED, etc. echo $info->carrier; // "Aras Kargo"
foreach ($info->events as $event) {
echo $event->description;
echo $event->occurredAt->format('Y-m-d H:i');
echo $event->location;
}
} bash vendor/bin/pest
## License
MITAll versions of omniship-aras with dependencies
tcgunel/omniship-common Version ^0.1
ext-simplexml Version *
ext-libxml Version *
picqer/php-barcode-generator Version ^3.0