PHPackages                             miklcct/nwst-mobile-api - 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. miklcct/nwst-mobile-api

ActiveLibrary[API Development](/categories/api)

miklcct/nwst-mobile-api
=======================

This is a PHP wrapper to call the Citybus / NWFB mobile API

1.0.2(6y ago)08Apache-2.0PHPPHP &gt;=7.3CI failing

Since Apr 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/miklcct/nwst-mobile-api)[ Packagist](https://packagist.org/packages/miklcct/nwst-mobile-api)[ RSS](/packages/miklcct-nwst-mobile-api/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Citybus / NWFB mobile API retriever
===================================

[](#citybus--nwfb-mobile-api-retriever)

This library provides an interface for the Citybus / NWFB mobile API.

The simplest way to create an instance of the API is to use the factory which automatically retrieves the secret from the maintainer.

```
use Miklcct\Nwst\ApiFactory;
use GuzzleHttp\Client;
$api = (new ApiFactory(new Client()))();
```

The following 5 APIs are provided with example usage shown below. All APIs work asynchronously. The return types of the API is stated as phpDoc below.

If the API fails, an exception of type `Miklcct\Nwst\ApiException` is thrown.

```
use Miklcct\Nwst\Model\Eta;
use Miklcct\Nwst\Model\NoEta;
use Miklcct\Nwst\Model\Rdv;
use Miklcct\Nwst\Model\Route;
use Miklcct\Nwst\Model\RouteStop;
use Miklcct\Nwst\Model\StopInfo;
use Miklcct\Nwst\Model\Variant;
use Miklcct\Nwst\Model\VariantInfo;

/** @var Route[] $routes */
$routes = $api->getRouteList()->wait();
/** @var Variant[] $variants */
$variants = $api->getVariantList('970--So_Uk')->wait();
/** @var RouteStop[] $stops */
$stops = $api->getStopList(
    new VariantInfo(
        Route::COMPANY_NWFB
        , Rdv::parse('970-SOU-1')
        , 1
        , 40
        , 10632
        , Route::INBOUND
    )
)->wait();
/** @var StopInfo $stop_info */
$stop_info = $api->getRouteInStopList(1554)->wait();
/** @var Eta[]|NoEta $etas */
$etas = $api->getEtaList('970', 32, 1554, Rdv::parse('970-SOU-1'), 'O')->wait();
```

An example program using this API is provided as `example.php` here.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

2213d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10e7afba9bdfe9e5cb8c200f1552d8e1fc5f3e0a843fb19306858c8aa8e19017?d=identicon)[miklcct](/maintainers/miklcct)

---

Top Contributors

[![miklcct](https://avatars.githubusercontent.com/u/2827264?v=4)](https://github.com/miklcct "miklcct (40 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/miklcct-nwst-mobile-api/health.svg)

```
[![Health](https://phpackages.com/badges/miklcct-nwst-mobile-api/health.svg)](https://phpackages.com/packages/miklcct-nwst-mobile-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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