PHP code example of kappa / google
1. Go to this page and download the library: Download kappa/google library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kappa / google example snippets
class BasePresenter extends Presenter
{
/**
* @var \Kappa\Google\Accounts\ServiceAccount
* @inject
*/
public $serviceAccount
public function actionDefault()
{
dump($this->serviceAccount->getClient()) // Returns logged client
die();
}
// ...
}