2017 © Pedro PelĂĄez
 

library serverchan

using the serve of serverChan to notify you

image

sevenshi/serverchan

using the serve of serverChan to notify you

  • Thursday, July 19, 2018
  • by sevenshi
  • Repository
  • 1 Watchers
  • 3 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

A Easy Laravel Package for ServerChan

See Server酱, (*1)

Quick Start Guide

  • Create a Laravel 5.5 project: composer create-project laravel/laravel myproject dev-develop, (*2)

  • cd myproject, (*3)

  • Add dependency: composer require sevenshi/serverchan, (*4)

  • Copy configuration: php artisan vendor:publish, (*5)

  • set the SCKEY you get from the serverchan on the .env SCKEY=SCU17044T7eafa406fxxxxxxxxxx, (*6)

Now you are ready to use the Seven Facade, e.g. open routes/web.php:, (*7)

  • send message to yourself

``` PHP <?php, (*8)

$reponse = Seven::setTitle('hi')->setMessage('hello world')->push();, (*9)


- send message to who subscribe your channel the channel comes from the [PushBear](http://pushbear.ftqq.com/admin/#/),and channel key comes from the channel you create ``` PHP <?php $response = Seven::setTitle('hi')->setMessage('hello every body')->setChannel('4794-e28b9dae54e86365773xxx')->pushbear();
  • response

if the request is ok,it will response these data below:, (*10)

push:, (*11)

- success {"errno":0,"errmsg":"success","dataset":"done"}

pushbear:, (*12)

- {"code":0,"message":"","data":"1\u6761\u6d88\u606f\u5df2\u6210\u529f\u63a8\u9001\u5230\u53d1\u9001\u961f\u5217","created":"2018-07-18 14:43:05"}

The Versions

19/07 2018

dev-master

9999999-dev

using the serve of serverChan to notify you

  Sources   Download

MIT

by Seven

19/07 2018

1.0.0

1.0.0.0

using the serve of serverChan to notify you

  Sources   Download

MIT

by Seven