eerison/whmcs-api

This package is abandoned and no longer maintained. No replacement package was suggested.

Lib api externa whmcs

1.0.4 2017-05-18 20:24 UTC

This package is auto-updated.

Last update: 2021-10-01 15:40:08 UTC


README

Build Status SensioLabsInsight

Projeto para utilizar api externa do whmcs!

Lista de modulos implementados

  • Billing
    • AddInvoicePayment

composer

composer require eerison/whmcs-api

Configurar app/config/config.yml

...
    whmcs:
      api:
        url : localhost
        username : whmcs
        password : whmcs    
...

Exemples

exemplo sem variável de ambiente

try {
    $payment = new \WhmcsApi\Invoice\AddInvoicePayment();
    $payment
        ->setInvoiceid(8542)
        ->setTransid('transação 1')
        ->setDate(\Carbon\Carbon::now())
        ->setGateway('banktransfer')
        ->exec()
    ;
} catch (WhmcsApi\Exception $e) {
    echo $e->getMessage();
}