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.4(yesterday)0148proprietaryPHPPHP ^8.2

Since Dec 22Pushed 2w 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 today

READMEChangelog (4)Dependencies (4)Versions (6)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

45

↑

FairBetter than 91% of packages

Maintenance98

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Every ~48 days

Total

5

Last Release

1d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/150491881?v=4)[Bob](/maintainers/stellar-security-os)[@stellar-security-os](https://github.com/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 (2 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.7k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

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