factomos/factomos-php

PHP library for the Factomos API.

1.0.8 2024-10-19 10:22 UTC

This package is auto-updated.

Last update: 2024-11-19 10:27:57 UTC


README

Factomos is an invoicing tool (B2B SaaS) available at [https://factomos.com]. This library is a PHP Client for the Factomos API. With it you can create invoices, estimates, send them, etc ...

The full API documentation is available at [https://factomos.docs.apiary.io/]

Installation

Official installation method is via composer and its packagist package factomos/factomos-php.

$ composer require factomos/factomos-php

Usage

The simplest usage of the library would be as follows:

<?php

require_once __DIR__ . '/vendor/autoload.php';

$factomosApiToken = 'my-api-token';

$factomosClient = new Factomos\ApiClient([
    'FACTOMOS_API_TOKEN' => $factomosApiToken,
]);

$myInvoicesList = $factomosClient->listInvoices();