Download the PHP package jiuzhoueu/dscx-ucenter without Composer

On this page you can find all versions of the php package jiuzhoueu/dscx-ucenter. 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 dscx-ucenter

Ucenter Client For Laravel5

安装

只要在你的 composer.json 文件require中加入下面内容,就能获得最新版.

"jiuzhoueu/ucenter": "~1.0.0"

然后需要运行 "composer update" 来更新你的项目

或运行

composer require jiuzhoueu/ucenter

安装完后,在 app/config/app.php 文件中找到 providers 键,

'providers' => [

    'Binaryoung\Ucenter\UcenterServiceProvider'

]

找到 aliases 键,

'aliases' => [

    'Ucenter' => 'Binaryoung\Ucenter\Facades\Ucenter'

]

配置

运行以下命令发布配置文件

php artisan vendor:publish

ucenter配置项

//config.php
'url'       => '', // 网站UCenter接受数据地址
'api'       => 'http://localhost/ucenter', // UCenter 的 URL 地址, 在调用头像时依赖此常量
'connect'   => 'mysql', // 连接 UCenter 的方式: mysql/NULL, 默认为空时为 fscoketopen()
'dbhost'    => 'localhost', // UCenter 数据库主机
'dbuser'    => 'root', // UCenter 数据库用户名
'dbpw'      => 'root', // UCenter 数据库密码
'dbname'    => 'ucenter', // UCenter 数据库名称
'dbcharset' => 'utf8',// UCenter 数据库字符集
'dbtablepre'=> '`uc`.uc_', // UCenter 数据库表前缀
'key'       => '666cLXgFsrl6TcvDflhrvdcziY8SnhP1eexl1eQ', // 与 UCenter 的通信密钥, 要与 UCenter 保持一致
'charset'   => 'utf-8', // UCenter 的字符集
'ip'        => '127.0.0.1', // UCenter 的 IP, 当 UC_CONNECT 为非 mysql 方式时, 并且当前应用服务器解析域名有问题时, 请设置此值
'appid'     => 1, //当前应用的 ID
'ppp'       => 20, //当前应用的 ID

使用

例如:获取用户名为test的信息

$result = Ucenter::uc_get_user('test');
var_dump($result);

更多函数请参考 Ucenter 文档

联系我

有问题,请提交issue


All versions of dscx-ucenter with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3.0
jiuzhoueu/dscx-kernel Version ^1.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 jiuzhoueu/dscx-ucenter contains the following files

Loading the files please wait ....