PHPackages                             apsg/baselinker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. apsg/baselinker

ActiveLibrary[API Development](/categories/api)

apsg/baselinker
===============

Baselinker Integration

0.1.3(4y ago)0271MITPHP

Since Oct 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/apsg/Baselinker)[ Packagist](https://packagist.org/packages/apsg/baselinker)[ Docs](https://github.com/apsg/Baselinker)[ RSS](/packages/apsg-baselinker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

### Laravel Baselinker API integration

[](#laravel-baselinker-api-integration)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7cacb5b31d95f7a0e9e964fbb6914b2cbda320d73539de75d76fd33dd101bc14/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617073672f626173656c696e6b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/apsg/baselinker)[![Total Downloads](https://camo.githubusercontent.com/d17f437170a2576181a9db0dc3501c427ba3468f4a9a1d2b79d1eeab9b82338d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617073672f626173656c696e6b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/apsg/baselinker)

##### Baselinker docs:

[](#baselinker-docs)

#### Installation

[](#installation)

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.

#### Usage

[](#usage)

Use `Baselinker` facade and use one of shortcut methods:

- products()
- categories()
- orders()
- storages()

Example:

```
use Apsg\Baselinker\Facades\Baselinker;

$categories = Baselinker::categories()->getCategories();
```

###### Change default storage

[](#change-default-storage)

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);
```

##### Currently covered methods:

[](#currently-covered-methods)

See [baselinker docs](https://api.baselinker.com) for reference.

###### Storages:

[](#storages)

- `getStoragesList`

###### Categories:

[](#categories)

- `addCategory`
- `getCategories`

###### Products:

[](#products)

- `addProduct`
- `getProductsList`

###### Orders:

[](#orders)

- `addOrder`
- `getOrderStatusList`

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~189 days

Total

4

Last Release

1482d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e36c1cb8ed85fdfb1c40d47597ad48efeb1858f76edc205481409cc0d539644c?d=identicon)[Gacek](/maintainers/Gacek)

---

Top Contributors

[![apsg](https://avatars.githubusercontent.com/u/3952574?v=4)](https://github.com/apsg "apsg (9 commits)")[![gacek-callpage](https://avatars.githubusercontent.com/u/39825192?v=4)](https://github.com/gacek-callpage "gacek-callpage (1 commits)")

---

Tags

laravelbaselinker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/apsg-baselinker/health.svg)

```
[![Health](https://phpackages.com/badges/apsg-baselinker/health.svg)](https://phpackages.com/packages/apsg-baselinker)
```

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[kirschbaum-development/laravel-openapi-validator

Automatic OpenAPI validation for Laravel HTTP tests

581.1M5](/packages/kirschbaum-development-laravel-openapi-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
