kriosmane/hive-os 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kriosmane/hive-os

Composer 安装命令:

composer require kriosmane/hive-os

包简介

PHP Package for interacting with Hive OS a cryptocurrency operating system

README 文档

README

Latest Version on Packagist Total Downloads

HIVE OS API

PHP Package for interacting with Hive OS a cryptocurrency operating system

More details about Hive Os

Installation

PHP 7.3+ and Composer are required.

To get the latest version of HiveOs api, simply run the code below in your project.

composer require kriosmane/hive-os

Initial Setup

Before proceding visit this link to get your HiveOS Api access token

Standalone

The first​ step is to initialize the library. Once you do that, You'll get access to all the available API Methods to make requests to HiveOs.

use KriosMane\HiveOs\HiveOs;

$access_token = '**********************';
$hiveOs = new HiveOs($access_token);

Laravel

First You need to register the service provider. Open up config/app.php and add the following to the providers key.

'providers' => [
    ...
    KriosMane\HiveOs\Providers\HiveOsServiceProvider::class,
    ...
]

Also, register the Facade like so:

'aliases' => [
    ...
    'HiveOs' => KriosMane\HiveOs\Facades\HiveOs::class,
    ...
]

You can publish the configuration file using this command:

php artisan vendor:publish --provider="KriosMane\HiveOs\Providers\HiveOs\ServiceProvider"

A configuration-file named hiveos.php with default settings will be placed in your config directory

Open your .env file and add the following in this format. Ensure you must have gotten your api key:

HIVEOS_LOGIN=****
HIVEOS_PASSWORD=*****
HIVEOS_ACCESS_TOKEN=***********************************************

Add the following line to your controller

use \HiveOs;

return HiveOs::coins();

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

How can I thank you?

As a programmer i need coffee to be productive, don't let my cup get emtpy

Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!

Thanks! Krios Mane

License

Please see License File for more information.

统计信息

  • 总下载量: 119
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-01-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固