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

ActiveLibrary[API Development](/categories/api)

stellarsecurity/subscription-laravel
====================================

Stellar Security Subscription client for PHP/Laravel – simple wrapper around the Stellar Subscription API.

v1.0.2(5mo ago)0228MITPHPPHP &gt;=8.1

Since Nov 29Pushed 5mo agoCompare

[ Source](https://github.com/StellarSecurity-Packages/stellarsecurity-subscription-laravel)[ Packagist](https://packagist.org/packages/stellarsecurity/subscription-laravel)[ RSS](/packages/stellarsecurity-subscription-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (3)Used By (0)

Stellar Security Subscription Laravel
=====================================

[](#stellar-security-subscription-laravel)

Lightweight Laravel wrapper for the internal **Stellar Subscription API**.
It gives you a simple `SubscriptionService` + `StellarSubscription` facade that other Stellar apps can reuse via `composer require`.

> All comments in code are in English.

---

Installation
------------

[](#installation)

```
composer require stellarsecurity/subscription-laravel
```

Laravel package auto-discovery will register the service provider and facade for you:

- Provider: `StellarSecurity\SubscriptionLaravel\Providers\SubscriptionServiceProvider`
- Facade: `StellarSubscription`

If you want to disable auto-discovery, you can still register them manually in `config/app.php`.

---

Configuration
-------------

[](#configuration)

Publish the config (optional):

```
php artisan vendor:publish --tag=stellar-subscription-config
```

Environment variables used:

```
# External API base URL (normally you keep the default)
STELLAR_SUBSCRIPTION_BASE_URL=https://stellersubscriptionapiprod.azurewebsites.net/api/

# Names of env vars that hold Basic Auth credentials
STELLAR_SUBSCRIPTION_USERNAME_ENV=APPSETTING_API_USERNAME_STELLER_SUBSCRIPTION_API
STELLAR_SUBSCRIPTION_PASSWORD_ENV=APPSETTING_API_PASSWORD_STELLER_SUBSCRIPTION_API

# And then you actually define these:
APPSETTING_API_USERNAME_STELLER_SUBSCRIPTION_API=your-username
APPSETTING_API_PASSWORD_STELLER_SUBSCRIPTION_API=your-password
```

---

Usage
-----

[](#usage)

### Via Facade

[](#via-facade)

```
use StellarSubscription;
use StellarSecurity\SubscriptionLaravel\Enums\SubscriptionType;

// Find all subscriptions for a user
$response = StellarSubscription::findUserSubscriptions(123, SubscriptionType::VPN->value);

if ($response->successful()) {
    $data = $response->json();
}
```

### Via Dependency Injection

[](#via-dependency-injection)

```
use StellarSecurity\SubscriptionLaravel\SubscriptionService;

class SomeController
{
    public function index(SubscriptionService $subs)
    {
        $response = $subs->user(123);

        if ($response->successful()) {
            // ...
        }
    }
}
```

---

Enums
-----

[](#enums)

The package ships with two simple enums you can reuse across projects:

```
use StellarSecurity\SubscriptionLaravel\Enums\SubscriptionStatus;
use StellarSecurity\SubscriptionLaravel\Enums\SubscriptionType;

SubscriptionStatus::ACTIVE;
SubscriptionType::ANTIVIRUS;
```

---

About Stellar Security
----------------------

[](#about-stellar-security)

Stellar Security is building a Swiss-based privacy &amp; security ecosystem:
hardened phones, VPN, antivirus, secure cloud, and more — all designed with a security-first mindset.

This package is a small building block so **any** Stellar Laravel app can talk to the shared Subscription API using one consistent client.

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance76

Regular maintenance activity

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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 ~0 days

Total

2

Last Release

160d 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 (7 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M474](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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