PHP code example of jrebs / easyship-laravel
1. Go to this page and download the library: Download jrebs/easyship-laravel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jrebs / easyship-laravel example snippets
// Using the app() helper
// app(\Easyship\EasyshipAPI::class) also works
$api = app('easyship.api');
$categories = $api->categories()->list();
// ...or using the Facade
$categories = Easyship::categories()->list();
$handler = app('easyship.handler');
// Can also use app(\Easyship\Webhooks\Handler::class)
$handler->handle($signature, $payload);
sh
php artisan vendor:publish --provider=Easyship\\Providers\\EasyshipServiceProvider