Download the PHP package misszero/passportsdkphp without Composer

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

稻米开放平台


本节对Passport开放平台和SDK进行讲解。

概念

接入流程

  1. 申请稻米开放平台的的账号,获得AppKey。(详细见“二、如何申请开放平台账号”)

  2. 将本SDK下所有文件放到接入站点的目录中,并在需要做登陆验证的页面中引用该SDK。建议编写一个独立的模块引用sdk,并在该页面中调用 IsLogin API判断是否登陆,如果没登陆则调用 ToLogin API跳转到登陆页面。

  3. 设置配置文件中的各个参数。

  4. 在异步处理页面(handler.php)中的OnLogin和OnLogout函数中编写登陆和注销时需要处理的内容,一般是设置Session。

如何申请开放平台账号

  1. 在oauth表中填入接入用户的名称和AppKey。

  2. 在oauth_website表中填入该用户接入的所有站点信息,如果有多个站点则有多条记录,每个站点都需要填入该站点的域名、默认同步回调页、API路径。

配置文件

开发接口目录下的config.php为配置文件,所有配置信息都包含在$riceappsdk_configs数组中。

常用API介绍


IsLogin

GetOpenID

GetUserInfo

ToLogin

ToRegister

Logout

ChangePassword

RebindPhone

AddUser

Login

GetStoreID

SetStoreID

AuthorizeToUser

CheckPermissions

CheckPermissionsByUrl

GetStore

GetStoreServices

BindPhone


All versions of passportsdkphp with dependencies

PHP Build Version
Package Version
No informations.
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 misszero/passportsdkphp contains the following files

Loading the files please wait ...