Download the PHP package vendasta/g-suite without Composer

On this page you can find all versions of the php package vendasta/g-suite. 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 g-suite

Vendasta Google Workspace PHP SDK

Description

This is Vendasta's official PHP SDK for API integration of Google Workspace.

Requirements

Installation

Install the requirements from above, then:

Authentication

To authenticate your SDK calls, you must provision a service account from within the Vendasta platform. Refer to the service account guide in order to setup authentication.

You must put this file on your server, and set an environment variable to its path:

Client Initialization

It is highly recommended that you use a singleton client instance. Each client initialization will open its own connection, therefore using a singleton results in reusing a connection, saving time and resources.

Set an environment variable:

To instantiate the client:

Notice that the environment will be set to DEMO if it is not specified.

Provisioning a Google Workspace account

Provisioning a new Google Workspace account can be done using the Account Group SDK and Sales Orders SDK. The Account Group SDK is used to create business accounts in Partner Center. Follow the readme for installation and setup. Create is synchronous. It immediately creates the account and returns the account group ID for the business you made (used as the business ID in the other SDKs). After a business is created you can use the Sales Orders SDK to purchase products on that business using the business ID from the Account Group SDK. CreateAndActivateOrder is an asynchronous process which can result in approval or rejection from the vendor. The status of the order can be polled using the GetSalesOrder endpoint given the order ID from CreateAndActivateOrder.

Production App and Add-on IDs

Demo environment App and Add-on IDs

Deprovision an account

How to use this SDK

Getting domain information

To get the information for a domain including the TXT record and status:

Reducing seats

To reduce seats on a subscription list subscriptions on a domain and then calling the ChangeSeats endpoint with a subscription ID. This page can be referenced to determine which SKU ID you would like to change seats for if there is more than one subscription on the domain.

Disabling SSO

SSO is turned on by default. To toggle it off:


All versions of g-suite with dependencies

PHP Build Version
Package Version
Requires grpc/grpc Version ^v1.1.0
guzzlehttp/guzzle Version ^6.3
mdanter/ecc Version ^0.5.0
google/protobuf Version ^3.6.0
vendasta/vax Version ^1.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 vendasta/g-suite contains the following files

Loading the files please wait ....