aobozhang / neteaseim-laravel by Aobo

used neteaseim as laravel facades
217
2
3
Package Data
Maintainer Username: Aobo
Maintainer Contact: aobozhang@gmail.com (Aobo)
Package Create Date: 2016-05-07
Package Last Update: 2016-07-31
Language: PHP
License: MIT
Last Refreshed: 2024-11-11 15:20:35
Package Statistics
Total Downloads: 217
Monthly Downloads: 1
Daily Downloads: 1
Total Stars: 2
Total Watchers: 3
Total Forks: 1
Total Open Issues: 0

Neteaseim-facades for laravel

used Neteaseim as Normal laravel facades

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

  • First:
composer require aobozhang/neteaseim-laravel
  • Second:

Modify "config\app.php"

<?php

    return = [

        ...,

        'providers' = [

            ...,

            Aobo\Neteaseim\NimServiceProvider::class,

        ],
    ];

  • Third:

type follow in console:

php artisan vendor:publish

Till now, you can use it

Usage

use Neteaseim;

...

$param = [
    'accid' => 'test-accid-'.str_random(32),
    'name'  => 'test-name-'.str_random(32)
];

var_dump(Neteaseim::user_create($param));

To Use Your Own Configuration

Modify ".env" -- recommend

NETEASEIM_APPKEY=your key
NETEASEIM_APPSECRET=your secret

Or You Can Modify "config\neteaseim.php" -- The Same effect.

return [
    'appkey'      => env('NETEASEIM_APPKEY', 'your key'),
    'appsecret'   => env('NETEASEIM_APPSECRET', 'your secret')
];