Download the PHP package authing-sdk/php-80 without Composer

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

Authing - PHP

Authing PHP SDK 由两部分组成:ManagementClientAuthenticationClientManagementClient 中进行的所有操作均以管理员的身份进行,包含管理用户、管理角色、管理权限策略、管理用户池配置等模块。AuthenticationClient 中的所有操作以当前终端用户的身份进行,包含登录、注册、修改用户资料、退出登录等方法。

你应该将初始化过后的 ManagementClient 实例设置为一个全局变量(只初始化一次),而 AuthenticationClient 应该每次请求初始化一个。

安装

我们推荐使用 composer 进行安装, 它可以与一些模块打包工具很好地配合使用。

使用管理模块

初始化 ManagementClient 需要 userPoolId(用户池 ID) 和 secret(用户池密钥):

你可以在此了解如何获取 UserPoolId 和 Secret .

现在 managementClient 实例就可以使用了。例如可以获取用户池中的用户列表:

使用认证模块

初始化 AuthenticationClient 需要 appId(应用 ID):

你可以在此了解如何获取 AppId .

接下来可以进行注册登录等操作:

完成登录之后,update_profile 等要求用户登录的方法就可用了:

你也可以在初始化后设置 AccessToken 参数, 不需要每次都调用 LoginByXXX 方法:

再次执行 UpdateProfile 方法,发现也成功了:

错误处理

统一使用 try catch 处理:

私有化部署

私有化部署场景需要指定你私有化的 Authing 服务的 GraphQL 端点(不带协议头和 Path),如果你不清楚可以联系 Authing IDaaS 服务管理员。

接口索引

可用的 Authentication 方法

详情请见: 用户认证模块

管理模块包含以下子模块: 管理用户

管理角色

管理策略

管理权限、访问控制

管理用户自定义字段

获取帮助

Join us on Gitter: #authing-chat


All versions of php-80 with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-curl Version *
ext-json Version *
ext-openssl Version *
guzzlehttp/guzzle Version ^6.5.5
firebase/php-jwt Version ^5.2
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 authing-sdk/php-80 contains the following files

Loading the files please wait ....