Download the PHP package mohannadnaj/smsa-sdk without Composer
On this page you can find all versions of the php package mohannadnaj/smsa-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package smsa-sdk
⚠️ SMSA Express SDK
⚠️ Deprecation Notice:
This package is deprecated and outdated. Do not use it.
Simple PHP package for integrating SMSA Web Services (SECOM).
Installation
Include the package via composer :
Use the static class SmsaSDK\Smsa
:
Background
SMSA Provides a SOAP Web Service for processing shipment-related services. SMSA Express mostly recognized on Saudi Arabia.
In PHP, integrating SMSA can be done using the built-in PHP's SoapClient. However, usually there is some caveats and issues on the process. This package helps to reduce this issues.
Features
- Each Soap service method and response is a dedicated class. Dealing with classes is easier than the magical objects generated during the runtime, at least in your code editor's opinion. (this was possible thanks to wsdl2phpgenerator).
- Validating data before submission, and meaningful messages on exceptions.
- Unified one entrypoint for all your Smsa requests, through the static class
Smsa
. - Testable.
- Easily Configurable.
Integration
As a client of SMSA, you will receive a pass key
that you will use for your operations to SMSA Web Services (SECOM).
After Including this package, set up this pass key
before initiating the first SECOM request:
Usually you want to do that in the boot
of your application.
Tip For Laravel Users
If you are using Laravel, a good place for this configuration is the AppServiceProvider
and setting the key in the .env
file.
.env:
AppServiceProvider.php
Usage Examples:
Configuration:
Add Shipment:
Unit & Integration Testing:
This package shipped with a custom SoapClient that will redirect the calls to the testing/mocked client if it's provided.
All versions of smsa-sdk with dependencies
ext-soap Version *