Download the PHP package alibabacloud/oss-v2 without Composer

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

Alibaba Cloud OSS SDK for PHP v2

GitHub version

alibabacloud-oss-php-sdk-v2 is the Developer Preview for the v2 of the OSS SDK for the PHP programming language

简体中文

About

  • This PHP SDK is based on the official APIs of Alibaba Cloud OSS.
  • Alibaba Cloud Object Storage Service (OSS) is a cloud storage service provided by Alibaba Cloud, featuring massive capacity, security, a low cost, and high reliability.
  • The OSS can store any type of files and therefore applies to various websites, development enterprises and developers.
  • With this SDK, you can upload, download and manage data on any app anytime and anywhere conveniently.

Running Environment

  • PHP 7.4 or above.

Installing

Install the sdk through composer

If you use the composer to manage project dependencies, run the following command in your project's root directory:

You can also declare the dependency on Alibaba Cloud OSS SDK for PHP v2 in the composer.json file.

Install from the PHAR File directly

Getting Started

List Bucket

List Objects

Put Object

Complete Example

More example projects can be found in the sample folder

Running Example

  • Run composer install to download the dependent libraries.
  • Go to the sample code folder sample
  • Configure credentials values from the environment variables, like export OSS_ACCESS_KEY_ID="your access key id", export OSS_ACCESS_KEY_SECRET="your access key secrect"
  • Take ListBuckets.php as an example,run php ListBuckets.php --region cn-hangzhou command。

License

  • Apache-2.0, see license file

All versions of oss-v2 with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ext-simplexml Version *
ext-json Version *
psr/http-message Version ^1.0 || ^2.0
guzzlehttp/guzzle Version ^6.5.8 || ^7.4.5
guzzlehttp/psr7 Version ^1.9.1 || ^2.4.5
guzzlehttp/promises Version ^1.4.0 || ^2.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 alibabacloud/oss-v2 contains the following files

Loading the files please wait ....