Download the PHP package noq/roomq without Composer

On this page you can find all versions of the php package noq/roomq. 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 roomq

Install

Download the latest composer package from here.

RoomQ Backend SDK - PHP

The RoomQ Backend SDK is used for server-side integration to your server. It was developed with PHP.

High Level Logic

The SDK Flow

  1. End user requests a page on your server
  2. The SDK verify if the request contain a valid ticket and in Serving state. If not, the SDK send him to the queue.
  3. End user obtain a ticket and wait in the queue until the ticket turns into Serving state.
  4. End user is redirected back to your website, now with a valid ticket
  5. The SDK verify if the request contain a valid ticket and in Serving state. End user stay in the requested page.
  6. The end user browses to a new page, and the SDK continue to check if the ticket is valid.

How to integrate

Prerequisite

To integrate with the SDK, you need to have the following information provided by RoomQ

  1. ROOM_ID
  2. ROOM_SECRET
  3. ROOMQ_TICKET_ISSUER
  4. ROOMQ_STATUS_API
  5. API_KEY
  6. LOCKER_URL

Major steps

To validate that the end user is allowed to access your site (has been through the queue) these steps are needed:

  1. Initialise RoomQ
  2. Determine if the current request page/path required to be protected by RoomQ
  3. Initialise Http Context Provider
  4. Validate the request
  5. If the end user should goes to the queue, set cache control
  6. Redirect user to queue

Integration on specific path

It is recommended to integrate on the page/path which are selected to be provided. For the static files, e.g. images, css files, js files, ..., it is recommended to be skipped from the validation. You can determine the requests type before pass it to the validation.

Implementation Example

The following is an RoomQ integration example in php.

Ajax calls

RoomQ doesn't support validate ticket in Ajax calls yet.

Browser / CDN cache

If your responses are cached on browser or CDN, the new requests will not process by RoomQ. In general, for the page / path integrated with RoomQ, you are not likely to cache the responses on CDN or browser.

Hash of URL

As hash of URL will not send to server, hash information will be lost.

Version Guidance

Version Packagist PSR-7 PHP Version
1.x noq/roomq Yes >= 5.5
2.x noq/roomq Yes >= 7.3

All versions of roomq with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3.0
firebase/php-jwt Version ^5.3
ramsey/uuid Version ^4.1
guzzlehttp/guzzle Version ^7.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 noq/roomq contains the following files

Loading the files please wait ....