Download the PHP package xianrenqh/dingxiang-php-sdk without Composer

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

顶象PHP SKD

因为要使用Thinkphp和Webman框架,而官方没有提供Composer安装,故自己弄一个集成。

依赖项

请在安装之前确保以下模块已安装且可用,否则运行的时候会报错:

安装

在项目的根目录执行安装指令:

composer require xianrenqh/dingxiang-php-sdk

使用

目前仅支持以下服务:

案例

php服务端使用

web端接入

获取appId

请先进入顶象控制台(或点击右上角登陆按钮)中的“应用管理”或“应用配置”模块,并找到appId。

引入 JS

<script src="https://cdn.dingxiang-inc.com/ctu-group/captcha-ui/index.js" crossorigin="anonymous" id="dx-captcha-script"></script>

注意:由于验证码 JS 会不定期升级更新,请直接引用顶象 CDN 上的资源,以便及时获得最新安全防护。不要将 JS 文件下载到自己服务器使用。

初始化 以下分别列举Javascript、React、Vue的初始化接入示例代码:

Javascript 示例

假设页面上有一个

<div id="c1"></div>

,则可以像下面这样初始化验证码。

初始化完成后,验证码组件会被插入到

中。

React 示例

假设页面上有一个

,则可以像下面这样初始化验证码:

可点击查看 React完整示例代码 初始化完成后,验证码组件会被插入到 <div id="demo"

中。

Vue 示例

假设页面上有一个

,则可以像下面这样初始化验证码:

可点击查看 Vue完整示例代码 初始化完成后,验证码组件会被插入到 <div ref="demo"中。

其他具体使用方法请参考 https://www.dingxiang-inc.com/docs


All versions of dingxiang-php-sdk 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 xianrenqh/dingxiang-php-sdk contains the following files

Loading the files please wait ....