定制 vendus/vendus-sdk-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vendus/vendus-sdk-php

最新稳定版本:1.0.3

Composer 安装命令:

composer require vendus/vendus-sdk-php

包简介

Vendus SDK for PHP

README 文档

README

Vendus SDK for PHP is an opensource library that enables PHP developers to integrate with Vendus API, made available by Vendus, an online invoicing software.

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

Sign up for a Vendus account

Before starting, please signup for a Vendus account, if you haven't already, and retrieve your API KEY.

System requirements

  • Curl installed
  • PHP 5.4 or greater with curl and openssl enabled
  • Composer (optional)

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: https://curl.haxx.se/ca/cacert.pem.
  • 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

Using Composer is the recommended way to install the Vendus SDK for PHP.

The SDK is available via Packagist under the vendus/vendus-sdk-php package.

Run this command:

composer require vendus/vendus-sdk-php

Using the SDK

The best way to become familiar with how to use the SDK is to read the Documentation.

We also have some 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:

<?php

require 'vendor/autoload.php';

$vendus    = new Vendus\Api('YOUR_API_KEY');
$documents = $vendus->documents->list();

?>

Opening Issues

If you encounter a bug with vendus-sdk-php we would like to hear about it.

Search the existing issues and try to make sure your problem doesn’t already exist before opening a new issue.

统计信息

  • 总下载量: 8.97k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-01