Download the PHP package populous/streamer without Composer

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

populous world streamer package

This is a streamer package based on CodeIgniter 3.1.4 that is used for populous world.

installation

cd project_root

composer require populous/streamer

put .env file in application directory

DB_HOST=YOUR_DB_HOST
DB_USERNAME=YOUR_DB_USERNAME
DB_PASSWORD=YOUR_DB_PASSWORD
DB_NAME=YOUR_DB_NAME

WEBSOCKET_IP=127.0.0.1
WEBSOCKET_URL='ws://127.0.0.1'
WEBSOCKET_PORT=8443
WEBSOCKET_ENDPOINT='ws://127.0.0.1:8443'
WEBSOCKET_ENDPOINT_SERVER_USE='ws://127.0.0.1:8443'

ADMIN_USER_ID=YOUR_ADMIN_USER_ID

FEES_BALANCE_OF=YOUR_SYMBOL
FEES_BALANCE_ABOVE=LIMIT_AMOUNT
FEES_BALANCE_DISCOUNT=DISCOUNT_PERCENT

put WsServer_model.php file in /application/models directory

this streamer packages uses WsServer_model.php file, so if don't have WsServer_model.php file, it will shows error.

put shell_scripts directory in project root directory

mkdir shell_scripts

touch shell_scripts/run_public_socket_server.sh

#!/bin/bash

sudo pkill -f php-wss
php /var/www/Altyex/index.php websocket runServer

run the WsServer

nohup sh shell_scripts/run_public_socket_server.sh > shell_scripts/logs/run_public_socket_server.log & disown

Official Documentation

channels

Table of Contents

Events

Events Channels Message Direction
⬆ exchange-buy private-channel C->S
⬇ exchange-buy private-channel S->C
⬆ exchange-sell private-channel C->S
⬇ exchange-sell private_channel S->C
⬆ exchange-cancel-order private-channel C->S
⬇ exchange-cancel-order private_channel S->C
⬆ exchange-init-guest private-channel C->S
⬇ exchange-init-guest private_channel S->C
⬆ exchange-init private-channel C->S
⬇ exchange-init private_channel S->C
⬆ orderbook-init private-channel C->S
⬇ orderbook-init private_channel S->C
⬆ api-setting-init private-channel C->S
⬇ api-setting-init private_channel S->C
⬆ api-setting-create private-channel C->S
⬇ api-setting-create private_channel S->C
⬆ api-setting-update private-channel C->S
⬇ api-setting-update private_channel S->C
⬆ api-setting-delete private-channel C->S
⬇ api-setting-delete private_channel S->C
⬇ order-update private_channel S->C
⬇ balance-update private_channel S->C
⬇ orderbook market-global-channel S->C
⬇ trade-history market-global-channel S->C
⬇ price-change crypto-rates-channel S->C

Subscribe Channels

Subscribe global market

Request Payload

Response Payload

Subscribe Crypto Rates channel

Request Payload

Response Payload

Subscribe Private user channel

Request Payload

Response Payload

Exchange Events

Init Exchange Guest

Request Payload

Response Payload

Init Exchange

Request Payload

Response Payload

Buy Limit

Request Payload

Response Payload

Error Response payload

message will have one of [ "User could not found.", "Invalid pair", "Buy price is invalid.", "Buy amount is invalid.", "Trade could not submitted.", "Insufficient balance." ]

Buy Market

Request Payload

Response Payload

Error Response payload

message will have one of [ "User could not found.", "Invalid pair", "Buy price is invalid.", "Trade could not submitted.", "Insufficient balance." ]

Buy Stop Limit

Request Payload

Response Payload

Error Response payload

message will have one of [ "User could not found.", "Invalid pair", "Buy Stop price invalid.", "Buy Limit price invalid.", "Buy Amounts invalid.", "Could not create order", "You have insufficient balance, More needed to create an order."" ]

Sell Limit

Request Payload

Response Payload

Error Response payload

message will have one of [ "User could not found.", "Invalid pair", "Buy price is invalid.", "Buy amount is invalid.", "Trade could not submitted.", "Insufficient balance." ]

Sell Market

Request Payload

Response Payload

Error Response payload

message will have one of [ "User could not found.", "Invalid pair", "Buy price is invalid.", "Trade could not submitted.", "Insufficient balance." ]

Sell Stop Limit

Request Payload

Response Payload

Error Response payload

message will have one of [ "User could not found.", "Invalid pair", "Buy Stop price invalid.", "Buy Limit price invalid.", "Buy Amounts invalid.", "Could not create order", "You have insufficient balance, More needed to create an order."" ]

Cancel Order Event

Request Payload

Response Payload

Error Response payload

message will have one of [ "You are not allow to cancel this order.", "Could not cancelled the order" ]

Orderbook Events

Init Orderbook

Request Payload

Response Payload

API settings Events

Init API settings

Request Payload

Response Payload

Create API

Request Payload

Response Payload

Update API

Request Payload

Response Payload

Delete API

Request Payload

Response Payload


All versions of streamer with dependencies

PHP Build Version
Package Version
Requires arthurkushman/php-wss Version ^1.6
php Version >=7.1
ext-pcntl Version *
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 populous/streamer contains the following files

Loading the files please wait ....