huangdijia/laravel-icomet

IComet client for laravel

1.0.9 2019-09-20 07:08 UTC

README

Installation

composer require huangdijia/laravel-icomet

Larvel

publish config

php artisan vendor:publish --provider="Huangdijia\IComet\ICometServiceProvider"

Lumen

copy icomet.php file to config path

cp vendor/huangdijia/laravel-icomet/config/icomet.php config

register to bootstrap/app.php

$app->register(Huangdijia\IComet\ICometServiceProvider::class);
//...
$app->configure('icomet');

Usage

use Huangdijia\IComet\Facade\IComet;

// Sign
$resp = IComet::sign($name);

// Push
$resp = IComet::push($cname, $content);