liguangchun / think-library
ThinkPhP扩展包
v6.0.132
2020-04-13 00:00 UTC
Requires
- php: >=7.1
- ext-curl: *
- ext-dom: *
- ext-gd: *
- ext-iconv: *
- ext-json: *
- ext-libxml: *
- ext-openssl: *
- ext-simplexml: *
- ext-zip: *
- aliyuncs/oss-sdk-php: ^2.3
- baidubce/bce-sdk-php: ^0.8.22
- obs/esdk-obs-php: ^3.19
- phpoffice/phpspreadsheet: 1.17.1
- qcloud/cos-sdk-v5: ^2.0
- qiniu/php-sdk: ^7.2
- topthink/framework: ^6.0.0
- topthink/think-orm: ^2.0
- upyun/sdk: ^3.4
Requires (Dev)
- symfony/var-dumper: ^4.2
- v6.x-dev
- v6.0.132
- v6.0.131
- v6.0.130
- v6.0.129
- v6.0.128
- v6.0.127
- v6.0.126
- v6.0.125
- v6.0.124
- v6.0.123
- v6.0.122
- v6.0.121
- v6.0.120
- v6.0.119
- v6.0.118
- v6.0.117
- v6.0.116
- v6.0.115
- v6.0.114
- v6.0.113
- v6.0.112
- v6.0.111
- v6.0.110
- v6.0.109
- v6.0.108
- v6.0.107
- v6.0.106
- v6.0.105
- v6.0.104
- v6.0.103
- v6.0.102
- v6.0.101
- v6.0.100
- v6.0.99
- v6.0.98
- v6.0.97
- v6.0.96
- v6.0.95
- v6.0.94
- v6.0.93
- v6.0.92
- v6.0.91
- v6.0.90
- v6.0.89
- v6.0.88
- v6.0.87
- v6.0.86
- v6.0.85
- v6.0.84
- v6.0.83
- v6.0.82
- v6.0.81
- v6.0.80
- v6.0.79
- v6.0.78
- v6.0.77
- v6.0.76
- v6.0.75
- v6.0.74
- v6.0.73
- v6.0.72
- v6.0.71
- v6.0.70
- v6.0.69
- v6.0.68
- v6.0.67
- v6.0.66
- v6.0.65
- v6.0.64
- v6.0.63
- v6.0.62
- v6.0.61
- v6.0.60
- v6.0.59
- v6.0.58
- v6.0.57
- v6.0.56
- v6.0.55
- v6.0.54
- v6.0.53
- v6.0.52
- v6.0.51
- v6.0.50
- v6.0.49
- v6.0.48
- v6.0.47
- v6.0.46
- v6.0.45
- v6.0.44
- v6.0.43
- v6.0.42
- v6.0.41
- v6.0.40
- v6.0.39
- v6.0.38
- v6.0.37
- v6.0.36
- v6.0.35
- v6.0.34
- v6.0.33
- v6.0.32
- v6.0.31
- v6.0.30
- v6.0.29
- v6.0.28
- v6.0.27
- v6.0.26
- v6.0.25
- v6.0.24
- v6.0.23
- v6.0.22
- v6.0.21
- v6.0.20
- v6.0.19
- v6.0.18
- v6.0.17
- v6.0.16
- v6.0.15
- v6.0.14
- v6.0.13
- v6.0.12
- v6.0.11
- v6.0.10
- v6.0.9
- v6.0.8
- v6.0.7
- v6.0.6
- v6.0.5
- v6.0.4
- v6.0.3
- v6.0.2
- v6.0.1
- v5.1.x-dev
- v5.1.2
- v5.1.1
This package is auto-updated.
Last update: 2024-11-18 20:10:03 UTC
README
ThinkPHP6扩展包
📦 ThinkPHP6扩展包
依赖环境
- PHP7.1 版本及以上
托管
- 国外仓库地址:https://github.com/GC0202/ThinkLibrary
- 国内仓库地址:https://gitee.com/liguangchun/ThinkLibrary
- Packagist 地址:https://packagist.org/packages/liguangchun/think-library
开发版
composer require liguangchun/think-library ^6.x-dev -vvv
稳定版
composer require liguangchun/think-library ^6.0.* -vvv
更新
composer update liguangchun/think-library -vvv
删除
composer remove liguangchun/think-library -vvv
获取电脑Mac地址服务使用示例
use DtApp\ThinkLibrary\service\SystemService; dump(SystemService::instance() ->mac());
百度地图服务使用示例
use DtApp\ThinkLibrary\service\baidu\LbsYunService; dump(LbsYunService::instance() ->ak("") ->weather());
高德地图服务使用示例
use DtApp\ThinkLibrary\service\amap\AmApService; dump(AmApService::instance() ->key("") ->weather());
抖音服务使用示例
use DtApp\ThinkLibrary\exception\DtaException; use DtApp\ThinkLibrary\service\douyin\WatermarkService; try { // 方法一之网址 dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') ->getAll() ->toArray()); // 方法一之粘贴 dump(WatermarkService::instance()->url('#在抖音,记录美好生活#美丽电白欢迎您 https://v.douyin.com/vPGAdM/ 复制此链接,打开【抖音短视频】,直接观看视频!')->getAll()->toArray()); // 方法二之网址 $dy = WatermarkService::instance()->url('https://v.douyin.com/vPafcr/'); dump($dy->getAll()->toArray()); // 方法二之粘贴 $dy = WatermarkService::instance()->url('#在抖音,记录美好生活#2020茂名加油,广州加油,武汉加油!中国加油,众志成城!#航拍 #茂名#武汉 #广州 #旅拍 @抖音小助手 https://v.douyin.com/vPafcr/ 复制此链接,打开【抖音短视频】,直接观看视频!'); dump($dy->getAll()->toArray()); // 获取全部信息 dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') ->getAll() ->toArray()); // 获取原全部信息 dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') ->getApi() ->toArray()); // 获取视频信息 dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') ->getVideoInfo() ->toArray()); // 获取音频信息 dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') ->getMusicInfo() ->toArray()); // 获取分享信息 dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') ->getShareInfo() ->toArray()); // 获取作者信息 dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') ->getAuthorInfo() ->toArray()); // 返回数组数据方法 dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') ->getAll() ->toArray()); // 返回Object数据方法 dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') ->getAll() ->toObject()); } catch (DtaException $e) { // 错误提示 dump($e->getMessage()); }
纯真数据库
use DtApp\ThinkLibrary\service\QqWryService; // 获取IP信息 dump(QqWryService::instance() ->getLocation());