定制 blackcart/lob-php 二次开发

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

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

blackcart/lob-php

最新稳定版本:4.1.0

Composer 安装命令:

composer require blackcart/lob-php

包简介

3.5.6 fork of lob/lob-php to include International Autocompletions

README 文档

README

PHP version Build Status Coverage Status

Lob.com PHP Client is a simple but flexible wrapper for the Lob.com API. See full Lob.com documentation here. For best results, be sure that you're using the latest version of the Lob API and the latest version of the PHP wrapper.

Table of Contents

Getting Started

Here's a general overview of the Lob services available, click through to read more.

Please read through the official API Documentation to get a complete sense of what to expect from each endpoint.

Registration

First, you will need to first create an account at Lob.com and obtain your Test and Live API Keys.

Once you have created an account, you can access your API Keys from the Settings Panel.

Installation

The recommended way to install Lob.com PHP Client is through Composer.

// Install Composer
curl -sS https://getcomposer.org/installer | php

// Add Lob.com PHP client as a dependency
php composer.phar require lob/lob-php

// Add all dependencies necessary to run php composer.phar install


After installing, you need to require Composer's autoloader in your files:

```php
require 'vendor/autoload.php';

Usage

// Provide an API Key in the class constructor
// in order to instantiate the Lob object
$apiKey = 'API Key here';
$lob = new \Lob\Lob($apiKey);

Examples

We've provided various examples for you to try out here.

There are simple scripts to demonstrate how to create all the core Lob objects (checks, letters, postcards. etc.) as well as more complex examples that utilize other libraries and external files.

Testing

Lob.com PHP Client uses PHPUnit for unit testing.

In order to run the unit tests, you'll first need to install the dependencies using Composer.

composer install --dev # For PHP 5.6
composer install       # For PHP >= 7.0

Once the dependencies have been installed, the tests can be run with

LOB_API_KEY=<YOUR_API_KEY_HERE> php vendor/bin/phpunit

To get a code coverage report after running the test suite, run

php vendor/bin/coveralls -v

=======================

Copyright © 2018 Lob.com

Released under the MIT License, which can be found in the repository in LICENSE.txt.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 22
  • 开发语言: PHP

其他信息

  • 授权协议: unlicense
  • 更新时间: 2022-09-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固