digfish / php-factpt-cli
Fact.pt Online Invoicing API Client
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/digfish/php-factpt-cli
Requires
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- fakerphp/faker: ^1.19
- vlucas/phpdotenv: ^5.4
This package is auto-updated.
Last update: 2025-09-27 23:15:59 UTC
README
php-factpt-cli
PHP API Client implementation for the Online invoicing System solution provided by FACT.
Install
The package is hosted on packagist. To install run:
composer install digfish/php-factpt-cli
Environment variables
The variable FACTPT_TEST_API_KEY should hold the value of your API key. You can set this via a .env file or your own code using putenv or $_ENV['FACTPT_TEST_API_KEY']. If there is no such a file, it is assumed that is running on production. You must set the env var FACTPT_API_KEY on your code for production.
What is implemented
| Method | API |
|---|---|
| listDocuments | GET /documents |
| createCustomer | POST /clients |
| getCustomer | GET /clients/:id |
| listCustomers | GET /clients |
| searchCustomers | GET /clients?q=search |
| createProduct | POST /products |
| getProduct | GET /products/:id |
| listProducts | GET /products/ |
| searchProducts | GET /products?q=search |
| createInvoice | POST /documents/invoice |
| getDocument | GET /documents/:id |
| listTaxes | GET /taxes |
| getTax | |
| searchTax |