PHPackages                             basket/add-to-basket - 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. basket/add-to-basket

ActiveLibrary

basket/add-to-basket
====================

Statamic addon to integrate with Basket app

v0.0.23(2y ago)016.3k↓43.2%proprietaryVue

Since Sep 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/intenttechnologies/basket-web-publisher-statamic-addon)[ Packagist](https://packagist.org/packages/basket/add-to-basket)[ RSS](/packages/basket-add-to-basket/feed)WikiDiscussions development Synced 1mo ago

READMEChangelog (10)DependenciesVersions (26)Used By (0)

Add To Basket
=============

[](#add-to-basket)

> Statamic addon to simplify adding an Add to Basket button on your website

How to Install
--------------

[](#how-to-install)

Run this command from the root of your Statamic project

```
composer require basket/add-to-basket
php artisan vendor:publish --tag=add-to-basket-config --force
php artisan vendor:publish --tag=add-to-basket-template --force
```

Add your api\_key to env file

```
ADD_TO_BASKET_API_KEY=xxx

```

Set the environment to either `staging` when testing or `production`

```
ADD_TO_BASKET_ENVIRONMENT=staging

```

Configure the button template at `views/vendor/basket/add-to-basket-button.blade.php`

How to Use
----------

[](#how-to-use)

1. Add the Add To Basket field to your page blueprint with the handle `add_to_basket`
2. Click the Add To Basket 'Enabled' checkbox in the page entry and Save
3. Add script tag to your template `{{ basket:script_tag | raw }}`
4. Add style tag to your template `{{ basket:style_tag }}`
5. Add the button to your template:

```
{{ if add_to_basket.enabled && add_to_basket.links | length }}
   {{ basket:share_modal_button data={{add_to_basket}} | raw }}
{{ /if }}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~4 days

Recently: every ~13 days

Total

23

Last Release

879d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba8b3f0af66d099293e0c1f06957c9475ec4f442936d8b52035b7d72d484a1dd?d=identicon)[Matt\_at\_Basket](/maintainers/Matt_at_Basket)

![](https://www.gravatar.com/avatar/673deb7019e47caa40fec1e3bc94c22059b64831d38fdda9f9a9cc2d05336645?d=identicon)[Basket](/maintainers/Basket)

---

Top Contributors

[![bindoff](https://avatars.githubusercontent.com/u/254375?v=4)](https://github.com/bindoff "bindoff (32 commits)")

### Embed Badge

![Health badge](/badges/basket-add-to-basket/health.svg)

```
[![Health](https://phpackages.com/badges/basket-add-to-basket/health.svg)](https://phpackages.com/packages/basket-add-to-basket)
```

PHPackages © 2026

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