PHPackages                             lotfio/vstat - 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. lotfio/vstat

ActiveLibrary[API Development](/categories/api)

lotfio/vstat
============

Vatsim statistics PHP API

0.2.0(6y ago)18575[2 PRs](https://github.com/lotfio/vstat/pulls)MITPHPPHP ^7.2

Since Jan 4Pushed 4y ago3 watchersCompare

[ Source](https://github.com/lotfio/vstat)[ Packagist](https://packagist.org/packages/lotfio/vstat)[ RSS](/packages/lotfio-vstat/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (1)Versions (7)Used By (0)

 [![Vstat Preview](https://user-images.githubusercontent.com/18489496/49801711-30eccd00-fd4b-11e8-8743-9af2560c983e.png)](https://user-images.githubusercontent.com/18489496/49801711-30eccd00-fd4b-11e8-8743-9af2560c983e.png)

 [![License](https://camo.githubusercontent.com/6e0a9ea6c2bdfc1181309ec1d4e77ff67c60f89abb1e8617ea9c4f8937295a08/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e63652d4d49542d6666643332612e737667)](https://camo.githubusercontent.com/6e0a9ea6c2bdfc1181309ec1d4e77ff67c60f89abb1e8617ea9c4f8937295a08/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e63652d4d49542d6666643332612e737667) [![PHP version](https://camo.githubusercontent.com/d8c9388ed3766eb08d85178285cfe35f0fd09127571e80cb377df462c70b06cc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322d3830386539622e737667)](https://camo.githubusercontent.com/d8c9388ed3766eb08d85178285cfe35f0fd09127571e80cb377df462c70b06cc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e322d3830386539622e737667) [![Version](https://camo.githubusercontent.com/f1caee59024a7ca99c4317a63971ae9b7bac37115a230e66c4ed8a42d1370083/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d302e322e302d6635336235372e737667)](https://camo.githubusercontent.com/f1caee59024a7ca99c4317a63971ae9b7bac37115a230e66c4ed8a42d1370083/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d302e322e302d6635336235372e737667) [![Coverage](https://camo.githubusercontent.com/edaacf1fbd4948863aef9ecc53b54487090d6445213a7ddca18d4c42438b9d27/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d34302532352d3237616536302e737667)](https://camo.githubusercontent.com/edaacf1fbd4948863aef9ecc53b54487090d6445213a7ddca18d4c42438b9d27/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d34302532352d3237616536302e737667) [![Build Status](https://camo.githubusercontent.com/b20d9d07eae66be2e02d4e12091ec091ad89d88823ceb48ed80c03b3323a2d34/68747470733a2f2f7472617669732d63692e6f72672f6c6f7466696f2f76737461742e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/b20d9d07eae66be2e02d4e12091ec091ad89d88823ceb48ed80c03b3323a2d34/68747470733a2f2f7472617669732d63692e6f72672f6c6f7466696f2f76737461742e7376673f6272616e63683d6d6173746572) [![StyleCi](https://camo.githubusercontent.com/cd2c6a4c4216ed328b00a2e9d10fe318338a2182cc522cadc5b3ae3d15fb59c6/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3135393536323931332f736869656c643f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/cd2c6a4c4216ed328b00a2e9d10fe318338a2182cc522cadc5b3ae3d15fb59c6/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3135393536323931332f736869656c643f6272616e63683d6d6173746572)

 **✈️ PHP Vatsim statistics package.**

### 🔥 Introduction :

[](#-introduction-)

VSTAT is a simple lightweight PHP MIT Package developed by Lotfio Lakehal That helps you to get VATSIM statistics and data in simple clean and easy way.

### 📌 Requirements :

[](#-requirements-)

- PHP 7.2 or newer versions
- PHPUnit &gt;= 8 (for testing purpose)

### 👌 Features :

[](#ok_hand-features-)

- Easy to use.
- Simple installation one line command with composer.
- Get all Vatsim Data.
- Get VATSIM servers data.
- Get clients data.
- Cache data to speed up the loading process.

### 🚀 Installation &amp; Use :

[](#-installation--use-)

```
    composer require lotfio/vstat

```

### ✏️ Use it :

[](#pencil2-use-it-)

```
use Vstat\Vstat;

require 'vendor/autoload.php';

print_r(Vstat::getClients());
```

### 🔧 Config:

[](#wrench-config)

**Config file** is located inside `Vstat/config/app.php` where you can change vatsim data url, cache time and cache location.

By default **VSTAT** is generating data each 5 minutes from `http://vatsim-data.hardern.net/vatsim-data.txt`You can change the time of data loading to 2 - 3 minutes. **Recommended** I recommend that you create a cron job on your host and update `vatsim-data.txt` file every minute which will highly increase the loading speed of you application. (if you do so make sure to keep php cache time higher than the cron job).

### 📥 Available methods :

[](#inbox_tray-available-methods-)

```
// get all vatsim clients
print_r((Vstat::getClients()));

// get prefile plans
print_r((Vstat::getPreFile()));

// get vatsim servers
print_r((Vstat::getServers()));

// get vatsim voice servers
print_r((Vstat::getVoiceServers()));

// filters
// show by Type ATC or PILOT by default show by PILOT
print_r((Vstat::showByType('ATC')));

// show by airline
print_r((Vstat::showByAirline('BAW')));

// show by callsign
print_r((Vstat::showByCallsign('BAW96')));

// show by vatsim id
print_r((Vstat::showByVatsimId(131)));

// get number of pilots
print_r((Vstat::getNumberOfPilots()));

// get number of controllers
print_r((Vstat::getNumberOfControllers()));

// get number of clients connected with the same airline
echo count(Vstat::showByAirline('DAH'));

// get data as json formt
print_r(json_encode(Vstat::showByAirline('DAH')));
```

### 💻 Contributing

[](#computer-contributing)

- Thank you for considering to contribute to Ouch. All the contribution guidelines are mentioned [here](CONTRIBUTE.md).

### 📃 ChangeLog

[](#page_with_curl-changelog)

- Here you can find the [ChangeLog](CHANGELOG.md).

### 🍺 Support the development

[](#beer-support-the-development)

- Share ***VSTAT*** and lets get more stars and more contributors.
- If this project helped you reduce time to develop, you can give me a cup of coffee :) : **[Paypal](https://www.paypal.me/lotfio)**. 💖

### 📋 License

[](#clipboard-license)

- ***VSTAT*** is an open-source software licensed under the [MIT license](LICENSE).

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

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

Total

4

Last Release

2479d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18489496?v=4)[lotfio lakehal](/maintainers/lotfio)[@lotfio](https://github.com/lotfio)

---

Top Contributors

[![lotfio](https://avatars.githubusercontent.com/u/18489496?v=4)](https://github.com/lotfio "lotfio (22 commits)")

---

Tags

apifsxmapsonline-statisticsp3dstatisticsvatsimvatsim-flight-mapvattastatic

### Embed Badge

![Health badge](/badges/lotfio-vstat/health.svg)

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

###  Alternatives

[ronasit/laravel-swagger

Provided middleware for generating of swagger-documentation file by run testing of restful API.

179129.9k2](/packages/ronasit-laravel-swagger)[cloudcreativity/json-api-testing

PHPUnit test helpers to check JSON API documents.

141.7M4](/packages/cloudcreativity-json-api-testing)

PHPackages © 2026

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