← back to Blog
2
 min read
December 7, 2015

Introducing the PHP SDK for the Cronofy Calendar API

We’ve had a lot of great community feedback for Cronofy (please, keep it coming!) and one of the most common questions is: ‘When are you releasing a PHP code library?' Last month we released the .NET SDK, where it joined Ruby in our growing collection of API libraries. But there was still something missing for the PHP developers in the community. So we’re delighted to announce that our shiny new PHP SDK has now joined the family!

We’ve had a lot of great community feedback for Cronofy (please, keep it coming!) and one of the most common questions is: ‘When are you releasing a PHP code library?’

Last month we released the .NET SDK, where it joined Ruby in our growing collection of API libraries. But there was still something missing for the PHP developers in the community.

So we’re delighted to announce that our shiny new PHP SDK has now joined the family!

Take a look here: PHP SDK for the Cronofy Calendar API

Hold it, there are moar docs

If you’re new to Cronofy but looking to get started with easy calendar integration across all the calendar API services, read our Getting Started guide. It’ll help you get up and running in just a few minutes.

There are also Sample Apps and Tutorials for using Cronofy, and we’re working on adding more to the list. And of course, there are the full Cronofy API docs too.

PHP code snippets

$cronofy = new Cronofy("clientId", "ClientSecret", "AccessToken", "RefreshToken");

$calendar = $cronofy->list_calendars();
$events = $cronofy->read_events(array('tzid' => 'Etc/UTC'));

$params = array(
   'calendar_id' => 'calendarID',
   'event_id' => 'event_test_12345679',
   'summary' => 'test event 2',
   'description' => 'some event data here',
   'start' => '2015-12-07T09:00:00Z',
   'end' => '2015-12-08T10:00:00Z'
);
$cronofy->upsert_event($params);

Get involved

If you have any feedback on our PHP SDK or there’s something you’d like to see us add to it, we want to know! Drop us an email at support@cronofy.com or post it on our feedback portal.

We also love community contributions, so if you’d like to write some code or develop a brand new Cronofy library, please get in touch!

PHP, PHP everywhere

To save you scrolling back up, here’s the link to the PHP code library again:

Access the Cronofy PHP code library

Jeremy is the Head of Marketing at Cronofy with over a decade of experience in the tech industry.

Cronofy reviews sourced by G2