Download the PHP package haaid/ucenter without Composer

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

UCenter Client For Laravel

安装

要安装此依赖包,您需要:

1、修改 composer.json 文件,然后运行 composer update 来更新依赖包。

2、运行 composer require haaid/ucenter 来安装依赖包。

发布

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

路由

routes/web.php 中写入:

Facades

依赖包已经创建了 UCenter 的别名,你可以直接使用。

也可以使用:Haaid\UCenter\Facades\UCenter

使用

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

更多函数请参考 uc_client/client.php 文件。

联系我

有问题,请提交 issue。


附录 1:如何重写接口事件

1、修改 config/ucenter.php 配置:

2、创建 app/Services/UCenter.php 文件:

3、重写业务代码即可。注意保证配置文件的命名空间正确。

附录 2:路由的更多玩法

除了在 routes/web.php 中写入路由以外,也可以并建议在 routes/api.php 中写入:

因为 web.php 当中,会自动加入 CSRF 的中间件,导致 UC Server 的 post 被拦截,写在 api.php 当中就不会。

所以 UC Server 编辑应用时,应用接口文件名称 写入上方的路由地址,例如:api/uc


All versions of ucenter with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.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 haaid/ucenter contains the following files

Loading the files please wait ....