PHP code example of bfg / laravel-wefact

1. Go to this page and download the library: Download bfg/laravel-wefact library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bfg / laravel-wefact example snippets


// DebtorsController
public function getIndex()
{
    $debtors = Wefact::client('key')->debtors()->all([
        'Sort' => 'DebtorCode',
        'limit' => 20
    ]);

    //
}

Wefact::client('key')->attachments()->add(array $params)
Wefact::client('key')->attachments()->delete(array $params)
Wefact::client('key')->attachments()->download(array $params)

Wefact::client('key')->creditinvoices()->add(array $params)
Wefact::client('key')->creditinvoices()->delete(array $params)
Wefact::client('key')->creditinvoices()->edit(array $params)
Wefact::client('key')->creditinvoices()->list(array $params)
Wefact::client('key')->creditinvoices()->markAsPaid(array $params)
Wefact::client('key')->creditinvoices()->partPayment(array $params)
Wefact::client('key')->creditinvoices()->show(array $params)

Wefact::client('key')->creditors()->add(array $params)
Wefact::client('key')->creditors()->delete(array $params)
Wefact::client('key')->creditors()->edit(array $params)
Wefact::client('key')->creditors()->list(array $params)
Wefact::client('key')->creditors()->show(array $params)

Wefact::client('key')->debtors()->add(array $params)
Wefact::client('key')->debtors()->checkLogin(array $params)
Wefact::client('key')->debtors()->edit(array $params)
Wefact::client('key')->debtors()->generatePdf(array $params)
Wefact::client('key')->debtors()->list(array $params)
Wefact::client('key')->debtors()->sendEmail(array $params)
Wefact::client('key')->debtors()->show(array $params)
Wefact::client('key')->debtors()->updateLoginCredentials(array $params)

Wefact::client('key')->groups()->add(array $params)
Wefact::client('key')->groups()->delete(array $params)
Wefact::client('key')->groups()->edit(array $params)
Wefact::client('key')->groups()->list(array $params)
Wefact::client('key')->groups()->show(array $params)

Wefact::client('key')->invoices()->add(array $params)
Wefact::client('key')->invoices()->block(array $params)
Wefact::client('key')->invoices()->cancelSchedule(array $params)
Wefact::client('key')->invoices()->credit(array $params)
Wefact::client('key')->invoices()->delete(array $params)
Wefact::client('key')->invoices()->download(array $params)
Wefact::client('key')->invoices()->edit(array $params)
Wefact::client('key')->invoices()->list(array $params)
Wefact::client('key')->invoices()->markAsPaid(array $params)
Wefact::client('key')->invoices()->markAsUnpaid(array $params)
Wefact::client('key')->invoices()->partPayment(array $params)
Wefact::client('key')->invoices()->paymentProcessPause(array $params)
Wefact::client('key')->invoices()->paymentProcessReactivate(array $params)
Wefact::client('key')->invoices()->schedule(array $params)
Wefact::client('key')->invoices()->sendByEmail(array $params)
Wefact::client('key')->invoices()->sendReminderByEmail(array $params)
Wefact::client('key')->invoices()->sendSummationByEmail(array $params)
Wefact::client('key')->invoices()->show(array $params)
Wefact::client('key')->invoices()->unblock(array $params)

Wefact::client('key')->pricequotes()->accept(array $params)
Wefact::client('key')->pricequotes()->add(array $params)
Wefact::client('key')->pricequotes()->decline(array $params)
Wefact::client('key')->pricequotes()->delete(array $params)
Wefact::client('key')->pricequotes()->download(array $params)
Wefact::client('key')->pricequotes()->edit(array $params)
Wefact::client('key')->pricequotes()->list(array $params)
Wefact::client('key')->pricequotes()->sendByEmail(array $params)
Wefact::client('key')->pricequotes()->show(array $params)

Wefact::client('key')->products()->add(array $params)
Wefact::client('key')->products()->delete(array $params)
Wefact::client('key')->products()->edit(array $params)
Wefact::client('key')->products()->list(array $params)
Wefact::client('key')->products()->show(array $params)

php artisan vendor:publish --provider="Bfg\Wefact\ServiceProvider" --tag="config"