Download the PHP package pronamic/twinfield without Composer
On this page you can find all versions of the php package pronamic/twinfield. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pronamic/twinfield
More information about pronamic/twinfield
Files in pronamic/twinfield
Package twinfield
Short Description Library for using the Twinfield Soap Service
License GPL
Homepage http://pronamic.nl
Informations about the package twinfield
[DEPRECATED] Twinfield
This library is moved to https://github.com/php-twinfield/twinfield.
A PHP library for Twinfield Integration. Developed by Remco Tolsma and Leon Rowland from Pronamic. Use the Twinfield SOAP Service to have your PHP application communicate directly with your Twinfield account.
Autoloading
The classes follow the PSR2 naming convention.
Usage
General Usage Information
Components will have Factories to simplify the request and send process of Twinfield. Each factory will require just the \Pronamic\Twinfield\Secure\Config() class with the filled in details.
An example of the usage of the Configuration class.
- or, when using OAuth:
Now, to the current modules
In the following example, we will use the Customer component as showcase. Although this will be the method for all components ( including Invoice currently )
Typically it is as follows, if using the Factories
- Add/Edit: Make Object, Make Factory, Give object in Submit method of related factory.
- Retrieve: Make Factory, Supply all required params to respective listAll() and get() methods
Add/Edit
Make your Customer object
Customers can have addresses associated with them
Assign that address to the customer
Now lets submit it!
Retrieve/Request
You can get all customers or get a single one currently.
At the moment, listAll will return an array of just name and short name.
The response from get() will be a \Pronamic\Twinfield\Customer\Customer object.
Notes
Advanced documentation coming soon. Detailing usage without the Factory class. Giving you more control with the response and data as well as more in-depth examples and usage recommendations.
Contribute
You can contribute to the development of this project. Try and keep to the way of doing things as the other 2 components have implemented.
A large requirement is to maintain backwards compatibility so if you have any plans for large restructure or alteration please bring up in an issue first.
Component | get() | listAll() | send() | Mapper | Namespace |
---|---|---|---|---|---|
Customer | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | Pronamic/Twinfield/Customer |
Sales Invoices | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | Pronamic/Twinfield/Invoice |
Transactions: Purchase Sale | :white_check_mark: | Pronamic/Twinfield/Transaction | |||
Articles | Pronamic/Twinfield/Article | ||||
Balance Sheets | Pronamic/Twinfield/BalanceSheet | ||||
Suppliers | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | Pronamic/Twinfield/Supplier |
Dimension Groups | Pronamic/Twinfield/Dimension/Group | ||||
Dimension Types | Pronamic/Twinfield/Dimension/Type | ||||
Offices | :white_check_mark: | Pronamic/Twinfield/Office | |||
Vat types | :white_check_mark: | Pronamic/Twinfield/VatCode |
Build
- npm install
- composer install
Links
- Twinfield API Documentation site
- Twinfield Library for Python
- Using Grunt for PHP
- Using Grunt with PHP Quality Assurance Tools
Authors
License
Copyright 2009-2013 Pronamic.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA