Download the PHP package huojunhao/tencent-oss-adapter without Composer

On this page you can find all versions of the php package huojunhao/tencent-oss-adapter. 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 tencent-oss-adapter

<<<<<<< HEAD

Use tencent-oss-adapter as Laravel Storage

模仿 aliyun-oss-adapter阿里云的oss包写了腾讯云的oss

腾讯云的OSS sdk: qcloud/cos-sdk-v5

Usage

bash composer require aobozhang/aliyun-oss-adapter bash // config/app.php

'providers' => [ ..., Huojunhao\OSS\TencentyunOssFilesystemServiceProvider::class ]; bash // config/filesystem.php.

    'tencent_oss' => [
        'driver'     => 'tencent_oss',
        'credentials'=>[
            'appId' => env('QCLOUD_APPID'),//开发者访问 COS 服务时拥有的用户维度唯一资源标识,用以标识资源
            'secretId'    => env('QCLOUD_SECRETID'),//开发者拥有的项目身份识别 ID,用以身份认证
            'secretKey' => env('QCLOUD_SECRETKEY')//开发者拥有的项目身份密钥
        ],
        'region' => env('QCLOUD_REGION'),//地区
        'bucket' => env('QCLOUD_BUCKET'),//COS 中用于存储数据的容器
    ],

bash 'default' => 'tencent_oss';



###demo

//   添加

     Storage::put('marss.jpg', file_get_contents(__DIR__."/mars.jpg"));

// 下载

     $contents = Storage::get('marss.jpg');
     file_put_contents(__DIR__ . "/testtencent.jpg", $contents);

//    是否存在

      $exists   = Storage::exists('marss.jpg');
              dump($exists);

//    大小(单位为B)      

        $size     = Storage::size('marss.jpg');
                dump($size);

//     最新更新时间

        $time     = Storage::lastModified('marss.jpg');
        dump(date("Y-m-d H:i:s",$time));

//       复制

        Storage::copy('test/marss.jpg', 'new/marss.jpg');

 //       移动

         Storage::move('marss.jpg', 'new/test/marss.jpg');

目前只实现了这几个功能,其他的比如列表显示等还没有实现

=======
# tencent-oss-adapter
>>>>>>> 8b1ba242542d3641becbe6cea5e9cbefb78cde4e

All versions of tencent-oss-adapter with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
league/flysystem Version ~1.0
qcloud/cos-sdk-v5 Version >=1.0
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 huojunhao/tencent-oss-adapter contains the following files

Loading the files please wait ....