PHPackages                             babaweb/laravel-zohoinvoice - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. babaweb/laravel-zohoinvoice

AbandonedArchivedLibrary[API Development](/categories/api)

babaweb/laravel-zohoinvoice
===========================

Zoho Invoice API library

v0.9(7y ago)038MITPHPPHP ^5.3 | ^7.0

Since Jul 5Pushed 7y agoCompare

[ Source](https://github.com/babaweb-projects/Laravel-ZohoInvoice)[ Packagist](https://packagist.org/packages/babaweb/laravel-zohoinvoice)[ Docs](https://github.com/babaweb-projects/Laravel-ZohoInvoice.git)[ RSS](/packages/babaweb-laravel-zohoinvoice/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (3)Versions (13)Used By (0)

Laravel ZohoInvoice
===================

[](#laravel-zohoinvoice)

Implémentation de l'API **Zoho Invoice** pour **Laravel**

Prérequis
---------

[](#prérequis)

Pour fonctionner, l'ensemble des élements sont nécessaires :

- [Laravel 5.x](https://laravel.com/docs/master)
- [ZohoInvoice API v3](https://www.zoho.com/invoice/api/v3/)

Installation
------------

[](#installation)

Lancer la commande Composer *require* :

```
composer require babaweb/laravel-zohoinvoice

```

Modifier le fichier `config/app.php` pour y ajouter le *provider*

```
'providers' => [
    ...
    Babaweb\ZohoInvoice\ZohoInvoiceServiceProvider::class
],

```

Enfin publier le fichier :

```
php artisan vendor:publish --provider="Babaweb\ZohoInvoice\ZohoInvoiceServiceProvider"

```

Et **tadaaa** ! Le package est prêt.

Configuration
-------------

[](#configuration)

Afin de se connecter à l'API ZohoInvoice, des *tokens* sont nécessaires. Pour les renseigner, il faut ouvrir le fichier dans `config/zohoinvoice.php` :

```
return [
    'authtoken' => env('ZOHO_AUTHTOKEN', 'VOTRE_AUTH_TOKEN'),
    'organization_id' => env('ZOHO_ORGANIZATION', 'VOTRE_ORGANIZATION_ID')
];

```

Utilisation
-----------

[](#utilisation)

Ajouter la facade :

```
use Babaweb\ZohoInvoice\ZohoInvoice;

```

Par exemple avec la fonction `test` :

```
public function test(ZohoInvoice $client) {
    //Vos requêtes ici
}

```

Fonctions
---------

[](#fonctions)

Liste des fonctions disponibles :

- **getContacts()** : Retourne la liste des contacts
- **getInvoices($customer\_id)** : Retourne la liste des factures à partir de l'ID du client
- **getInvoice($invoice\_id)** : Retourne la facture dont l'ID est passé en paramètre
- **getInvoicePayments($invoice\_id)** : Retourne la liste des paiements de facture dont l'ID est passé en paramètre
- **[createItem($parameters)](#createitemparameters-)** : Créer un item à partir des élements en paramètres
- **[createInvoice($parameters)](#createinvoiceparameters-)** : Créer une facture à partir des élements en paramètres
- **[createContact($parameters)](#createcontactparameters-)** : Créer un contact à partir des élements en paramètres
- **[updateItem($item\_id, $parameters)](#updateitemitem_id-parameters-)** : Modifie un item à partir des élements en paramètres

### Détails des fonctions

[](#détails-des-fonctions)

#### createItem($parameters) :

[](#createitemparameters-)

```
$parameters = [
    //required
    'name' => 'Product 6.1', //Nom de l'item
    'rate' => '300', //Prix unitaire de l'item
    //Optional
    'description' => 'Test product', //Description de l'item
    'tax_id' => 39448000000026222, //ID de la taxe
    'product_type' => 'service', //Type de l'item
];

```

#### createInvoice($parameters) :

[](#createinvoiceparameters-)

```
$parameters = [
    //required
    'customer_id' => 982000000567001, //ID du client
    //Optional
    'invoice_number' => 'INV-00003', //Numéro de la facture
    'discount' => 0, //Réduction appliquée à la facture. Soit en pourcentage (12.5%) ou un montant (190)
    'is_discount_before_tax' => true, //Vrai si la réduction s'applique au HT
];

```

#### createContact($parameters) :

[](#createcontactparameters-)

```
$parameters = [
    //required
    'contact_name' => 'Bowman and Co', //Nom du contact
    //Optional
    'company_name' => 'Bowman and Co', //Nom de la société
];

```

#### updateItem($item\_id, $parameters) :

[](#updateitemitem_id-parameters-)

```
$parameters = [
    //required
    'name' => 'Product 6.1', //Nom de l'item
    'rate' => '300', //Prix unitaire de l'item
    //Optional
    'description' => 'Test product', //Description de l'item
    'tax_id' => 39448000000026222, //ID de la taxe
    'product_type' => 'service', //Type de l'item
];

```

License
-------

[](#license)

Ce package ZohoInvoice pour Laravel est un logiciel libre sous licence MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

12

Last Release

2848d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4983ad04be788bbd22eeedcafe9b433b75ff7dafe6faa5840fc789e261d1b59?d=identicon)[thomas-dev](/maintainers/thomas-dev)

---

Top Contributors

[![thomas-dev](https://avatars.githubusercontent.com/u/38211661?v=4)](https://github.com/thomas-dev "thomas-dev (32 commits)")[![rorol-dev](https://avatars.githubusercontent.com/u/38211637?v=4)](https://github.com/rorol-dev "rorol-dev (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/babaweb-laravel-zohoinvoice/health.svg)

```
[![Health](https://phpackages.com/badges/babaweb-laravel-zohoinvoice/health.svg)](https://phpackages.com/packages/babaweb-laravel-zohoinvoice)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
