定制 turtledesign/royalmail-php 二次开发

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

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

turtledesign/royalmail-php

最新稳定版本:0.4.0.2

Composer 安装命令:

composer require turtledesign/royalmail-php

包简介

PHP module for interfacing with the Royal Mail shipping api : http://www.royalmail.com/corporate/services/shipping-api

README 文档

README

Build Status

This repository contains a PHP SDK/Interface for the (UK) Royal Mail's Shipping API

This is not an official SDK, we (http://www.turtledesign.com/) are a 3rd party integrator releasing the module with an open source licence because why not.

Prerequisites

  • PHP 5.4 or above (testing requires version 5.6 or above due to the Atoum test module requirements).
  • soap & openssl extensions must be enabled
  • fileinfo required for testing.

Installation

- Using Composer

composer is the recommended way to install the SDK. To use the SDK with project, add the following dependency to your application's composer.json and run composer update --no-dev to fetch the SDK.

You can download composer using instructions on Composer Official Website.

Prerequisites

Steps to Install :

Currently, the SDK is available at https://packagist.org. To use it in your project, you need to include it as a dependency in your project composer.json file. It can be done in two ways :

  • Running composer require 'turtledesign/royalmail-php:*@dev' command on your project root location (where project composer.json is located.)

  • Or, manually editing composer.json file require field, and adding "turtledesign/royalmail-php" : "*@dev" inside it.

The resultant sample composer.json would look like this:

{
  ...

  "name": "sample/website",
  "require": {
  	"turtledesign/royalmail-php" : "*@dev"
  }

  ...
}

- Direct Download (without using Composer)

If you do not want to use composer, you can grab the SDK zip that contains Royal Mail API SDK with all its dependencies with it.

Steps to Install :

  • Download zip archive with desired version from our Releases. Each release will have a direct-download-*.zip that contains PHP Rest API SDK and its dependencies.

  • Unzip and copy vendor directory inside your project, e.g. project root directory.

  • If your application has a bootstrap/autoload file, you should add include '<vendor directory location>/vendor/autoload.php' in it. The location of the <vendor directory> should be replaced based on where you downloaded vendor directory in your application.

  • This autoload.php file registers a custom autoloader that can autoload the Royal Mail SDK files, that allows you to access PHP SDK system in your application.

More help

统计信息

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

GitHub 信息

  • Stars: 20
  • Watchers: 4
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固