{"id":17333806,"url":"https://github.com/lotfio/vstat","last_synced_at":"2025-08-01T22:43:39.127Z","repository":{"id":33958516,"uuid":"159562913","full_name":"lotfio/vstat","owner":"lotfio","description":":airplane: PHP Vatsim statistics package :airplane: ","archived":false,"fork":false,"pushed_at":"2022-02-13T14:02:08.000Z","size":247,"stargazers_count":17,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-01T05:32:58.002Z","etag":null,"topics":["api","fsx","maps","online-statistics","p3d","statistics","vatsim","vatsim-flight-map","vattastatic"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lotfio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-28T20:48:54.000Z","updated_at":"2023-12-05T02:31:58.000Z","dependencies_parsed_at":"2022-08-07T23:31:00.033Z","dependency_job_id":null,"html_url":"https://github.com/lotfio/vstat","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotfio%2Fvstat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotfio%2Fvstat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotfio%2Fvstat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotfio%2Fvstat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lotfio","download_url":"https://codeload.github.com/lotfio/vstat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223639403,"owners_count":17177816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","fsx","maps","online-statistics","p3d","statistics","vatsim","vatsim-flight-map","vattastatic"],"created_at":"2024-10-15T15:03:06.042Z","updated_at":"2024-11-08T06:03:44.359Z","avatar_url":"https://github.com/lotfio.png","language":"PHP","funding_links":["https://www.paypal.me/lotfio)*"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\r\n  \u003cimg src=\"https://user-images.githubusercontent.com/18489496/49801711-30eccd00-fd4b-11e8-8743-9af2560c983e.png\"  alt=\"Vstat Preview\"\u003e\r\n  \u003cp align=\"center\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/Licence-MIT-ffd32a.svg\" alt=\"License\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/PHP-7.2-808e9b.svg\" alt=\"PHP version\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/Version-0.2.0-f53b57.svg\" alt=\"Version\"\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/coverage-40%25-27ae60.svg\" alt=\"Coverage\"\u003e\r\n    \u003cimg src=\"https://travis-ci.org/lotfio/vstat.svg?branch=master\" alt=\"Build Status\"\u003e\r\n    \u003cimg src=\"https://github.styleci.io/repos/159562913/shield?branch=master\" alt=\"StyleCi\"\u003e\r\n    \u003c/p\u003e\r\n  \u003cp align=\"center\"\u003e\r\n    \u003cstrong\u003e:airplane: PHP Vatsim statistics package.\u003c/strong\u003e\r\n  \u003c/p\u003e\r\n\u003c/p\u003e\r\n\r\n### 🔥 Introduction :\r\nVSTAT 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.\r\n\r\n### 📌 Requirements :\r\n- PHP 7.2 or newer versions\r\n- PHPUnit \u003e= 8 (for testing purpose)\r\n\r\n### :ok_hand: Features :\r\n- Easy to use.\r\n- Simple installation one line command with composer.\r\n- Get all Vatsim Data.\r\n- Get VATSIM servers data.\r\n- Get clients data.\r\n- Cache data to speed up the loading process.\r\n\r\n### 🚀 Installation \u0026 Use :\r\n```\r\n    composer require lotfio/vstat\r\n```\r\n\r\n### :pencil2: Use it :\r\n```php\r\nuse Vstat\\Vstat;\r\n\r\nrequire 'vendor/autoload.php';\r\n\r\nprint_r(Vstat::getClients());\r\n```\r\n\r\n### :wrench: Config:\r\n**Config file** is located inside `Vstat/config/app.php` where you can change vatsim data url, cache time and cache location.\r\n\r\nBy default **VSTAT** is generating data each 5 minutes from `http://vatsim-data.hardern.net/vatsim-data.txt`\r\nYou can change the time of data loading to 2 - 3 minutes.\r\n**Recommended** I recommend that you create a cron job on your host and update `vatsim-data.txt` file every minute\r\nwhich 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).\r\n\r\n\r\n### :inbox_tray: Available methods :\r\n```php\r\n// get all vatsim clients\r\nprint_r((Vstat::getClients()));\r\n\r\n// get prefile plans\r\nprint_r((Vstat::getPreFile()));\r\n\r\n// get vatsim servers\r\nprint_r((Vstat::getServers()));\r\n\r\n// get vatsim voice servers\r\nprint_r((Vstat::getVoiceServers()));\r\n\r\n// filters\r\n// show by Type ATC or PILOT by default show by PILOT\r\nprint_r((Vstat::showByType('ATC')));\r\n\r\n// show by airline\r\nprint_r((Vstat::showByAirline('BAW')));\r\n\r\n// show by callsign\r\nprint_r((Vstat::showByCallsign('BAW96')));\r\n\r\n// show by vatsim id\r\nprint_r((Vstat::showByVatsimId(131)));\r\n\r\n// get number of pilots\r\nprint_r((Vstat::getNumberOfPilots()));\r\n\r\n// get number of controllers\r\nprint_r((Vstat::getNumberOfControllers()));\r\n\r\n// get number of clients connected with the same airline\r\necho count(Vstat::showByAirline('DAH'));\r\n\r\n// get data as json formt\r\nprint_r(json_encode(Vstat::showByAirline('DAH')));\r\n```\r\n\r\n### :computer: Contributing\r\n\r\n- Thank you for considering to contribute to Ouch. All the contribution guidelines are mentioned [here](CONTRIBUTE.md).\r\n\r\n### :page_with_curl: ChangeLog\r\n\r\n- Here you can find the [ChangeLog](CHANGELOG.md).\r\n\r\n### :beer: Support the development\r\n\r\n- Share ***VSTAT*** and lets get more stars and more contributors.\r\n- If this project helped you reduce time to develop, you can give me a cup of coffee :) : **[Paypal](https://www.paypal.me/lotfio)**. 💖\r\n\r\n### :clipboard: License\r\n\r\n- ***VSTAT*** is an open-source software licensed under the [MIT license](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flotfio%2Fvstat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flotfio%2Fvstat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flotfio%2Fvstat/lists"}