Coder Social home page Coder Social logo

krzybe / infaktclient Goto Github PK

View Code? Open in Web Editor NEW

This project forked from torzech/infaktclient

0.0 0.0 0.0 75 KB

InfaktClient is a PHP library for the third version of Infakt REST API that makes it easy to perform CRUD (create, read, update and delete) operations on invoices, clients and products.

License: MIT License

PHP 100.00%

infaktclient's Introduction

Infakt API Client

Style-CI Travis CI Coverage Downloads Release
StyleCI Travis CI Coverage Status Total Downloads Latest Stable Version

InfaktClient is a PHP library for the third version of Infakt REST API that makes it easy to perform CRUD (create, read, update and delete) operations on invoices, clients and products.

Quick start

Step 1: Install the package

Install Composer and run the following command to get the latest version:

composer require miisieq/infakt-client

Step 2: Create an instance of the client

$infakt = new \Infakt\Infakt(
    '7e2356a0a400d6ec3d2ced911991f3e8',
    new \GuzzleHttp\Client()
);

Resources reference

Clients

Get all

$clients = $infakt->getRepository(\Infakt\Model\Client::class)->getAll();

Get by ID

$client = $infakt->getRepository(\Infakt\Model\Client::class)->get(2887744);

See more: Infakt API Documentation

Bank Accounts

Get all

$bankAccounts = $infakt->getRepository(\Infakt\Model\BankAccount::class)->getAll();

Get by ID

$bankAccount = $infakt->getRepository(\Infakt\Model\BankAccount::class)->get(4786512);

See more: Infakt API Documentation

VAT Rate

Get all

$infakt->getRepository(\Infakt\Model\VatRate::class)->getAll()

See more: Infakt API Documentation

Contributing

Running tests (phpunit/phpunit)

$ composer tests

Running code style fixer (friendsofphp/php-cs-fixer)

$ composer phpcs

License

This package is released under the MIT license. See the included LICENSE file for more information.

infaktclient's People

Contributors

laraingg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.