Skip to content

dev-pmilinvest/laravel-mondialrelay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Client to use the MondialRelay API

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 pmilinvest/laravel-mondialrelay

If you're on Laravel 5.4 or earlier, you'll need to add the following to your config/app.php :

Configuration

You need configure your MondialRelay ids :

You have two solutions :

php artisan vendor:publish --tag=laravel_mondialrelay_config

Usage

use Pmilinvest\LaravelMondialRelay\Facades\LaravelMondialRelay;

$client = LaravelMondialRelay::client();

$shops = $client->findDeliveryPoints([
    'Pays'            => 'FR',
    'Ville'           => 'Paris',
    'CP'              => '75000',
    'DelaiEnvoi'      => "0",
    'RayonRecherche'  => '20',
    'NombreResultats' => '10',
]);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages