Download the PHP package trainjunkies-packages/data-feeds-queue-subscriber without Composer

On this page you can find all versions of the php package trainjunkies-packages/data-feeds-queue-subscriber. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package data-feeds-queue-subscriber

The Third Rail - Data Feeds Queue Subscriber

CI

PHP package to consume Open Rail Data feeds from National Rail & Network Rail via Active MQ STOMP. Supports durable connections with server heartbeats.

Installation

via Composer

Install Composer and require the package with the below command.

Getting Started

National Rail - DARWIN PushPort

Signup to the National Rail Open Data feeds to generate your unique credentials. More information can be found on the Open Rail Data Wiki.

./scripts/national-rail

Network Rail - NROD, TRUST, TD

Signup to the Network Rail Open Data platform to generate a username and password for the feeds. Be sure to activate the Active MQ topics you wish to subscribe to. More information can be found on the Open Rail Data Wiki

Example code can be found in ./scripts/network-rail

Durable Subscription with heartbeats

Below example with request a durable connection with supplied Client ID and ActiveMQ subscription name expecting a heartbeat frame from the server every 20 seconds while emitting one every 5.

Development

Copy and complete .env.dist to .env with desired feed credentials.

The development environment and dependencies are managed with Docker. In the same directory as the checked out cloned repository, run the below command to start the Docker Compose environment.

Login to the app container begin development.

Example scripts can be executed inside.

Xdebug has also been installed to debug PHP.

An ActiveMQ container is also present to aid development / debugging. The management interface can be accessed through a browser on http://localhost:8181/admin with the credentials admin & admin.

Authors

See also the list of contributors who participated in this project

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments


All versions of data-feeds-queue-subscriber with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4.24
ext-json Version *
stomp-php/stomp-php Version ^5.1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package trainjunkies-packages/data-feeds-queue-subscriber contains the following files

Loading the files please wait ....