Skip to content
IComet client for laravel/lumen
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
src
.gitignore
LICENSE
README.md
composer.json

README.md

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);
You can’t perform that action at this time.