2017 © Pedro Peláez
 

library laravel-zohoinvoice

Zoho Invoice API library

image

babaweb/laravel-zohoinvoice

Zoho Invoice API library

  • Thursday, July 26, 2018
  • by thomas-dev
  • Repository
  • 0 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

Laravel ZohoInvoice

Implémentation de l'API Zoho Invoice pour Laravel, (*1)

Prérequis

Pour fonctionner, l'ensemble des élements sont nécessaires : + Laravel 5.x + ZohoInvoice API v3, (*2)

Installation

Lancer la commande Composer require :, (*3)

composer require babaweb/laravel-zohoinvoice

Modifier le fichier config/app.php pour y ajouter le provider, (*4)

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

Enfin publier le fichier :, (*5)

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

Et tadaaa ! Le package est prêt., (*6)

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 :, (*7)

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

Utilisation

Ajouter la facade :, (*8)

use Babaweb\ZohoInvoice\ZohoInvoice;

Par exemple avec la fonction test :, (*9)

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

Fonctions

Liste des fonctions disponibles :, (*10)

  • 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) : Créer un item à partir des élements en paramètres
  • createInvoice($parameters) : Créer une facture à partir des élements en paramètres
  • createContact($parameters) : Créer un contact à partir des élements en paramètres
  • updateItem($item_id, $parameters) : Modifie un item à partir des élements en paramètres

Détails des fonctions

createItem($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
];

createInvoice($parameters) :

$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) :

$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) :

$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

Ce package ZohoInvoice pour Laravel est un logiciel libre sous licence MIT, (*11)

The Versions

26/07 2018

dev-master

9999999-dev https://github.com/babaweb-projects/Laravel-ZohoInvoice.git

Zoho Invoice API library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Babaweb

26/07 2018

v0.9

0.9.0.0 https://github.com/babaweb-projects/Laravel-ZohoInvoice.git

Zoho Invoice API library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Babaweb

25/07 2018

v0.8

0.8.0.0 https://github.com/babaweb-projects/Laravel-ZohoInvoice.git

Zoho Invoice API library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Babaweb

25/07 2018

v0.7.3

0.7.3.0 https://github.com/babaweb-projects/Laravel-ZohoInvoice.git

Zoho Invoice API library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Babaweb

18/07 2018

v0.7.1

0.7.1.0 https://github.com/babaweb-projects/Laravel-ZohoInvoice.git

Zoho Invoice API library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Babaweb

18/07 2018

v0.7.2

0.7.2.0 https://github.com/babaweb-projects/Laravel-ZohoInvoice.git

Zoho Invoice API library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Babaweb

18/07 2018

v0.7

0.7.0.0 https://github.com/babaweb-projects/Laravel-ZohoInvoice.git

Zoho Invoice API library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Babaweb

06/07 2018

v0.6

0.6.0.0 https://github.com/babaweb-projects/Laravel-ZohoInvoice.git

Zoho Invoice API library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Babaweb

06/07 2018

v0.5

0.5.0.0 https://github.com/babaweb-projects/Laravel-ZohoInvoice.git

Zoho Invoice API library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Babaweb

06/07 2018

v0.4

0.4.0.0 https://github.com/babaweb-projects/Laravel-ZohoInvoice.git

Zoho Invoice API library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Babaweb

05/07 2018

v0.3

0.3.0.0 https://github.com/babaweb-projects/Laravel-ZohoInvoice.git

Zoho Invoice API library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Babaweb

05/07 2018

v0.2

0.2.0.0 https://github.com/babaweb-projects/Laravel-ZohoInvoice.git

Zoho Invoice API library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Babaweb

05/07 2018

v0.1

0.1.0.0 https://github.com/babaweb-projects/Laravel-ZohoInvoice.git

Zoho Invoice API library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Babaweb