2017 © Pedro PelĂĄez
 

library cuentica

Cuentica API Integration in Laravel

image

vulturdev/cuentica

Cuentica API Integration in Laravel

  • Friday, December 15, 2017
  • by vcompanyb
  • Repository
  • 1 Watchers
  • 3 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 14 % Grown

The README.md

Vulturdev/Cuentica

Custom PHP Cuentica library for the Laravel 5 framework - developed by Vulturdev., (*1)

Installation

Pull this package using Composer., (*2)


{ "require": { "vulturdev/cuentica": "1.*" } }

or run in terminal: composer require vulturdev/cuentica, (*3)

Laravel 5.5+ Integration

Laravel's package discovery will take care of integration for you., (*4)

Laravel 5.* Integration

Add the service provider to your config/app.php file:, (*5)


'providers' => array( //... Vulturdev\Cuentica\CuenticaServiceProvider::class, ),

Usage

Laravel usage

Set up cuentica token


// Get the token from the .env file $company = new Company;

// Use a variable $company = new Company($token);

Sending Company requests


use Vulturdev\Cuentica\Models\Company; $company = new Company; print_r($company->company()); print_r($company->serie());

Sending Account requests


use Vulturdev\Cuentica\Models\Account; $account = new Account; print_r($account->accounts()); print_r($account->account(36528));

Sending Provider requests


use Vulturdev\Cuentica\Models\Provider; $provider = new Provider; print_r($provider->providers()); print_r($provider->providers(array('q' => $search))); print_r($provider->providers(array('page_size' => '5','page' => '2'))); print_r($this->createProvider()); print_r($provider->provider(377692)); private function createProvider() { $provider = new Provider; $newProvider = array( 'address' => 'Address', 'town' => 'Town', 'postal_code' => 'PostalCode', 'cif' => 'Cif', 'tradename' => 'Tradename', 'business_name' => 'Business Name', 'business_type' => 'company', 'region' => 'alicante', ); print_r($provider->create($newProvider)); }

Sending Customer requests


use Vulturdev\Cuentica\Models\Customer; $customer = new Customer; print_r($customer->customers()); print_r($customer->customers(array('q' => $search))); print_r($customer->customers(array('page_size' => '5','page' => '2'))); print_r($customer->customer(322012)); print_r($customer->invoices(322012));

Sending Invoice requests


use Vulturdev\Cuentica\Models\Invoice; $invoice = new Invoice; print_r($invoice->invoices()); print_r($invoice->sendEmail(686665,array('to' => array($to),'reply_to' => $reply_to,'subject' => $subject,'body' => $body))); $invoice->downloadPdf(686665);

Sending Expense requests


use Vulturdev\Cuentica\Models\Expense; $expense = new Expense; print_r($expense->expenses()); print_r($expense->downloadAttachment(786351));

License

This package is open-sourced software licensed under the GPL-3.0 license, (*6)

Contact

For package questions, bug, suggestions and/or feature requests, please use the Github issue system and/or submit a pull request. When submitting an issue, always provide a detailed explanation of your problem, any response or feedback your get, log messages that might be relevant as well as a source code example that demonstrates the problem. If not, I will most likely not be able to help you with your problem., (*7)

For any other questions, feel free to use the credentials listed below:, (*8)

VĂ­ctor Company (developer), (*9)

  • Email: vcompanyb@vulturdev.com

The Versions

15/12 2017

dev-master

9999999-dev

Cuentica API Integration in Laravel

  Sources   Download

GPL-3.0

The Requires

 

by Avatar vcompanyb

laravel cuentica

14/12 2017

v1.0.2

1.0.2.0

Cuentica API Integration in Laravel

  Sources   Download

GPL-3.0

The Requires

 

by Avatar vcompanyb

laravel cuentica

14/12 2017

v1.0.1

1.0.1.0

Cuentica API Integration in Laravel

  Sources   Download

GPL-3.0

The Requires

 

by Avatar vcompanyb

laravel cuentica

14/12 2017

1.0.0

1.0.0.0

Cuentica API Integration in Laravel

  Sources   Download

The Requires

 

by Avatar vcompanyb

laravel cuentica