定制 deniztezcan/laravel-sendcloud-shipping 二次开发

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

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

deniztezcan/laravel-sendcloud-shipping

Composer 安装命令:

composer require deniztezcan/laravel-sendcloud-shipping

包简介

Laravel Wrapper for the SendCloud Shipping API

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

A Laravel Wrapper for the SendCloud Shipping API based on the picqer/sendcloud-php-client package.

Instalation

composer require deniztezcan/laravel-sendcloud-shipping

Add a ServiceProvider to your providers array in config/app.php:

    'providers' => [
    	//other things here

    	DenizTezcan\SendCloud\SendCloudServiceProvider::class,
    ];

Add the facade to the facades array:

    'aliases' => [
    	//other things here

    	'SendCloud' => DenizTezcan\SendCloud\Facades\SendCloud::class,
    ];

Finally, publish the configuration files:

php artisan vendor:publish --provider="DenizTezcan\SendCloud\SendCloudServiceProvider"

Configuration

Please set your API: key and secret in the config/shipping-sendcloud.php

Usage

To create and get a printable label you can use the following code. The ordernumber is optional.

<?php

use DenizTezcan\SendCloud\Entities\Customer;
$customer = new Customer([
	'name' => 'John Doe',
	'company_name' => 'ACME Bank',
	'street_address' => 'Main St',
	'street_address_nr' => '123',
	'city' => 'Anytown',
	'postal_code' => '12345',
	'country' => 'DE',
]);

$parcel = SendCloud::createSingleParcel($customer, 89, 'ORDERNO');
SendCloud::getPDFFromSingleParcel($parcel);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固