Download the PHP package byrokrat/autogiro without Composer

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

Autogiro

Packagist Version Build Status Quality Score

Read and write files for the swedish direct debit system autogirot.

For a command line utility that can convert autogiro files to XML see autogiro2xml.

Installation

Table of contents

  1. Autogiro specifications
  2. Generating autogiro request files
  3. Parsing autogiro files
  4. Accessing nodes using visitors
  5. Generating XML from node trees
  6. Hacking

Autogiro specifications

This library is developed against the technichal manual (in swedish) of the direct debit system (autogirot) revised 2016-12-13. For later versions of this document see Bankgirocentralen.

Generating autogiro request files

Create a writer by supplying your bankgiro account number and BGC customer number to WriterFactory.

Perform actions on the writer and generate file.

Will output something like:

Parsing autogiro files

Create a parser using the ParserFactory.

The created parser will by default parse and validate monetary amounts, account numbers and identification numbers. Opt out of this functionality by using one of the visitor constants:

Parsing a file creates a node object.

Accessing special objects

Account, Amount, StateId and Date nodes are nested structures, where child node Object contains constructed php objects. Access using something like:

Walking the parse tree

A simpler way of doing this is by using visitors. See below.

Walk the tree by calling hasChild(), getChild() and getChildren().

Or access all Node::DELETE_MANDATE_REQUEST nodes.

Trying to access a child that does not exist returns a NullNode.

Accessing nodes using visitors

With the use of visitors nodes can be accessed based on name or type.

This can also be done dynamically.

Finding mandate responses

Finding payment responses

Generating XML from node trees

Using this feature can be very helpful to understand how the parser interprets various layouts.

Hacking

With composer installed as composer

Or use something like


All versions of autogiro with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3 || ^8.0
ext-mbstring Version *
ext-bcmath Version *
byrokrat/banking Version ^2.1
byrokrat/id Version ^2
moneyphp/money Version ^3
neitanod/forceutf8 Version ~2.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 byrokrat/autogiro contains the following files

Loading the files please wait ....