Solution for this would be to create a composer packagist PHP library in this repository (next to the nodejs package) which implements all of these features in a class and copies the file with it. In the different projects that needs stations lists, we update the list using composer update and have all the features at all times.
We have a lot of issues open that are concerning keeping our stations list up to date, or the autocompletion features of iRail: https://github.com/iRail/BRailResource/issues/1 https://github.com/iRail/iRail/issues/60 https://github.com/iRail/iRail/issues/66 https://github.com/iRail/iRail/issues/64 https://github.com/iRail/hyperRail/issues/49 https://github.com/iRail/hyperRail/issues/109 https://github.com/iRail/hyperRail/issues/122
Solution for this would be to create a composer packagist PHP library in this repository (next to the nodejs package) which implements all of these features in a class and copies the file with it. In the different projects that needs stations lists, we update the list using composer update and have all the features at all times.