PHPackages                             srdorado/siigo-client-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. srdorado/siigo-client-php

ActiveLibrary[API Development](/categories/api)

srdorado/siigo-client-php
=========================

Consumer client of the siigo api (https://siigoapi.docs.apiary.io/#)

v0.8.5(1y ago)072MITPHPPHP &gt;=7.2

Since Oct 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/srdorado/siigo-client-php)[ Packagist](https://packagist.org/packages/srdorado/siigo-client-php)[ Docs](https://github.com/srdorado/siigo-client-php)[ RSS](/packages/srdorado-siigo-client-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (16)Used By (0)

Siigo client API
================

[](#siigo-client-api)

*By [srdorado](https://github.com/srdorado)*

[![License](https://camo.githubusercontent.com/245109fe85988e44f1263760184cbd68821edded983f918f19ced259b86b81a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7372646f7261646f2f736969676f2d636c69656e742d706870)](https://packagist.org/packages/srdorado/siigo-client-php)[![Packagist PHP Version Support](https://camo.githubusercontent.com/a5d288f3309664ea27f87d2307921ed41fe31d95c8ffa59be433a7a4b55814ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7372646f7261646f2f736969676f2d636c69656e742d706870)](https://camo.githubusercontent.com/a5d288f3309664ea27f87d2307921ed41fe31d95c8ffa59be433a7a4b55814ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7372646f7261646f2f736969676f2d636c69656e742d706870)[![Packagist Version](https://camo.githubusercontent.com/b936f7feadaab5fbb03831f24df91bed13d47457e168dcf8fff683b700773744/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7372646f7261646f2f736969676f2d636c69656e742d706870)](https://packagist.org/packages/srdorado/siigo-client-php)[![Packagist Downloads](https://camo.githubusercontent.com/42a5f2da1eddbdf789cd6ecead93ffda53ac55c6d642a814b2cec16f46926524/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7372646f7261646f2f736969676f2d636c69656e742d706870)](https://packagist.org/packages/srdorado/siigo-client-php)[![Composer dependencies](https://camo.githubusercontent.com/aae95fbaa83bc6a3f4597f3a75da45ea46ec236fc324617f0e5a2f15e07fe750/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e64656e636965732d302d627269676874677265656e)](https://github.com/srdorado/siigo-client-php/blob/master/composer.json)[![Test workflow](https://camo.githubusercontent.com/38f0963ddcb9e6ad6891d5506effaac5bd080207e3ddf0c743f64300708881a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7372646f7261646f2f736969676f2d636c69656e742d7068702f746573743f6c6162656c3d74657374266c6f676f3d676974687562)](https://github.com/srdorado/siigo-client-php/actions?workflow=test)[![Codecov](https://camo.githubusercontent.com/09359f82efd758ee41b56bb6639f40e05698e7f0e38bb19ab60f38c4b183c9d6/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f7372646f7261646f2f736969676f2d636c69656e742d7068703f6c6f676f3d636f6465636f76)](https://codecov.io/gh/srdorado/siigo-client-php)[![composer.lock](https://camo.githubusercontent.com/6d98155556f43e4e029a2ee57eea8752216a5c8e39b7e539cd20d65b86891bd7/68747470733a2f2f706f7365722e707567782e6f72672f7372646f7261646f2f736969676f2d636c69656e742d7068702f636f6d706f7365726c6f636b)](https://packagist.org/packages/srdorado/siigo-client-php)

This library consumes the [Siigo API](https://siigoapi.docs.apiary.io/#) enabling:

- Create, update and consult Sales Invoices.
- Sending sales invoices to the Dian and customers.
- Create, consult, update and delete Clients (Third Parties) and Products/Services.
- Create and consult Accounting Receipts, Credit Notes and Cash Receipts.
- Consult Inventory of a product in Siigo Cloud.

Installation
------------

[](#installation)

```
composer require srdorado/siigo-client-php
```

How to use it?
--------------

[](#how-to-use-it)

- Get token

```
    function getToken()
    {
        // Create client token
        $clientFactory = new \Srdorado\SiigoClient\Factory\ClientFactory();
        $clientTokenFactory = $clientFactory->create(\Srdorado\SiigoClient\Enum\ClientType::TOKEN);
        $clientToken = $clientTokenFactory->create();
        $clientToken->setBaseUrl('https://api.siigo.com/');

        // Create entity token
        $entity = new \Srdorado\SiigoClient\Model\Entity(\Srdorado\SiigoClient\Enum\ClientType::TOKEN);
        $entity->setData(
            [
                'username' => '',
                'access_key' => ''
            ]
        );

        // Request token
        return $clientToken->getToken($entity);
    }
```

- Create product

```
    function getCustomClient()
    {
        // generate token
        $token = $this->getToken();

        // Create client
        $clientFactory = new \Srdorado\SiigoClient\Factory\ClientFactory();
        $clientProductFactory = $clientFactory->create(\Srdorado\SiigoClient\Enum\ClientType::PRODUCT);
        $clientProduct = $clientProductFactory->create();
        $clientProduct->setBaseUrl('https://api.siigo.com/');
        $clientProduct->setAccessKey($token);

        return $clientProduct;
    }

    function create()
    {
        $clientProduct = $this->getCustomClient();

        $entity = new \Srdorado\SiigoClient\Model\Entity(\Srdorado\SiigoClient\Enum\ClientType::PRODUCT);

        $dataEntity = $this->getExampleCompleteProduct();

        $entity->setData($dataEntity);

        $productId = $clientProduct->create($entity);

        $this->assertTrue(true);
    }
```

Versioning
----------

[](#versioning)

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility breaking changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading.

License
-------

[](#license)

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.

Donations
---------

[](#donations)

[![paypal](https://camo.githubusercontent.com/e1ff554a09e8e92bef25abc553ff05b88f45afd695877cf12f3a46558ef65b2e/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e61746543435f4c472e676966)](https://www.paypal.com/paypalme/srdorado01)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~60 days

Recently: every ~46 days

Total

14

Last Release

528d ago

PHP version history (2 changes)v0.0.0PHP &gt;=7.4

v0.8.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce0b01221125b8b6214d08f709c75d48c2514846c881eae2f81adb5fff97ecfa?d=identicon)[srdorado](/maintainers/srdorado)

---

Top Contributors

[![srdorado](https://avatars.githubusercontent.com/u/111989626?v=4)](https://github.com/srdorado "srdorado (50 commits)")

---

Tags

coveragepackagingphptestphpapisiigo

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/srdorado-siigo-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/srdorado-siigo-client-php/health.svg)](https://phpackages.com/packages/srdorado-siigo-client-php)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
