PHPackages                             basketin/basketin-api-php - 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. basketin/basketin-api-php

ActiveLibrary[API Development](/categories/api)

basketin/basketin-api-php
=========================

Monitoring and analyzing the shopping carts of customers, knowing the abandoned carts, and taking effective action with it.

01PHP

Since Oct 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/basketin/basketin-api-php)[ Packagist](https://packagist.org/packages/basketin/basketin-api-php)[ RSS](/packages/basketin-basketin-api-php/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Basketin api PHP
================

[](#basketin-api-php)

Install
-------

[](#install)

```
composer require basketin/basketin-api-php
```

Usage
-----

[](#usage)

### Set config

[](#set-config)

```
use Basketin\Api\Config;

$config = new Config([
    'basket' => '',
    'token' => '',
    'customer_identity' => '',
]);
```

### Create an instance of the client

[](#create-an-instance-of-the-client)

```
use Basketin\Api\BasketinApiClient;

$client = new BasketinApiClient($config);
```

### Item model

[](#item-model)

#### Add new item to cart

[](#add-new-item-to-cart)

```
$client->item->create([
    'quantity' => ,
    'price' => ,
    'product' => [
        'increment_id' => ,
        'name' => '',
        'image' => '',
    ],
]);
```

#### Destroy item from cart

[](#destroy-item-from-cart)

```
$client->item->destroy([
    'product' => [
        'increment_id' => ,
    ],
]);
```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31162701?v=4)[komicho](/maintainers/komicho)[@komicho](https://github.com/komicho)

---

Top Contributors

[![komtcho](https://avatars.githubusercontent.com/u/12757671?v=4)](https://github.com/komtcho "komtcho (21 commits)")

### Embed Badge

![Health badge](/badges/basketin-basketin-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/basketin-basketin-api-php/health.svg)](https://phpackages.com/packages/basketin-basketin-api-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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