{"id":37007333,"url":"https://github.com/srdorado/siigo-client-php","last_synced_at":"2026-01-14T00:47:58.178Z","repository":{"id":61077926,"uuid":"548103184","full_name":"srdorado/siigo-client-php","owner":"srdorado","description":"This library consumes the Siigo API","archived":false,"fork":false,"pushed_at":"2024-11-27T19:28:40.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-12T01:45:18.011Z","etag":null,"topics":["coverage","packaging","php","test"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/srdorado/siigo-client-php","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srdorado.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-08T23:36:43.000Z","updated_at":"2024-11-27T19:26:47.000Z","dependencies_parsed_at":"2023-01-29T17:30:32.506Z","dependency_job_id":null,"html_url":"https://github.com/srdorado/siigo-client-php","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/srdorado/siigo-client-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srdorado%2Fsiigo-client-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srdorado%2Fsiigo-client-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srdorado%2Fsiigo-client-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srdorado%2Fsiigo-client-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srdorado","download_url":"https://codeload.github.com/srdorado/siigo-client-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srdorado%2Fsiigo-client-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coverage","packaging","php","test"],"created_at":"2026-01-14T00:47:57.349Z","updated_at":"2026-01-14T00:47:58.156Z","avatar_url":"https://github.com/srdorado.png","language":"PHP","funding_links":["https://www.paypal.com/paypalme/srdorado01"],"categories":[],"sub_categories":[],"readme":"# Siigo client API\n\n*By [srdorado](https://github.com/srdorado)*\n\n[![License](https://img.shields.io/packagist/l/srdorado/siigo-client-php)](https://packagist.org/packages/srdorado/siigo-client-php)\n![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/srdorado/siigo-client-php)\n[![Packagist Version](https://img.shields.io/packagist/v/srdorado/siigo-client-php)](https://packagist.org/packages/srdorado/siigo-client-php)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/srdorado/siigo-client-php)](https://packagist.org/packages/srdorado/siigo-client-php)\n[![Composer dependencies](https://img.shields.io/badge/dependencies-0-brightgreen)](https://github.com/srdorado/siigo-client-php/blob/master/composer.json)\n[![Test workflow](https://img.shields.io/github/workflow/status/srdorado/siigo-client-php/test?label=test\u0026logo=github)](https://github.com/srdorado/siigo-client-php/actions?workflow=test)\n[![Codecov](https://img.shields.io/codecov/c/github/srdorado/siigo-client-php?logo=codecov)](https://codecov.io/gh/srdorado/siigo-client-php)\n[![composer.lock](https://poser.pugx.org/srdorado/siigo-client-php/composerlock)](https://packagist.org/packages/srdorado/siigo-client-php)\n\n\nThis library consumes the \n[Siigo API](https://siigoapi.docs.apiary.io/#) enabling: \n\n* Create, update and consult Sales Invoices.\n\n* Sending sales invoices to the Dian and customers.\n\n* Create, consult, update and delete Clients (Third Parties) and Products/Services.\n\n* Create and consult Accounting Receipts, Credit Notes and Cash Receipts.\n\n* Consult Inventory of a product in Siigo Cloud.\n\n## Installation\n```php\ncomposer require srdorado/siigo-client-php\n```\n\n## How to use it?\n\n* Get token\n\n```php\n    function getToken()\n    {\n        // Create client token\n        $clientFactory = new \\Srdorado\\SiigoClient\\Factory\\ClientFactory();\n        $clientTokenFactory = $clientFactory-\u003ecreate(\\Srdorado\\SiigoClient\\Enum\\ClientType::TOKEN);\n        $clientToken = $clientTokenFactory-\u003ecreate();\n        $clientToken-\u003esetBaseUrl('https://api.siigo.com/');\n\n        // Create entity token\n        $entity = new \\Srdorado\\SiigoClient\\Model\\Entity(\\Srdorado\\SiigoClient\\Enum\\ClientType::TOKEN);\n        $entity-\u003esetData(\n            [\n                'username' =\u003e '',\n                'access_key' =\u003e ''\n            ]\n        );\n\n        // Request token\n        return $clientToken-\u003egetToken($entity);\n    }\n```\n\n* Create product\n\n```php\n    function getCustomClient()\n    {\n        // generate token\n        $token = $this-\u003egetToken();\n\n        // Create client\n        $clientFactory = new \\Srdorado\\SiigoClient\\Factory\\ClientFactory();\n        $clientProductFactory = $clientFactory-\u003ecreate(\\Srdorado\\SiigoClient\\Enum\\ClientType::PRODUCT);\n        $clientProduct = $clientProductFactory-\u003ecreate();\n        $clientProduct-\u003esetBaseUrl('https://api.siigo.com/');\n        $clientProduct-\u003esetAccessKey($token);\n\n\n        return $clientProduct;\n    }\n\n\n\n    function create()\n    {\n        $clientProduct = $this-\u003egetCustomClient();\n\n        $entity = new \\Srdorado\\SiigoClient\\Model\\Entity(\\Srdorado\\SiigoClient\\Enum\\ClientType::PRODUCT);\n\n        $dataEntity = $this-\u003egetExampleCompleteProduct();\n\n        $entity-\u003esetData($dataEntity);\n\n        $productId = $clientProduct-\u003ecreate($entity);\n\n        $this-\u003eassertTrue(true);\n    }\n```\n\n## Versioning\n\nVersion numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility\nbreaking changes will be kept to a minimum but be aware that these can occur.\nLock your dependencies for production and test your code when upgrading.\n\n## License\n\nThis bundle is under the MIT license. For the full copyright and license\ninformation please view the LICENSE file that was distributed with this source code.\n\n## Donations\n\n[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/paypalme/srdorado01)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrdorado%2Fsiigo-client-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrdorado%2Fsiigo-client-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrdorado%2Fsiigo-client-php/lists"}