Download the PHP package stellitecoin/stellitepay-api without Composer

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

StellitePay API

Overview

Please notice! This API is still under development and only people with a MERCHANT/INTEGRATOR KEY can use it at the moment.

Installation

Using composer composer require stellitecoin/stellitepay

Include composer autoload require_once __DIR__ . '/vendor/autoload.php';

Now you can use in your code with your vendor's integrator key

To view more example checkout example.php

Structure

Format etc.

1 UNIT: 0.01 XTL

Stellite Address: ^Se\d[0-9A-Za-z]{94}$

Stellite Integrated Address: ^SEi[0-9A-Za-z]{104}$

'INTERN_TXID/INTERN_FEE': If a transaction is made within the system the transaction will be marked with a fixed transaction fee and intern txid

Request Format

Please provide Header: Content-Type:application/json Authorization: Bearer

Request & Response Examples

POST /v1/register

Example Request (POST):

Result:

POST /v1/login

Example Request (POST):

Result:

GET /v1/balance

Example Request (GET):

Result:

POST /v1/logout

Example Request (POST):

Result:

POST /v1/activate

Example Request (POST):

Result:

POST /v1/transfer

Example Request (POST):

Result:

GET /v1/transactions (MAX. 5) | GET /v1/alltransactions (ALL)

Example Request (GET):

Result:

GET /v1/addressbook

Example Request (GET):

Result:

POST /v1/addressbook

Example Request (POST):

Result:

DELETE /v1/addressbook

Example Request (DELETE):

Result:

POST /v1/search

Example Request (DELETE):

Result:

Error Handling Outdated

Error Message Description Handling
0 Wrong IntAuth Please enter a valid Integrator Authentification
1 Wrong Parameter Please enter all of the needed Parameter
2 Wrong id/auth Check both Parameters
3 Empty address or wrong Format Amount > 0 and right ADDRESS format
4 Withdraw couldn't be inserted Please check your Database or contact the Support
5 Something went wrong with the balance Please check your Database or contact the Support
6 RPC call error Please check the RPC (online?, synced?, right wallet?)
7 Not enough balance Please enter a lower amount (min. Balance = 5 XTL)
8 Address type 1/2 is ATM not available Please wait :)
9 Empty Addressbook Set at least one Address
10 Error while inserting new Address Check all Parameters
11 No Deposits Please deposit first
12 Spam Error Please let enough time between the queries to prevent overlapping queries
13 Email doesn't exists Please enter an email address, which is registered
14 Same User You can't transact XTL between the same User
15 Database Error Please contact the Support
16 More coming soon!

Authors

See also the list of contributors who participated in this project.


All versions of stellitepay-api with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.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 stellitecoin/stellitepay-api contains the following files

Loading the files please wait ....