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

ActiveLibrary[API Development](/categories/api)

stellarsecurity/esim-laravel
============================

Thin Laravel client for Stellar Simcard API (/v1/sim/\*).

v1.0.1(5mo ago)057MITPHPPHP ^8.2

Since Dec 11Pushed 5mo agoCompare

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

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

stellarsecurity-esim-laravel
============================

[](#stellarsecurity-esim-laravel)

Thin Laravel client for the Stellar Simcard API.

The Simcard API exposes:

- `GET  /v1/sim/plans`
- `POST /v1/sim/order`
- `GET  /v1/sim/query/{planId}`

This package just makes it easy to call those endpoints from any Laravel project.

No controllers, no routes, no migrations. You keep your own API; this package just gives you a typed client.

---

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

[](#installation)

```
composer require stellarsecurity/esim-laravel
```

Laravel will auto-discover the service provider.

Optionally publish the config:

```
php artisan vendor:publish --tag=sim-config
```

---

Configuration (.env)
--------------------

[](#configuration-env)

```
SIM_API_BASE_URL=https://sim-api.stellar.your-domain.com/api
SIM_API_USERNAME=your-basic-auth-username
SIM_API_PASSWORD=your-basic-auth-password
```

These are the credentials and base URL of the **Simcard API** that actually owns the `/v1/sim/*` routes.

---

Usage
-----

[](#usage)

Inject `SimApiClient` anywhere in your app:

```
use StellarSecurity\EsimLaravel\Client\SimApiClient;

class SomeService
{
    public function __construct(
        private readonly SimApiClient $simApi,
    ) {}

    public function example(): void
    {
        // Get plans
        $plans = $this->simApi->plans();

        // Create order
        $orderResponse = $this->simApi->order([
            'plan_id'     => 'client-generated-plan-id',
            'packageCode' => 'EU_10GB_30DAYS',
            'account_ref' => 'optional-account-ref',
        ]);

        // Query by plan_id
        $status = $this->simApi->query('client-generated-plan-id');
    }
}
```

Or use it directly in a controller:

```
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use StellarSecurity\EsimLaravel\Client\SimApiClient;

class EsimController
{
    public function __construct(
        private readonly SimApiClient $simApi,
    ) {}

    public function plans(Request $request): JsonResponse
    {
        $plans = $this->simApi->plans($request->all());

        return response()->json($plans);
    }
}
```

---

What this package is **not**
----------------------------

[](#what-this-package-is-not)

- It is **not** the Simcard API itself.
- It does **not** define routes or controllers.
- It does **not** define the `simcards` table.

It is a **small HTTP client** so your other projects can talk to the Simcard API's:

- `/v1/sim/plans`
- `/v1/sim/order`
- `/v1/sim/query/{planId}`

using configured base URL + basic auth, without copy/pasting HTTP calls every time.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance73

Regular maintenance activity

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

152d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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