Download the PHP package keqin/dingtalk without Composer

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

keqin/dingtalk 克勤 Laravel 钉钉扩展包

PHP Composer

安装

composer require keqin/dingtalk

安装完成后,使用 php artisan vendor:publish --provider="Keqin\Dingtalk\ServiceProvider" 自动生成 config/dingtalk.php 和 views: resources/views/ddlogin.blade.php 用于钉钉一键登录。

AccessToken

自动更新

安装后自动注入 Artisan 命令 dingtalk:accesstoken --sync 即可自动更新。Token 会自动存入 Laravel Cache 中。

使用 dingtalk:accesstoken --show 查看最新的 Token 信息。

手动访问 Access Token

\Dingtalk::accessToken() 可访问到 Dingtalk AccessToken 对象,支持转成字符串,为当前 AccessToken。

调用钉钉接口

Dingtalk 支持 get 和 post 接口,url 中的 access_token 可以省略,库会自动补上。

返回了 \Http::get 和 \Http::post 的对象。响应对象的具体用法参见 Laravel 文档

用法举例

错误处理

默认情况下 errcode 不为 0,将抛出 Exception。如果希望直接返回,可以


All versions of dingtalk 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 keqin/dingtalk contains the following files

Loading the files please wait ....