Download the PHP package vesselind/econt-integration without Composer

On this page you can find all versions of the php package vesselind/econt-integration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package econt-integration

PHP Econt Integration Library

A standalone PHP library for integrating with Econt Delivery Services API. Designed to be reusable across multiple projects and fully compatible with PHP 8.2+, Symfony 6/7/8, and any PSR-18 HTTP client.


Features


Requirements

Dependency Version
PHP >= 8.2
symfony/http-client ^6.0 \| ^7.0 \| ^8.0
psr/http-client ^1.0
psr/http-factory ^1.0
nyholm/psr7 ^1.8

Installation


Quick Start

Standalone (any PHP project)

With Any PSR-18 Client

Symfony DI Wiring


Usage

Address Service

Office Service

Delivery Routing

The delivery route is determined by which address/office fields you fill in:

Sender side Receiver side tariffSubCode
senderAddress receiverAddress DOOR_DOOR
senderAddress receiverOfficeCode DOOR_OFFICE
senderOfficeCode receiverAddress OFFICE_DOOR
senderOfficeCode receiverOfficeCode OFFICE_OFFICE

The office code is the code field from the Office model returned by getOffices().

Door-to-office (receiver picks up at an Econt office)

Office-to-office

How to find an office code


Shipment Service β€” Price Calculation

Shipment Service β€” Create & Cancel Label

Shipment Service β€” Other Operations


Model Reference

Key Models

Model Namespace Description
Country Model\Location Country with ISO codes, currency, phone code
City Model\Location City with post code, municipality, geo coords
Street Model\Location Street name (BG + EN)
Quarter Model\Location City quarter/district
Address Model\Location Full address with city, street, num, geo
ValidatedAddress Model\Location Address extended with validationStatus
Office Model\Office Econt office or Econtomat with full details
ShippingLabel Model\Shipment Complete shipment label with all parameters
ClientProfile Model\Shipment Sender or receiver contact details
ShippingLabelServices Model\Shipment Additional services (COD, insurance, SMS…)
ReturnInstructionParams Model\Shipment Return instructions configuration
PackingListElement Model\Shipment Item in a packing list
PriceResult Model\Result Calculated price with currency

Country Factory Methods

Country ships with built-in factories for the most common Econt markets:

Use them anywhere a Country instance is needed β€” for example when building a City for a request payload:

Enums

Array Serialisation

Every model supports toArray() / fromArray() using the original Econt API key names:


Exception Handling


Running Tests

Demo credentials used in integration tests: iasp-dev / 1Asp-dev against https://demo.econt.com/ee/services


Project Structure


Configuration Reference

Constant Value
EcontConfiguration::PRODUCTION_URL https://ee.econt.com/services
EcontConfiguration::DEMO_URL https://demo.econt.com/ee/services

License

MIT License. See LICENSE for details.


All versions of econt-integration with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
symfony/serializer Version ^6.0|^7.0|^8.0
symfony/property-access Version ^6.0|^7.0|^8.0
symfony/property-info Version ^6.0|^7.0|^8.0
symfony/http-client Version ^6.0|^7.0|^8.0
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/log Version ^3.0
nyholm/psr7 Version ^1.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vesselind/econt-integration contains the following files

Loading the files please wait ...