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

ActiveLibrary[API Development](/categories/api)

stellarsecurity/stellar-laravel-devices
=======================================

Stellar Devices API client for Laravel

v1.0.1(3mo ago)096proprietaryPHPPHP &gt;=8.1

Since Dec 10Pushed 3mo agoCompare

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

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

Stellar Laravel Devices
=======================

[](#stellar-laravel-devices)

stellarsecurity/stellar-laravel-devices is a Laravel package providing a complete client wrapper for the Stellar Devices API.

Features
--------

[](#features)

- Add/register devices
- Delete devices
- List all devices under an identifier
- Static human-friendly device name generator
- Laravel auto-discovery (service provider + facade)

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

[](#installation)

```
composer require stellarsecurity/stellar-laravel-devices
```

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

[](#configuration)

```
php artisan vendor:publish --provider="StellarSecurity\DeviceApi\StellarDeviceServiceProvider" --tag=config
```

Add to your `.env`:

```
STELLAR_DEVICE_API_BASE_URL="https://stellardevicesapiprod.azurewebsites.net/api/"
APPSETTING_API_USERNAME_STELLAR_DEVICE_API="your-api-username"
APPSETTING_API_PASSWORD_STELLAR_DEVICE_API="your-api-password"
STELLAR_DEVICE_API_TIMEOUT=10
```

### Custom device-name pool

[](#custom-device-name-pool)

By default, the package ships with a built-in JSON name pool at `resources/names.json` (thousands of names) to reduce collisions.

You can override the pool in `config/stellar-device.php`:

```
return [
  // ...
  'names' => ['Allison', 'Arthur', 'Ana'],
  'names_path' => storage_path('app/device-names.json'),
];
```

The JSON file can be either:

- An array: `[...]`
- Or an object: `{ "names": [...] }`

Usage Example
-------------

[](#usage-example)

```
use StellarDevice;

// Add device
$response = StellarDevice::add('customer-123', 'Office MacBook', true);

// Or: generate a human-friendly random name
$name = StellarDevice::randomName();
$response = StellarDevice::add('customer-123', $name, true);

// Or: let the package pick a random name for you
$response = StellarDevice::addRandom('customer-123', true);

// List devices
$response = StellarDevice::devices('customer-123');

// Delete device
$response = StellarDevice::delete('customer-123', 'Office MacBook');
```

API Methods
-----------

[](#api-methods)

- `add(string $identifier, string $name, bool $returnDevices = false)`
- `addRandom(string $identifier, bool $returnDevices = false)`
- `delete(string $identifier, string $name)`
- `devices(string $identifier)`
- `names(int $count = 25, bool $withSuffix = false)`
- `randomName(bool $withSuffix = false)`

License
-------

[](#license)

Proprietary – part of the Stellar Security ecosystem.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance80

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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

Total

2

Last Release

108d 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 (4 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-stellar-laravel-devices/health.svg)

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

###  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)[knplabs/github-api

GitHub API v3 client

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

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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