Download the PHP package johnstef/elorus-fuse-php without Composer

On this page you can find all versions of the php package johnstef/elorus-fuse-php. 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 elorus-fuse-php

Elorus Fuse PHP SDK

A modern, typed PHP client for the Elorus Fuse Developer API (v1.0).

Elorus Fuse is a certified e-invoicing provider that lets businesses issue, send and archive electronic invoices, receipts and other commercial documents, with transmission to the Greek myDATA platform.

This SDK wraps the Elorus Fuse Developer API with strongly-typed request/response objects (DTOs), enums for myDATA code lists, and a pluggable HTTP layer.

Features

Requirements

Installation

If you plan to use the built-in Guzzle adapter, also install Guzzle:

Quick start

Configuration

The ElorusFuse constructor accepts:

Parameter Type Required Description
apiKey string yes Your API token. Sent as Authorization: Token <apiKey>.
organizationVat string yes Default organization VAT, sent as the X-Organization header for listings.
httpClient ?HttpClientInterface no Custom HTTP client. Defaults to GuzzleHttpClient.
baseUrl ?string no API base URL. Defaults to https://api.elorusfuse.gr.

Usage

The client exposes four endpoint groups:

Accessor Covers
$client->invoices() Create, list and email invoices; fetch QR codes.
$client->providerSignatures() Request POS payment provider signatures.
$client->paymentMethods() Submit payment methods for an already-issued invoice.
$client->deliveryNotes() Cancel a delivery note.

Create an invoice

List invoices with filters

You can also fetch the raw AADE/myDATA representation as a string:

Email an invoice

Fetch invoice QR codes

POS payment provider signature

Submit payment methods

Cancel a delivery note

Error handling

All API errors throw an exception that extends ElorusFuse\Exception\ElorusFuseException:

Exception HTTP status Meaning
ValidationException 400 Field, integrity or myDATA validation failure.
AuthorizationException 403 Authentication/permission failure.
ElorusFuseException other 4xx/5xx Any other API error.

ValidationException exposes structured details so you can react to the exact failure:

Enums

The SDK ships typed enums for the myDATA code lists, including:

Each case carries the underlying myDATA value, accessible via ->value.

Custom HTTP client

To integrate with your framework's HTTP layer, implement ElorusFuse\HttpClient\HttpClientInterface:

Then pass your implementation to the client:

Development

License

Released under the MIT License.


All versions of elorus-fuse-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
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 johnstef/elorus-fuse-php contains the following files

Loading the files please wait ...