Download the PHP package pkg6/easy-im without Composer

On this page you can find all versions of the php package pkg6/easy-im. 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 easy-im

非官方即时通信SDK easy-im

非官方即时通信SDK,支持腾讯IM,环信IM,极光IM,融云IM,网易云信IM等

安装

composer require pkg6/easy-im

请求日志开启

\Pkg6\easyIm\Kernel\BaseClient::$request_log=true;

自定义缓存

基于https://packagist.org/packages/psr/simple-cache#1.0

$config = [
    'appId'      => '5978322198',
    'identifier' => 'administrator',
    'secretKey'  => 'nfugb53xtlhyfq2kgiriganruyoagh93it1zwysmh2tmj5tnnmuqhd2og5ofktjt',
    'cache'      => [
        //必须定义
        "class"         => \Pkg6\Cache\cache\driver\File::class,
        //其他选项
        'expire'        => 0,
        'cache_subdir'  => true,
        'prefix'        => '',
        'path'          => './cache/',
        'hash_type'     => 'md5',
        'data_compress' => false,
        'tag_prefix'    => 'tag:',
        'serialize'     => [],
    ],
];
$im     = Pkg6\easyIm\Factory::Tencent($config);

案例

腾讯IM

$config = [
  'appId'      => '5978322198',
  'identifier' => 'administrator',
  'secretKey'  => 'nfugb53xtlhyfq2kgiriganruyoagh93it1zwysmh2tmj5tnnmuqhd2og5ofktjt',
];
$im = Pkg6\easyIm\Factory::Tencent($config);
// 自定义请求(账号同步到云端)
$params = [
    'Identifier' => 'easyim',
    'Nick'       => 'easyim',
    'FaceUrl'    => 'https://github.com/Pkg6/easy-im',
];
$im->request->send('im_open_login_svc/account_import', $params);

环信IM

$config = [
  'appKey'       => '',
  'clientId'     => '',
  'clientSecret' => '',
  'orgName'      => '',
  'appName'      => '',
];
$im = Pkg6\easyIm\Factory::Huanxin($config);

// 自定义请求(账号同步到云端)
$params = [
    'username' => 'easyim',
    'password' => '123456',
    'nickname' => 'easyim'
];
$im->request->send('post', 'users', $params);

极光IM

$config = [
  'appKey'       => '',
  'masterSecret' => '',
];
$im = Pkg6\easyIm\Factory::Jiguang($config);

// 自定义请求(账号同步到云端)
$params = [[
    'username' => 'easyim',
    'password' => '123456',
]];
$im->request->send('post', 'v1/users/', $params);

//IM REST Report V2
//获取消息
$im->request->send('get', 'v2/messages?count=500&begin_time=2015-11-02 10:10:10&end_time=2015-11-02 10:10:12',[],true);

融云IM

$config = [
  'appKey'    => '',
  'appSecret' => '',
];
$im = Pkg6\easyIm\Factory::RongCloud($config);

// 自定义请求(账号同步到云端)
$params=[
    'userId' => 'easyim',
    'name'   => 'easyim',
];
$im->request->send('user/getToken.json', $params);

网易云信IM

$config = [
  'appKey'    => '',
  'appSecret' => '',
];
$im = Pkg6\easyIm\Factory::Yunxin($config);
// 自定义请求(账号同步到云端)
$params = [
    'accid' => 'easyim',
    'name'  => 'easyim',
];
$im->request->send('nimserver/user/create.action', $params);

支持厂商

加入我们

如果你认可我们的开源项目,有兴趣为 easy-im 的发展做贡献,竭诚欢迎加入我们一起开发完善。无论是 报告错误或 是 Pull Request 开发,那怕是修改一个错别字也是对我们莫大的帮助。

许可协议

MIT


All versions of easy-im with dependencies

PHP Build Version
Package Version
Requires php Version >7.4
ext-zlib Version *
ext-json Version *
ext-curl Version *
psr/cache Version ~1.0|^2.0
psr/log Version ^1.0.1 || ^2.0
psr/simple-cache Version ^1.0|^2.0
guzzlehttp/guzzle Version ^6|^7
pimple/pimple Version ^3.0
pkg6/cache Version ^0.1
pkg6/log Version ^0.1
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 pkg6/easy-im contains the following files

Loading the files please wait ....