PHPackages                             vendus/vendus-sdk-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. vendus/vendus-sdk-php

ActiveLibrary[API Development](/categories/api)

vendus/vendus-sdk-php
=====================

Vendus SDK for PHP

1.0.3(8y ago)69.7k↓25%10[2 PRs](https://github.com/vendus/vendus-sdk-php/pulls)MITPHPPHP &gt;=5.4.0

Since Feb 5Pushed 10mo ago3 watchersCompare

[ Source](https://github.com/vendus/vendus-sdk-php)[ Packagist](https://packagist.org/packages/vendus/vendus-sdk-php)[ Docs](https://www.vendus.pt/)[ RSS](/packages/vendus-vendus-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Vendus SDK for PHP
==================

[](#vendus-sdk-for-php)

Vendus SDK for PHP is an opensource library that enables PHP developers to integrate with [Vendus API](https://www.vendus.pt/ws/), made available by [Vendus](https://www.vendus.pt/), an online invoicing software.

By using this API, users can easily integrate third party software with Vendus.

Sign up for a Vendus account
----------------------------

[](#sign-up-for-a-vendus-account)

Before starting, please signup for a [Vendus](https://www.vendus.pt/) account, if you haven't already, and retrieve your *API KEY*.

System requirements
-------------------

[](#system-requirements)

- Curl installed
- PHP 5.4 or greater with curl and openssl enabled
- [Composer](https://getcomposer.org/) *(optional)*

Additional requirements for Windows
-----------------------------------

[](#additional-requirements-for-windows)

If you get errors like "SSL certificate error: unable to get local issuer certificate", you should follow these steps:

- Download bundle certificate: .
- Copy cacert.pem to a local folder - eg: c:\\wamp\\
- Open your php.ini and add the following lines at the end

```
curl.cainfo="C:/wamp/cacert.pem"
openssl.cafile="C:/wamp/cacert.pem"

```

- If your are using Wamp, besides editing the php.ini acessible through the system tray, you also have to edit the file located at c:\\wamp\\bin\\php\\phpX.x.x\\
- Restart all services.

Install the SDK
---------------

[](#install-the-sdk)

Using [Composer](http://getcomposer.org) is the recommended way to install the Vendus SDK for PHP.

The SDK is available via [Packagist](http://packagist.org) under the [`vendus/vendus-sdk-php`](https://packagist.org/packages/vendus/vendus-sdk-php) package.

Run this command:

```
composer require vendus/vendus-sdk-php
```

Using the SDK
-------------

[](#using-the-sdk)

The best way to become familiar with how to use the SDK is to read the [Documentation](./docs/).

We also have some [Examples](./docs/examples/) that may help you become familiar with all the concepts.

Basically, you instantiate `Vendus\Api` and then, while specifying an endpoind, you issue one of the methods available: `list`, `get`, `create` or `update`.

A basic example on how to get a list of documents:

```
