kwaadpepper/laravel-mondialrelay
最新稳定版本:1.1.0
Composer 安装命令:
composer require kwaadpepper/laravel-mondialrelay
包简介
Client Laravel pour l'API Mondial Relay
README 文档
README
Description
This package uses QuentinBontemps/php-mondialrelay-api.
This client allow to use the Mondial Relay Soap API with Laravel.
Requirements
- PHP >= 5.6
- php-soap extension
Installation
composer require cephee/laravel-mondialrelay
If you're on Laravel 5.4 or earlier, you'll need to add the following to your config/app.php :
'providers' => [ // ... \Cephee\LaravelMondialRelay\LaravelMondialRelayServiceProvider::class, ],
Configuration
You need configure your MondialRelay ids :
You have two solutions :
-
.env:- MONDIAL_RELAY_ENVIRONMENT=demo|prod (DEFAULT : demo)
- MONDIAL_RELAY_SITE_ID=xxx
- MONDIAL_RELAY_SITE_KEY=xxx
- MONDIAL_RELAY_WSDL=XXX (DEFAULT : https://api.mondialrelay.com/Web_Services.asmx?WSDL)
-
publish config file :
php artisan vendor:publish --tag=laravel_mondialrelay_config
Usage
use Cephee\LaravelMondialRelay\Facades\LaravelMondialRelay; $client = LaravelMondialRelay::client(); $shops = $client->findDeliveryPoints([ 'Pays' => 'FR', 'Ville' => 'Paris', 'CP' => '75000', 'DelaiEnvoi' => "0", 'RayonRecherche' => '20', 'NombreResultats' => '10', ]);
Contribution
Contributions are always welcome.
统计信息
- 总下载量: 51
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-23