Download the PHP package hairacless/sephpa without Composer

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

Sephpa - A PHP class to export SEPA files

Build Status Latest Stable Version Total Downloads License Gitter

General

Sephpa [sefa] is a PHP class that creates SEPA XML files. The created XML files fulfill the specifications of Electronic Banking Internet Communication Standard (EBICS).

Supported file versions

Requirements

Sephpa was created for PHP 5.6, 7.0, 7.1, 7.2 and HHVM and requires SepaUtilities 1.2.4+ and SimpleXML. Sephpa should also work with PHP <5.6, but since this versions are very old and don't get any security updates, it is strongly recommended not to use PHP older than 5.6.

If you want to download correctly sorted files, you also need the zip library and for documentation files you need SepaDocumentor.

Installation

Composer

Just add

to your composer.json and include the Composer autoloader to your script.

Direct download

You can download Sephpa from this GitHub page. Make sure you also download SepaUtilities. You should store the files in a structure that looks like this:

In your code you can include the Sephpa autoloader by including the file

You also need to include the SepaUtilities file which should be

In total your code should look something like this:

You need to define PROJECT_ROOT by yourself.

Documentation Module

Sephpa uses SepaDocumentor to create File Routing Slips and Control Lists. If you are interested in this files you need to add

to your composer file or download it from the website and make it available to Sephpa.

Creating a new SEPA file

Note: This is not meant to teach you SEPA. If you want to learn more about SEPA or SEPA files, you should ask your bank for help. You use this library at your own risk and I assume no liability if anything goes wrong. You are supposed to check the files before handing them to your bank.

Credit Transfer

You can create a new Sephpa object by using:

You have to input the initiator name, the unique message id and the version of the file. The message id have to be unique for all sepa files you hand over to your bank. This is one of the things Sephpa will not check for you. Currently supported credit transfer versions are:

If you don't know which version to choose, ask your bank which versions they do accept. Normally banks are not the fastest and so they will most likely accept the older one.

By default checkAndSanitize is set to true, which means that Sephpa will check and sanitize every input it self and throw exceptions if something can not be sanitized. This sounds nagging but if you turn off this checks and just ignore the exceptions your bank will not accept the files. But it is recommended to check all inputs at input time (using SepaUtilities) and then only add valid data. Then you can turn off checkAndSanitize to prevent double checking everything.

Once you created the SephpaCreditTransfer object, you can add a payment collection. You can add as many payment collections as you like.

You can add as many payments as you want to each collection.

Direct Debits

Direct debits work the same way as credit transfers, but they have little different inputs.

Note: With pain.008.001.02 the key orgnlDbtrAgt is no longer available. It got replaced with orgnlDbtrAgt_bic and you can input the old BIC. But in general it looks like you just can omit both orgnlDbtrAcct_iban and orgnlDbtrAgt_bic and it should work.

Get the SEPA and documentation file(s)

After you have added some payments to your payment collection you can save the finished file by

or get it directly without saving it on the server by

Notice that you can hand over a filename you like, but you should only use the file extension
.xml. You can also use an array of options to include file routing slips and control lists.

You need libzip to be installed if you want to store or download multiple files at once.

Credits

Thanks to Hermann Herz who supported me debugging and with great ideas to improve Sephpa and SepaUtilities.

License

Licensed under the LGPL v3.0 License.


All versions of sephpa with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
ext-xml Version *
abcaeffchen/sepa-utilities Version ~1.2.5
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 hairacless/sephpa contains the following files

Loading the files please wait ....