承接 jeroenboesten/shops-united-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

jeroenboesten/shops-united-laravel

Composer 安装命令:

composer require jeroenboesten/shops-united-laravel

包简介

Laravel wrapper for the ShopsUnited API

README 文档

README

Latest Version on Packagist Scrutinizer Code Quality StyleCI Total Downloads

This Laravel package functions as a wrapper for the Shops United API. To see more about the specific API visit: Shops United API Docs.

This package is not affiliated with, funded, or in any way associated with Shops United, but is maintained in spare time.

Installation

You can install the package via composer:

composer require jeroenboesten/shops-united-laravel

Environment variables

Add the UserId and API Key to your environment variables.

SHOP_UNITED_ACCOUNT_ID=
SHOP_UNITED_API_KEY=

Optionally you can set if the ssl certificate should be verified, by adding a environment variable. By default the ssll certificate is verified on production but NOT verified on local environments.

SHOPS_UNITED_VERIFY_SSL=true

Usage

After you installed the package you start using it by creating an instance. After that you can select one of the available modules (Shipments or Accounts) and use the methods in there.

    $shopsUnited = new \JeroenBoesten\ShopsUnitedLaravel\ShopsUnitedLaravel(); // Create a new ShopsUnitedLaravel instance.
    $shopsUnited->accounts()->validate(); // Validates the API Key and User ID.
    $shopsUnited->shipments()->types(); // List all types of shipments that are available for the account, can be used for creating a new shipment.
    $shopsUnited->shipments()->list(); // Lists last 50 shipments.

To create a new shipment over the api you can use the Shipments()->create() method with first the mandatory fields and after that a array with optional parameters (for a list of optional parameters visit the api docs).

$shopsUnited->shipments()->create("PostNL", "Standaard pakket", "Order Aanvraag: 1502", "Arno Niem", "Straatweg", "14", "1111AB", "Amsterdam", 1, 1, ['NietLeverenBijDeBuren' => true])

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email info@jeroenboesten.nl instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固