Download the PHP package core45/laravel-baselinker without Composer
On this page you can find all versions of the php package core45/laravel-baselinker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download core45/laravel-baselinker
More information about core45/laravel-baselinker
Files in core45/laravel-baselinker
Package laravel-baselinker
Short Description Laravel Baselinker API integration
License MIT
Informations about the package laravel-baselinker
Baselinker API integration for Laravel
A comprehensive Laravel package for integrating with the Baselinker/Base.com API. This package provides a clean, fluent interface for the Catalog, External Storage, Order, and Shipment modules.
Requirements
- PHP >= 8.1
- Laravel >= 9.0
Installation
Install the package with composer:
Optionally publish the configuration file:
The package is auto-discovered by Laravel. After installation, add your API token to your .env file:
Usage
The Baselinker API is divided into 4 main modules:
| Module | Description |
|---|---|
| Catalog | Product catalog, inventories, price groups, warehouses, categories, manufacturers, tags |
| External Storage | External shops and wholesalers connected to Baselinker |
| Order | Orders, receipts, invoices, order sources, order returns |
| Shipment | Courier shipments, labels, protocols, pickup requests |
Access any module using the Baselinker facade:
Catalog Module
Inventories
Price Groups
Warehouses
Categories
Products
Manufacturers & Tags
External Storage Module
Order Module
Managing Orders
Order Products
Order Statuses & Sources
Receipts & Invoices
Order Returns (New in v2.0)
Shipment Module
Couriers
Creating Shipments
Labels & Protocols
Pickup Requests
Package Status History
Configuration
The configuration file (config/baselinker.php) contains:
API Rate Limiting
Baselinker API has a rate limit of 100 requests per minute. The package does not implement automatic rate limiting, so you should handle this in your application if making many requests.
Error Handling
The package now uses centralized exception handling. If the Baselinker API returns an error, or if there is an HTTP-level failure, the package will throw a \Core45\LaravelBaselinker\Exceptions\BaselinkerException.
You should wrap your API calls in a try...catch block to handle potential errors gracefully.
Official API Documentation
For complete API documentation, visit: https://api.baselinker.com
License
MIT License. See LICENSE for more information.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.