huangdijia/laravel-icomet

IComet client for laravel

1.1.0 2020-08-26 09:45 UTC

This package is auto-updated.

Last update: 2024-06-26 18:23:17 UTC


README

Laravel IComet

Latest Version on Packagist Total Downloads GitHub license

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);