There is no license information available for the latest version (0.2.2) of this package.

Google Calendar client that uses Guzzle

0.2.2 2013-06-22 04:42 UTC


Google Calendar Client that uses Guzzle at its core.



  • Helpers for OAuth2 URL creation
  • Helpers for capturing OAuth2 authentication
  • Requests sent through the Guzzle client are signed via plugin
    • If the OAuth2 settings specify an offline mode, expired access tokens can be automatically refreshed

Calendar List

  • List calendars that are available to the authenticated user
  • Remove calendars from the listing


  • Create new account sub-calendars
  • View/Update metadata on existing calendars
  • Delete account sub-calendars


  • Create new events
    • Including recurring events
    • Add attendees/invitations
  • View/Update metadata on events
  • Delete single or recurring events

Free/Busy Queries

  • Allows you to query for times that are marked as Busy on the calendar

Custom Requests

  • If you don't want to use the response representations provided via Guzzlecal, we provide a passthru option that will just give you an OAuth2 authenticated Guzzle client that you can do whatever you want on. If you're using offline mode, expired tokens will still be refreshed for you automatically.


Install via Composer

Depending on what version of Guzzlecal you want to use, your settings will vary. The goal is to keep the most stable version of this package in master, with the develop branch containing bleeding edge changes. When you want to lock in to a specific version (and you should for anything important), then you'll want to use a require line in your composer.json that might look like "ekotechnology/guzzlecal": "0.2", etc. If you want to follow along with the bleeding edge ( This is not suggested for anything important. ), you can do "ekotechnology/guzzlecal": "dev-develop" as your requirement.

If you'd rather not muck around with your composer.json manually, you can just search for Guzzlecal when adding requirements with the composer command.

Install via Git/Filesystem

If you are going to use this method, it is suggested that you star the repository so that you can integrate any security patches or bug fixes as soon as possible.

Use with Laravel 4

This package was built for and within Laravel 4, although the goal is that it will function properly in other PHP projects. See the section below for more info.


Guzzlecal ships with a Service Provider and Facade so that it can tie in very nicely with Laravel 4. Once you've installed Guzzlecal, configuring it for Laravel is pretty simple. You just need to add an entry in for the Service Provider and the Facade.

From the base directory of your app, you need to go to the app configuration file which is found in app/config/app.php. You'll need to add an entry in the providers array with a value of Ekotechnology\Guzzlecal\GuzzlecalServiceProvider. This might make your providers array look something like this:

'providers' => array(


Now, we just need to register the alias for the Facade. So in the aliases array, you'll need to add an entry with the value of Ekotechnology\Guzzlecal\Facades\GuzzlecalFacade. This might make your aliases array look like so:

'aliases' => array(
	'App'             => 'Illuminate\Support\Facades\App',
	'Artisan'         => 'Illuminate\Support\Facades\Artisan',
	'Auth'            => 'Illuminate\Support\Facades\Auth',
	'Blade'           => 'Illuminate\Support\Facades\Blade',
	'Cache'           => 'Illuminate\Support\Facades\Cache',
	'ClassLoader'     => 'Illuminate\Foundation\ClassLoader',
	'Config'          => 'Illuminate\Support\Facades\Config',
	'Route'           => 'Illuminate\Support\Facades\Route',
	'Schema'          => 'Illuminate\Support\Facades\Schema',
	'Session'         => 'Illuminate\Support\Facades\Session',
	'URL'             => 'Illuminate\Support\Facades\URL',
	'Validator'       => 'Illuminate\Support\Facades\Validator',
	'View'            => 'Illuminate\Support\Facades\View',
	'Guzzlecal'       => 'Ekotechnology\Guzzlecal\Facades\GuzzlecalFacade'


Use outside of Laravel 4

If you're not using Laravel 4, you should still be able to use Guzzlecal. You'll want to make sure that you're autoloading your Composer autoloader, and if you aren't using Composer (You really should!), then you'll just have to make sure that the classes in src/Ekotechnology/Guzzlecal get loaded.