PHPackages                             stedop/starcitizens - 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. stedop/starcitizens

ActiveLibrary[API Development](/categories/api)

stedop/starcitizens
===================

An API wrapper for the sc-api.com API.

v1.1(10y ago)114MITPHPPHP &gt;=5.6

Since Dec 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/stedop/starcitizens)[ Packagist](https://packagist.org/packages/stedop/starcitizens)[ RSS](/packages/stedop-starcitizens/feed)WikiDiscussions master Synced 4w ago

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

Starcitizens
============

[](#starcitizens)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f2b17b3986fb112be97f62da65c78375507b62718725c23e8ead3b858c78a3cb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f737465646f702f73746172636974697a656e732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/stedop/starcitizens/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/515ad35297967e6ca4fe006c1976e15e501eac224f9e536364926e5b77f63f8c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f737465646f702f73746172636974697a656e732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/stedop/starcitizens/?branch=master)[![Build Status](https://camo.githubusercontent.com/f04afc6b694d3e0a72daf7a3bf3d46a05fd27eef60ff37cfbeeb82b3fa796950/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f737465646f702f73746172636974697a656e732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/stedop/starcitizens/build-status/master)[![Documentation Status](https://camo.githubusercontent.com/28816b502e099e66e4be6f8e9f03f7a9363ef5d679ee7bca66f76585d92a7099/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f73746172636974697a656e732f62616467652f3f76657273696f6e3d6c6174657374)](http://starcitizens.readthedocs.org/en/latest/?badge=latest)[![Release](https://camo.githubusercontent.com/4983083789873b71481c4314a376b33be1712a0b76fb8b4a70b12d7bc49c915d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f737465646f702f73746172636974697a656e732e7376673f7374796c653d666c61742d737175617265)](https://github.com/stedop/starcitizens/releases)[![License](https://camo.githubusercontent.com/c249c28ee0b13298ca7cde33ecc70fd823afe490c0131c5e9700bef32208c5bd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64616e68616e6c792f7369676e616c6572742e7376673f7374796c653d666c61742d737175617265)](http://choosealicense.com/licenses/gpl-2.0/)

A StarCitizen API wrapper. Utilises the API from

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

[](#installation)

You can install this framework with Composer just install Composer and then type

```
composer require stedop/starcitizen ~1.0

```

into the command line at your project root and you're good to

Usage
-----

[](#usage)

To get information

```
use StarCitizen\Accounts\Accounts;

$profile = Accounts::findProfile();
$threads = Accounts::findThreads();
$posts = Accounts::findPosts();

use StarCitizen\Organisations\Organisations;

$org = Organisations::findOrg();
$members = Organisations::findMembers();

```

### Loading other objects after getting some info

[](#loading-other-objects-after-getting-some-info)

If you want to get a profiles' latest posts or threads

```
$profile = Accounts::findProfile();

/*
    ...some code
*/

$posts = $profile->posts;
$threads = $profile->threads;

$members = $org->members;

```

This returns the posts or threads or you don't have to assign the posts or thread to a var, simply use

```
foreach ($profile->posts as $post) {
    // ....your code
}

```

### Eager loading

[](#eager-loading)

If you wanted to load the objects when you find the profile

```
$profile = Accounts::findProfile()->with('posts', 'threads');
$org = Organisations::findOrg()->with('members');

```

### Using StarCitizens directly

[](#using-starcitizens-directly)

You can use the StarCitizens object directly

```
use StarCitizens\StarCitizens
$sc = new StarCitizens();

$profile = $sc->accounts();
$threads = $sc->accounts(, 'threads')

```

Also to get raw json output

```
$profile = $sc->accounts(, '',true);

```

Please review the code for further information

Contributing
------------

[](#contributing)

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

Credits
-------

[](#credits)

Thanks to [Siegen](https://robertsspaceindustries.com/citizens/Siegen) on the RSI forums for building the API (I'm so glad I didn't have to)

License
-------

[](#license)

This project is licensed under the terms of the MIT license.

Copyright (c) 2015 Stephen Dop

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3734d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5964949?v=4)[Stephen Dop](/maintainers/stedop)[@stedop](https://github.com/stedop)

---

Top Contributors

[![stedop](https://avatars.githubusercontent.com/u/5964949?v=4)](https://github.com/stedop "stedop (83 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stedop-starcitizens/health.svg)

```
[![Health](https://phpackages.com/badges/stedop-starcitizens/health.svg)](https://phpackages.com/packages/stedop-starcitizens)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M932](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k34](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[fschmtt/keycloak-rest-api-client-php

PHP client to interact with Keycloak's Admin REST API.

49108.6k2](/packages/fschmtt-keycloak-rest-api-client-php)

PHPackages © 2026

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