larva / laravel-bce
This is a Laravel expansion for the Baidu Cloud.
Installs: 1 002
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- ext-dom: *
- ext-json: *
- ext-libxml: *
- ext-simplexml: *
- guzzlehttp/guzzle: ^6.5 || ^7.2
- illuminate/bus: ^5.0 || ^6.0 || ^7.0 || ^8.0
- illuminate/queue: ^5.0 || ^6.0 || ^7.0 || ^8.0
- illuminate/support: ^5.0 || ^6.0 || ^7.0 || ^8.0
- larva/supports: ^2.0
README
This is a baidu cloud expansion for the laravel
接口支持
- CDN
- 自然语言处理 NLP
- SMS
环境需求
- PHP >= 7.1
Installation
composer require larva/laravel-bce
for Laravel
This service provider must be registered.
// config/app.php 'providers' => [ '...', Larva\Baidu\Cloud\BceServiceProvider::class, ];
Use
try { $cdn = \Larva\Baidu\Cloud\Bce::get('cdn'); } catch (\Exception $e) { print_r($e->getMessage()); } try { $nlp = \Larva\Baidu\Cloud\Bce::get('nlp'); $tags = $nlp->keywords('标题','内容'); print_r($tags); } catch (\Exception $e) { print_r($e->getMessage()); }