定制 beyondexp/beyondcdn 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

beyondexp/beyondcdn

Composer 安装命令:

composer require beyondexp/beyondcdn

包简介

Flysystem adapter for BeyondCDN.

README 文档

README

This is a PHP Flysystem adapter for CDN (Content Delivery Network) integration. It is inspired by the Frosh BunnyCDN adapter and allows you to easily store and retrieve files from your CDN using Flysystem.

Installation You can install the adapter using composer. Run the following command in your project directory:

javascript Copy code composer require beyondEXP/beyondcdn Usage To use this adapter, you need to create a Flysystem instance and pass the adapter to it. Here's an example:

use YourCompany\YourCdnAdapter\YourCdnAdapter;
use League\Flysystem\Filesystem;

$adapter = new YourCdnAdapter('your-cdn-username', 'your-cdn-api-key', 'your-cdn-zone-id');
$filesystem = new Filesystem($adapter);
Now you can use the Flysystem API to interact with your CDN. Here are some examples:
$filesystem->write('path/to/file.txt', 'contents');

// Check if a file exists on the CDN
$filesystem->has('path/to/file.txt');

// Read the contents of a file from the CDN
$contents = $filesystem->read('path/to/file.txt');

// Delete a file from the CDN
$filesystem->delete('path/to/file.txt');

Configuration When creating a new adapter, you need to pass three parameters:

username: Your CDN username
apiKey: Your CDN API key
zoneId: The ID of the CDN zone you want to use

You can also pass an optional fourth parameter domain if you want to specify the CDN domain to use (e.g. if you're using a custom domain).

Contributing If you find a bug or have a feature request, please create an issue on the Github repository for this project. Pull requests are also welcome.

License This project is licensed under the MIT License. See the LICENSE file for details.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固