Download the PHP package monyxie/laravel-easemob without Composer

On this page you can find all versions of the php package monyxie/laravel-easemob. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-easemob

laravel-easemob

环信即时通讯laravel包开发,用于环信用户、群、聊天室等功能

安装

加载包

"link1st/laravel-easemob": "dev-master"

composer require link1st/laravel-easemob

在配置文件中添加 config/app.php

生成配置文件

php artisan vendor:publish

设置环信的参数 config/easemob.php

使用


获取token

\Easemob::getToken();


开放注册用户

$user = \Easemob::publicRegistration('xiaoming1');

授权注册 同一个用户只能注册一次

$user = \Easemob::authorizationRegistration('xiaoming1');

批量注册


获取用户

$user = \Easemob::getUser('xiaoming1');

获取app所有的用户

删除用户

$user = \Easemob::delUser('xiaoming1');

修改用户密码

$user = \Easemob::editUserPassword('xiaoming2',111);

修改昵称

$user = \Easemob::editUserNickName('xiaoming2',11);

强制用户下线

$user = \Easemob::disconnect('xiaoming2');

添加好友

$user = \Easemob::addFriend('xiaoming2','xiaoming3');

删除用户

$user = \Easemob::delFriend('xiaoming2','xiaoming3');

显示用户好友

$user = \Easemob::showFriends('xiaoming2');


上传文件

\Easemob::uploadFile($file_path);

下载文件

\Easemob::downloadFile($uuid, $share_secret);


发送文本消息

\Easemob::sendMessageText($users, $target_type = 'users', $message = "", $send_user = 'admin', $ext = []);

发送图片消息

\Easemob::sendMessageImg($users, $target_type = 'users', $uuid, $share_secret, $file_name, $width = 480, $height = 720, $send_user = 'admin');

发送语音消息

\Easemob::sendMessageAudio($users, $target_type = 'users', $uuid, $share_secret, $file_name, $length = 10, $send_user = 'admin');

发送视频消息

\Easemob::sendMessageVideo($users, $target_type = 'users', $video_uuid, $video_share_secret, $video_file_name, $length = 10, $video_length = 58103, $img_uuid, $img_share_secret, $send_user = 'admin');

消息透传

\Easemob::sendMessagePNS($users, $target_type = 'users', $action = "", $send_user = 'admin');


获取群信息

\Easemob::groups($group_ids);

新建群

\Easemob::groupCreate($group_name, $group_description = '描述', $owner_user, $members_users = [], $is_public = true, $max_user = 200, $is_approval = true)

修改群信息

\Easemob::groupEdit($group_id, $group_name = "", $group_description = "", $max_user = 0)

删除群

\Easemob::groupDel($group_id)

获取所有群成员

\Easemob::groupUsers($group_id)

添加群成员

\Easemob::groupAddUsers($group_id, $users)

删除群成员

\Easemob::groupDelUsers($group_id, $users)

获取用户所以参加的群

\Easemob::userToGroups($user)

群转让

\Easemob::groupTransfer($group_id, $new_owner_user)


查看聊天室详情

\Easemob::room($room_id)

创建聊天室

\Easemob::roomCreate($room_name, $owner_name, $room_description = "描述", $max_user = 200, $member_users = [])

删除聊天室

\Easemob::roomDel($room_id)

修改聊天室信息

\Easemob::roomEdit($room_id, $room_name = "", $room_description = "", $max_user = 0)

获取用户参加的聊天室

\Easemob::userToRooms($user)

聊天室添加成员

\Easemob::roomAddUsers($room_id, $users)

聊天室删除成员

\Easemob::roomDelUsers($room_id, $users)


All versions of laravel-easemob with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
illuminate/contracts Version 5.7.*|5.8.*|6.*
illuminate/support Version 5.7.*|5.8.*|6.*
ext-curl Version *
psr/simple-cache Version ^1.0
ext-json Version *
guzzlehttp/guzzle Version ~6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package monyxie/laravel-easemob contains the following files

Loading the files please wait ....