leveon/connector

Module for simplifying interactions with leveon's exchange api

dev-master 2024-06-28 10:02 UTC

This package is auto-updated.

Last update: 2025-03-28 15:04:54 UTC


README

This package is useful for simplifying interaction with Leveon exchange api

Requirement

  • PHP 8
  • PHP extensions:
    • json
    • curl
    • sqlite3
  • composer/composer

Install

composer require leveon/connector

Add to your composer.json auto updating scripts, which will automatically migrate your project and local database on module upgrading

"scripts": {
    "leveon-install": "Leveon\\Connector\\Deploy\\Installer::Install", 
    "post-package-update":  [
      "@leveon-install"
    ],
    "post-install-cmd":  [
      "@leveon-install"
    ],
}

After first installation, when you have added scripts to composer.json manually run

composer run-script leveon-install

When this command completed, next structure will be created in your project

[project dir]
├╴config
│  └╴leveon.php
└╴data
  └╴leveon
    └╴connector.sqlite
    └╴connector.sqlite-shm
    └╴connector.sqlite-wal

In file config/leveon.config.php you should define your access tokens which can be obtained in your personal account

  • key
  • signKey