Download the PHP package tencentcloudbase/tcb-manager-php without Composer

On this page you can find all versions of the php package tencentcloudbase/tcb-manager-php. 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 tcb-manager-php

tcb-manager-php

[![Build Status](https://travis-ci.org/TencentCloudBase/tcb-manager-php.svg?branch=master)](https://travis-ci.org/tencentcloudbase/tcb-manager-php) [![Latest Stable Version](https://poser.pugx.org/tencentcloudbase/tcb-manager-php/version)](https://packagist.org/packages/tencentcloudbase/tcb-manager-php) [![Latest Unstable Version](https://poser.pugx.org/tencentcloudbase/tcb-manager-php/v/unstable)](//packagist.org/packages/tencentcloudbase/tcb-manager-php) [![Total Downloads](https://poser.pugx.org/tencentcloudbase/tcb-manager-php/downloads)](https://packagist.org/packages/tencentcloudbase/tcb-manager-php)

使用步骤

安装 SDK

  1. 【推荐】通过 composer 安装:

    安装 composer,见:https://getcomposer.org/doc/00-intro.md

  2. 手动安装源码包:

    1. 前往源码仓库下载源码包,仓库地址:https://github.com/TencentCloudBase/tcb-manager-php
    2. 将源码包放到项目合适位置;

引入 SDK

如果项目使用 composer 管理依赖,则会自动引入,可跳过此步骤

使用 SDK

引用 SDK 后,便可以使用了,SDK 命名空间:TcbManager

初始化 SDK

通过腾讯云 API 密钥初始化:

注意:需要提前开通 TCB 服务并创建环境,否则 SDK 无法使用

腾讯云 TCB 控制台地址:https://console.cloud.tencent.com/tcb

在云函数环境下,支持免密钥初始化:

初始化后得到一个 TcbManager 实例,注意,该实例是单例的,多次调用 TcbManager::init 只会初始化一次。

你也可以通过 new TcbManager 创建实例:

每次初始化都会得到一个全新的 TcbManager 实例,如果需要管理多个腾讯云账号下的 TCB 服务,可通过此种方式创建多个 TcbManager 实例。

初始化完成之后,便可以使用相关功能了。

完整示例

list-functions(源码):

输出示例:

Docs


All versions of tcb-manager-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0.0
ext-json Version *
nelexa/zip Version ^3.1
webmozart/path-util Version ^2.3
tencentcloudbase/tencentcloud-client-php Version 1.1.4
tencentcloudbase/tcb-php-sdk Version 1.0.2
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 tencentcloudbase/tcb-manager-php contains the following files

Loading the files please wait ....