Download the PHP package pixelstudio/wp-google-api without Composer

On this page you can find all versions of the php package pixelstudio/wp-google-api. 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 wp-google-api

WP Google Calendar API

This WordPress plugin just provide you with the API Client. It doesn't do anything without coding in your Theme.

For documentation reads: https://github.com/google/google-api-php-client

Requirement

Local Testing

You need SSL to make the API works.

If you're in Windows, you can add certificate to your WAMP or XAMPP installation by following these steps:

  1. Download latest certificate from https://curl.haxx.se/docs/caextract.html

  2. Put it in PHP folder like C:\xampp\php\extras\ssl\ or C:\wamp64\bin\php\php7.0.0\extras\ssl

  3. In php.ini file, uncomment "curl.cainfo" and put in the path to your SSL file like curl.cainfo = "C:\xampp\php\extras\ssl\cacert-2018-06-02.pem".

  4. Done your API should now work even without changing your Virtual Host to HTTPS.

For details, read this StackOveflow thread

Displaying Own Calendar

You can skip the OAuth process if only for displaying own calendar. Follow these steps:

  1. I assume you have created API Console with permission to get Calendar API. If not do it here https://console.developers.google.com

  2. Go to Menu > IAM & Admin > Service Accounts. Create a new account, name it anything, and set the role to Project > Viewer. Tick "Furnish new Private key".

  3. You will automatically download a JSON file. Keep this safe because you can't redownload it.

  4. Open your Calendar and grant permission to view for the Service Account's email. If you want to see the Color, you need to grant Read & Write access.

  5. Setup is done. You can find sample code here: https://gist.github.com/hrsetyono/5d8623bd8f28da3e282441ce1314f022

All versions of wp-google-api with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
composer/installers 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 pixelstudio/wp-google-api contains the following files

Loading the files please wait ...