apsg/baselinker is a Laravel package for baselinker integration.
It currently has 0 GitHub stars and 284 downloads on Packagist (latest version 0.1.3).
Install it with composer require apsg/baselinker.
Discover more Laravel packages by apsg
or browse all Laravel packages to compare alternatives.
Last updated
https://api.baselinker.com
Jus use:
composer require apsg/baselinker
The package should be auto-discovered by Laravel.
After installation add the BASELINKER_TOKEN={your-token} to your .env file.
Use Baselinker facade and use one of shortcut methods:
Example:
use Apsg\Baselinker\Facades\Baselinker;
$categories = Baselinker::categories()->getCategories();
Default storage is set to Baselinker's default bl_1.
One can change the default storage globally by setting the BASELINKER_STORAGE value in their env file.
To change the storage dynamically use the setStorage(...) helper method on any baselinker support class.
Example:
use Apsg\Baselinker\Facades\Baselinker;
$productsInOtherStorage = Baselinker::products()->setStorage('storage_id');
$products = $productsInOtherStorage->getProductsList();
$newProduct = $productsInOtherStorage->addProduct($someProductData);
See baselinker docs for reference.
getStoragesListaddCategorygetCategoriesaddProductgetProductsListaddOrdergetOrderStatusList