Download the PHP package metabytes-sro/epost-api without Composer

On this page you can find all versions of the php package metabytes-sro/epost-api. 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 epost-api

E-POSTBUSINESS API V2 PHP integration

Build Status Latest Version on Packagist [Software License]() Dependency Status

This package provides an PHP integration of the E-POSTBUSINESS API.

Install

Via Composer

For new implementations, I recommend to start with v0.10.x-dev.

Usage

Authenticate user

First of all you have to fetch an AccessToken instance by authenticating the user. I recommend to use this OAuth2 Provider for fetching the access token.

Provide metadata

Envelope

We're going big steps forward and create a Letter instance. The Letter collects all metadata (envelope, delivery options…), creates a letter draft on the E-POST portal and finally sends the letter.

Recipients

We created our envelope and we need to add the recipients. This is how for an electronic letter.

And this is how for a printed letter. For printed letters, only one recipient is valid!

Delivery options

We also define DeliveryOptions as they define whether the letter is going to be colored and so on. This is for printed letters only.

Finishing

We're going to start the communication with the E-POST portal.

Fetch postage info

If you wonder how expensive the letter is going to be.

Case 1: You already defined a letter with envelope and so on:

Case 2: You need to provide PostageInfo:

Delete letters

If you already have a Letter instance, deleting is that easy:

Otherwise you need to know the letterId.

delete() will delete the letter irrecoverably on the E-POST portal. You have to possibility to use moveToTrash() otherwise.

License

The GNU Lesser General Public License (LGPL).

Contributing

Please follow the Symfony Coding Standards.

Beispiel-Konzept

Dieses Konzept erklärt die verschiedenen Komponenten, die im Rahmen einer E-POSTBUSINESS-Integration für das CMS Contao genutzt wurden.

Konzept


All versions of epost-api with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
guzzlehttp/guzzle Version ^6.0
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 metabytes-sro/epost-api contains the following files

Loading the files please wait ....