PHPackages                             swellstores/swell-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. [HTTP &amp; Networking](/categories/http)
4. /
5. swellstores/swell-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

swellstores/swell-php
=====================

Swell API library for PHP

1.2.2(1mo ago)91.1k[1 PRs](https://github.com/swellstores/swell-php/pulls)MITPHP &gt;=7.4.0

Since Mar 7Compare

[ Source](https://github.com/swellstores/swell-php)[ Packagist](https://packagist.org/packages/swellstores/swell-php)[ Docs](https://swellstores.com)[ RSS](/packages/swellstores-swell-php/feed)WikiDiscussions Synced 2d ago

READMEChangelog (1)DependenciesVersions (6)Used By (0)

Swell API library for PHP
-------------------------

[](#swell-api-library-for-php)

[Swell](https://www.swell.is) is a customizable, API-first platform for powering modern B2C/B2B shopping experiences and marketplaces. Build and connect anything using your favorite technologies, and provide admins with an easy to use dashboard.

Example
-------

[](#example)

```
require_once("/path/to/swell-php/lib/Swell.php");

$swell = new Swell\Client('my-store', 'secret-key');

$products = $swell->get('/products', [
  'category' => 't-shirts'
]);

print_r($products);
```

or with [Composer](https://getcomposer.org/doc/05-repositories.md#vcs)

**composer.json**

```
"require": {
  "swellstores/swell-php": "dev-master"
},
"repositories": [
	{
		"type": "vcs",
		"url": "git@github.com:swellstores/swell-php.git"
	}
]
```

Then run `composer update` to download and install the library

```
require __DIR__ . '/vendor/autoload.php';

$swell = new Swell\Client('my-store', 'secret-key');

$products = $swell->get('/products', [
  'category' => 't-shirts'
]);

print_r($products);
```

Caching
-------

[](#caching)

This library provides in-memory caching enabled by default, using a version protocol that means you don't have to worry about stale cache. Records that don't change too frequently, such as products, will always return from cache when possible.

To disable caching behavior, use the option `cache: false`.

```
$swell = new Swell\Client('my-store', 'secret-key', [
	'cache' => false
]);
```

Documentation
-------------

[](#documentation)

API reference:

Universal JavaScript client for Swell's Frontend API (Swell.js):

CA certificates
---------------

[](#ca-certificates)

TLS certificate verification uses the bundled Mozilla CA certificate store at `data/ca-certificates.crt` via `lib/Connection.php`. Keep this file current before publishing releases that may be used with `verify_cert` enabled.

To update it, download the current PEM bundle from  and replace `data/ca-certificates.crt`, preserving the filename because it is referenced directly by the client.

Contributing
------------

[](#contributing)

Pull requests are welcome

License
-------

[](#license)

MIT

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance92

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

40d ago

### Community

Maintainers

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

---

Top Contributors

[![ericingram](https://avatars.githubusercontent.com/u/952134?v=4)](https://github.com/ericingram "ericingram (8 commits)")[![maarten2424](https://avatars.githubusercontent.com/u/9212793?v=4)](https://github.com/maarten2424 "maarten2424 (2 commits)")[![logeshswell](https://avatars.githubusercontent.com/u/100766131?v=4)](https://github.com/logeshswell "logeshswell (1 commits)")[![papertokyo](https://avatars.githubusercontent.com/u/8597335?v=4)](https://github.com/papertokyo "papertokyo (1 commits)")

---

Tags

apiclientrestpaymentsecommerceswell

### Embed Badge

![Health badge](/badges/swellstores-swell-php/health.svg)

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

###  Alternatives

[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)[artesaos/laravel-linkedin

Linkedin API integration for Laravel and Lumen 5

5666.5k](/packages/artesaos-laravel-linkedin)[jsor/hal-client

A lightweight client for consuming and manipulating Hypertext Application Language (HAL) resources.

2226.0k1](/packages/jsor-hal-client)

PHPackages © 2026

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