Download the PHP package webit/w-firma-api without Composer
On this page you can find all versions of the php package webit/w-firma-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package w-firma-api
wFirma API
High level implementation of wFirma API. Provides object oriented SDK to operate on the most of wFirma modules.
Installation
Use composer:
For PHP 5.4 and 7.0 use ^1.0 version.
Usage
The current version of the package provides full support for the following modules:
- company_accounts
- contractors
- declaration_countries
- invoice_deliveries
- invoice_descriptions
- invoicecontents
- invoices
- payments
- notes
- series
- tags
- translation_languages
- vat_contents
- vat_codes
- vat_moss_details
Configure Annotation Registry
This is not needed if you use AnnotationRegistry 2.0.
Authentication
The library supports:
ApiKeysAuth
BasicAuth
(deprecated)
ApiKeyAuth
To get your API Keys follow the official documentation: https://doc.wfirma.pl/#autoryzacja
BasicAuth (deprecated)
This method will not be supported anymore by wFirma.
ApiFactory
In order to create API for given module use ModuleApiFactory.
Module APIs
Every main module has it's own instance of the API exposing supported methods.
- Company Accounts: find, findAll, get, count,
- Contractors: add, edit, delete, find, findAll, get, count
- Declaration Countries: find, findAll, get, count
- Goods: add, edit, delete, find, get
- Invoice Deliveries: add, delete, find, findAll, get, count
- Invoice Descriptions: find, findAll, get, count
- Invoices: add, edit, delete, find, findAll, get, count, fiscalise, unfiscalise, download, send
- Payments: add, edit, delete, find, findAll, get
- Notes: add, edit, delete, find, findAll, get, count
- Series: add, edit, delete, find, findAll, get, count
- Tags: add, edit, delete, find, findAll, get, count
- TranslationLanguages: find, findAll, get, count
- VatCodes: find, findAll, get, count
Find / FindAll / Count APIs
APIs exposing find / findAll / count method takes and optional Parameters argument.
InvoicesApi
ContractorsApi
Further development
Feel free to add any other modules support.
Getting VatCodeId from VAT Rate code by VatCodeIdRepository
With custom static map provided
With cached map provided by API
Please note you need to add psr/simple-cache-implementation
to your composer.json
.
We suggest symfony/cache
in the example below.
Tests
All versions of w-firma-api with dependencies
ext-curl Version *
jms/serializer Version ^1.0.0
kriswallsmith/buzz Version >=0.12.0,<0.17
psr/log Version ^1.0.2