Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/NemonInvocash/verifactu-php/llms.txt

Use this file to discover all available pages before exploring further.

verifactuPHP is distributed as a Composer library under the package name invocash/verifactu-php. There are two supported install methods: using Composer’s VCS repository feature, or cloning the repository manually. Both result in the same library being available via PSR-4 autoloading.

Requirements

Before installing, ensure your environment meets the following requirements:
RequirementVersion
PHP^7.4 or ^8.0
ComposerAny recent version
guzzlehttp/guzzle^7.0 (installed automatically)

Method 1: Composer VCS Repository

This is the recommended approach for most projects. Add the VCS source to your composer.json, then require the package.
1

Add the VCS repository to composer.json

Open your composer.json and add the repositories block pointing to the GitHub source:
composer.json
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/NemonInvocash/verifactu-php"
        }
    ]
}
2

Require the package

Run the following command to install the package and its dependencies:
composer require invocash/verifactu-php
Composer will install invocash/verifactu-php and guzzlehttp/guzzle automatically.
3

Update when needed

To update the library to the latest version from the repository:
composer update invocash/verifactu-php

Method 2: Clone the Repository

If you prefer to work directly with the source, clone the repository and install dependencies manually.
1

Clone the repository

git clone https://github.com/NemonInvocash/verifactu-php
2

Install dependencies

Navigate into the project directory and run Composer:
cd verifactu-php
composer install

Using the Library

Once installed, load the autoloader and import the main class:
<?php
require 'vendor/autoload.php';

use verifactuPHP\ClienteVerifactu;

$client = new ClienteVerifactu('you@example.com', 'your-password');
All model classes are under the verifactuPHP\Models namespace, but you access them via the factory methods on ClienteVerifactu — you do not need to import model classes directly in normal usage.
Enable debug mode during development to verify requests and responses: $client->setDebug(true);. See Debug Mode for details.

Next Steps

Quickstart

Get to a working invoice submission in 5 steps.

Authentication

Learn how token-based authentication works under the hood.

Build docs developers (and LLMs) love