Download the PHP package code050/twinfield without Composer

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

Twinfield Build Status

A PHP library for Twinfield Integration. Use the Twinfield SOAP Service to have your PHP application communicate directly with your Twinfield account.

:warning: This library is still under construction. Version 1 is available from Composer, but we recommend you to wait for (or help with!) version 2. We hope to release it early 2018.


Installation

Install this Twinfield PHP library with Composer:

Usage

Authentication

You need to set up a \PhpTwinfield\Secure\AuthenticatedConnection class with your credentials. When using basic username and password authentication, the \PhpTwinfield\Secure\WebservicesAuthentication class should be used, as follows:

In order to use OAuth2 to authenticate with Twinfield, one should use the \PhpTwinfield\Secure\Provider\OAuthProvider to retrieve an \League\OAuth2\Client\Token\AccessToken object. Next to the OAuthProvider and AccessToken, it is required to set up a default \PhpTwinfield\Office, that will be used during requests to Twinfield. Please note: when a different office is specified when sending a request through one of the ApiConnectors, this Office will override the default.

Using this information, we can create an instance of the \PhpTwinfield\Secure\OpenIdConnectAuthentication class, as follows:

For more information about retrieving the initial AccessToken, please refer to: https://github.com/thephpleague/oauth2-client#usage

Getting data from the API

In order to communicate with the Twinfield API, you need to create an ApiConnector instance for the corresponding resource and use the get() or list() method.

The ApiConnector takes a Secure\AuthenticatedConnection object:

An example:

Creating or updating objects

If you want to create or update a customer or any other object, it's just as easy:

You can also send multiple objects in one batch, chunking is handled automatically.

Supported resources

Not all resources from the Twinfield API are currently implemented. Feel free to create a pull request when you need support for another resource.

Component get() listAll() send() Mapper
Articles :white_check_mark: :white_check_mark: :white_check_mark:
BankTransaction :white_check_mark:
Customer :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
Electronic Bank Statements :white_check_mark:
Sales Invoices :white_check_mark: :white_check_mark: :white_check_mark:
Matching :white_check_mark:
Offices :white_check_mark:
Suppliers :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
Transactions:
Purchase, Sale, Journal
:white_check_mark: :white_check_mark: :white_check_mark:
Users :white_check_mark:
Vat types :white_check_mark:

Links

Authors


All versions of twinfield with dependencies

PHP Build Version
Package Version
No informations.
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 code050/twinfield contains the following files

Loading the files please wait ....