PHPackages                             stellarsecurity/stellarsecurity-commerce-laravel - 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. stellarsecurity/stellarsecurity-commerce-laravel

ActiveLibrary[API Development](/categories/api)

stellarsecurity/stellarsecurity-commerce-laravel
================================================

Laravel client for Stellar Commerce Core/Base API (Client -&gt; UI API -&gt; Base API).

1.0.2(3mo ago)0110proprietaryPHPPHP ^8.2

Since Dec 22Pushed 3mo agoCompare

[ Source](https://github.com/stellar-security-os/stellarsecurity-commerce-laravel)[ Packagist](https://packagist.org/packages/stellarsecurity/stellarsecurity-commerce-laravel)[ RSS](/packages/stellarsecurity-stellarsecurity-commerce-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

stellarsecurity/stellarsecurity-commerce-laravel
================================================

[](#stellarsecuritystellarsecurity-commerce-laravel)

Laravel client package used by UI APIs to call the Stellar Commerce Core/Base API.

Install
-------

[](#install)

```
composer require stellarsecurity/stellarsecurity-commerce-laravel
```

Publish config
--------------

[](#publish-config)

```
php artisan vendor:publish --tag=stellarsecurity-commerce-laravel-config
```

Env
---

[](#env)

```
STELLAR_COMMERCE_CORE_BASE_URL=http://127.0.0.1:8000
STELLAR_COMMERCE_CORE_API_PREFIX=/api/v1

STELLAR_COMMERCE_CORE_BASIC_AUTH_ENABLED=true
STELLAR_COMMERCE_CORE_BASIC_AUTH_USER=stellar
STELLAR_COMMERCE_CORE_BASIC_AUTH_PASS=CHANGE_THIS

STELLAR_COMMERCE_CORE_TIMEOUT_SECONDS=10
STELLAR_COMMERCE_CORE_CONNECT_TIMEOUT_SECONDS=5
STELLAR_COMMERCE_CORE_RETRY_TIMES=2
STELLAR_COMMERCE_CORE_RETRY_SLEEP_MS=200
```

Important trust boundary
------------------------

[](#important-trust-boundary)

The UI API must not send money amounts like shipping/tax/discount. Those must be computed by the Commerce Core API.

Send:

- items
- shipping address (if physical)
- shipping\_method (optional)
- coupon\_code (optional)

Usage
-----

[](#usage)

```
use StellarSecurity\CommerceLaravel\Contracts\CommerceClientContract;
use StellarSecurity\CommerceLaravel\DTO\CheckCouponCodeRequest;
use StellarSecurity\CommerceLaravel\DTO\CreateOrderRequest;
use StellarSecurity\CommerceLaravel\DTO\OrderItem;

public function __construct(private CommerceClientContract $commerce) {}

$req = new CreateOrderRequest(
  idempotencyKey: (string) \Illuminate\Support\Str::uuid(),
  userId: null,
  buyerRef: (string) \Illuminate\Support\Str::uuid(),
  currency: 'EUR',
  items: [ new OrderItem($variantId, 1) ],
  shipping: null,
  shippingMethod: null,
  couponCode: null,
  meta: ['channel' => 'direct']
);

$result = $this->commerce->createOrder($req);

// Check a coupon code (exists + discount info)
$couponResult = $this->commerce->checkCouponCode(
  new CheckCouponCodeRequest(couponCode: 'TEST10')
);
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance82

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~27 days

Total

3

Last Release

94d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/202a0dadbfb1854b49f12eb4b6eb3c1d2eeddebaf79feae169ae402386a5e9d8?d=identicon)[stellar-security-os](/maintainers/stellar-security-os)

---

Top Contributors

[![stellar-security-os](https://avatars.githubusercontent.com/u/150491881?v=4)](https://github.com/stellar-security-os "stellar-security-os (4 commits)")[![bleko1234](https://avatars.githubusercontent.com/u/14978903?v=4)](https://github.com/bleko1234 "bleko1234 (1 commits)")

### Embed Badge

![Health badge](/badges/stellarsecurity-stellarsecurity-commerce-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/stellarsecurity-stellarsecurity-commerce-laravel/health.svg)](https://phpackages.com/packages/stellarsecurity-stellarsecurity-commerce-laravel)
```

###  Alternatives

[spatie/laravel-query-builder

Easily build Eloquent queries from API requests

4.4k26.9M220](/packages/spatie-laravel-query-builder)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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