Download the PHP package babaweb/laravel-zohoinvoice without Composer

On this page you can find all versions of the php package babaweb/laravel-zohoinvoice. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-zohoinvoice

Laravel ZohoInvoice

Implémentation de l'API Zoho Invoice pour Laravel

Prérequis

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

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

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

Ajouter la facade :

use Babaweb\ZohoInvoice\ZohoInvoice;

Par exemple avec la fonction test :

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

Fonctions

Liste des fonctions disponibles :

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


All versions of laravel-zohoinvoice with dependencies

PHP Build Version
Package Version
Requires php Version ^5.3 | ^7.0
guzzlehttp/guzzle Version ~6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package babaweb/laravel-zohoinvoice contains the following files

Loading the files please wait ...