Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/larvatecn/laravel-baidu-cloud
Baidu Cloud Extension for Laravel. 适用于 Laravel 的百度云扩展。
https://github.com/larvatecn/laravel-baidu-cloud
laravel laravel-baidu-cloud
Last synced: 12 days ago
JSON representation
Baidu Cloud Extension for Laravel. 适用于 Laravel 的百度云扩展。
- Host: GitHub
- URL: https://github.com/larvatecn/laravel-baidu-cloud
- Owner: larvatecn
- License: mit
- Created: 2021-02-19T09:42:04.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-18T08:50:14.000Z (almost 4 years ago)
- Last Synced: 2024-04-25T16:42:17.369Z (8 months ago)
- Topics: laravel, laravel-baidu-cloud
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-baidu-cloud
This is a baidu cloud expansion for the laravel
[![License](https://poser.pugx.org/larva/laravel-baidu-cloud/license.svg)](https://packagist.org/packages/larva/laravel-baidu-cloud)
[![Latest Stable Version](https://poser.pugx.org/larva/laravel-baidu-cloud/v/stable.png)](https://packagist.org/packages/larva/laravel-baidu-cloud)
[![Total Downloads](https://poser.pugx.org/larva/laravel-baidu-cloud/downloads.png)](https://packagist.org/packages/larva/laravel-baidu-cloud)## 接口支持
- CDN
- 自然语言处理 NLP
- SMS## 环境需求
- PHP >= 7.1
## Installation
```bash
composer require larva/laravel-baidu-cloud -vv
```## for Laravel
This service provider must be registered.
```php
// config/app.php'providers' => [
'...',
Larva\Baidu\Cloud\BaiduCloudServiceProvider::class,
];
```## Use
```php
try {
$cdn = \Larva\Baidu\Cloud\BaiduCloud::get('cdn');
} catch (\Exception $e) {
print_r($e->getMessage());
}try {
$nlp = \Larva\Baidu\Cloud\BaiduCloud::get('nlp');
$tags = $nlp->keywords('标题','内容');
print_r($tags);
} catch (\Exception $e) {
print_r($e->getMessage());
}
```