PHPackages                             teodortalov/citrix - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. teodortalov/citrix

ActiveLibrary[API Development](/categories/api)

teodortalov/citrix
==================

PHP wrapper around Citrix - GoToMeeting and GoToWebinar APIs. Forked from teodortalov/citrix.

1.2(10y ago)1747.7k30[5 issues](https://github.com/teodortalov/citrix/issues)MITPHP

Since Jul 25Pushed 6y ago6 watchersCompare

[ Source](https://github.com/teodortalov/citrix)[ Packagist](https://packagist.org/packages/teodortalov/citrix)[ RSS](/packages/teodortalov-citrix/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

Citrix API - PHP wrapper around GoToWebinar APIs - 2015
=======================================================

[](#citrix-api---php-wrapper-around-gotowebinar-apis---2015)

Install via Composer
--------------------

[](#install-via-composer)

`require "teodortalov/citrix: *"`

Authenticate and Get Going in 15 seconds
----------------------------------------

[](#authenticate-and-get-going-in-15-seconds)

All you need in order to authenticate with Citrix's API is a consumer key, which you can obtain by registering at [Citrix Developer Center](https://developer.citrixonline.com/user/register). After registering and adding your application, you will be given *Consumer Key*, *Consumer Secret*, and *Callback URL*. You need the *Consumer Key* in order for your application to authenticate with Citrix using this library.

Direct Authentication
---------------------

[](#direct-authentication)

In addition to the *Consumer Key*, for **Direct Authentication** you need your *username* and *password*, which is the one that you use to login into [GoToWebinar.com](http://GoToWebinar.com).

You can authenticate to Citrix, and your GoToWebinar account respectively, like so:

```
$client = new \Citrix\Authentication\Direct('CONSUMER_KEY');
$client->auth('USERNAME', 'PASSWORD');

```

Generally, the things you need the most are the `access_token` and `organizer_key`. You can retrieve those like this:

```
$client->getAccessToken(); //returns your access token
$client->getOrganizerKey(); //returns the organizer key

```

The code will handle all the authentication stuff for you, so you don't really have to worry about that.

Getting upcoming webinars
-------------------------

[](#getting-upcoming-webinars)

In order to get all the upcoming webinars, you have to do this:

```
$goToWebinar = new \Citrix\GoToWebinar($client); //@see $client definition above
$webinars = $goToWebinar->getUpcoming();
var_dump($webinars); //this gives you all upcoming webinars

```

Getting past webinars
---------------------

[](#getting-past-webinars)

In order to get all the past webinars, you have to do this:

```
$goToWebinar = new \Citrix\GoToWebinar($client); //@see $client definition above
$webinars = $goToWebinar->getPast();
var_dump($webinars); //this gives you all upcoming webinars

```

If you would like to get the registration/join URL for a webinar you can do so like this:

```
$webinar = reset($webinars);
$webinar->getRegistrationUrl(); //https://attendee.gotowebinar.com/register/456905497806
```

Register a user for a webinar
-----------------------------

[](#register-a-user-for-a-webinar)

You can really easily register somebody for a webinar. Basically, all you need to do is this:

```
$data = array('email' => 'joe.smith@gmail.com', 'firstName' => 'Joe', 'lastName' => 'Smith');
$consumer = new \Citrix\Entity\Consumer($client);
$consumer->setData($data)->populate();

//register a user for the very first upcoming webinar, @see Getting upcoming webinars
$webinar = reset($webinars);
$webinar->registerConsumer($consumer);

```

As mentioned above `$client` you can get from **Authenticate and Get Going in 15 seconds** section, and `$webinar` you can get from **Getting upcoming webinars** section.

Alternatively, you can register a user for a webinar by providing the `webinarKey` and the user data directly to the `GoToWebinar` class like so:

```
$webinarKey = 123123;
$registrantData = array('email' => 'joe.smith@gmail.com', 'firstName' => 'Joe', 'lastName' => 'Smith');

$goToWebinar = new \Citrix\GoToWebinar($client); //@see $client definition above
$goToWebinar->register($webinarKey, $registrantData);

```

Error handling
--------------

[](#error-handling)

The code does handle errors but it fails silently. You can check for errors like so:

```
$data = array('email' => 'joe.smith@gmail.com', 'firstName' => 'Joe', 'lastName' => 'Smith');
$consumer = new \Citrix\Entity\Consumer($client);
$consumer->setData($data)->populate();

//register a user for the very first upcoming webinar, @see Getting upcoming webinars
$webinar = reset($webinars);
$registration = $webinar->registerConsumer($consumer);

if($registration->hasErrors()){
   //get the first error that occurred and use it as the exception message
   throw new \Exception($registration->getError());
}

//no errors, continue...
die('Registration was successful.');

```

You can also display/get all errors like so:

```
$registration->getErrors();

```

Also you can push new errors like so:

```
$registration->addError('Something went wrong!!!');

```

Error handling should be available everywhere, so you should always be able to call `hasErrors()` and check for errors.

Contributions - Fork, Fork, Fork
--------------------------------

[](#contributions---fork-fork-fork)

If you would like to help maintain this project and/or if you have any questions or comments about the library's design or implementation I'd love to hear from you.

What's coming?
--------------

[](#whats-coming)

More stuff, first and foremoest in-like documentation, so your IDE works. Unit testing, and more from Citrix API.

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 70.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~324 days

Total

3

Last Release

3701d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c43db68a7e04c12abb3642479297b5080f47c3b436875c059ec278ec1655e78f?d=identicon)[teodortalov](/maintainers/teodortalov)

---

Top Contributors

[![teodortalov](https://avatars.githubusercontent.com/u/2781820?v=4)](https://github.com/teodortalov "teodortalov (41 commits)")[![jpbede](https://avatars.githubusercontent.com/u/3989428?v=4)](https://github.com/jpbede "jpbede (6 commits)")[![oytuntez](https://avatars.githubusercontent.com/u/656635?v=4)](https://github.com/oytuntez "oytuntez (4 commits)")[![mglaman](https://avatars.githubusercontent.com/u/3698644?v=4)](https://github.com/mglaman "mglaman (3 commits)")[![wilsonweb](https://avatars.githubusercontent.com/u/1951568?v=4)](https://github.com/wilsonweb "wilsonweb (1 commits)")[![grgcnnr](https://avatars.githubusercontent.com/u/2694014?v=4)](https://github.com/grgcnnr "grgcnnr (1 commits)")[![mryanb](https://avatars.githubusercontent.com/u/3656391?v=4)](https://github.com/mryanb "mryanb (1 commits)")[![allyjweir](https://avatars.githubusercontent.com/u/3640069?v=4)](https://github.com/allyjweir "allyjweir (1 commits)")

---

Tags

citrixGoToWebinarGoToWebinar APICitrix APIGoToMeeting API

### Embed Badge

![Health badge](/badges/teodortalov-citrix/health.svg)

```
[![Health](https://phpackages.com/badges/teodortalov-citrix/health.svg)](https://phpackages.com/packages/teodortalov-citrix)
```

###  Alternatives

[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)[slakbal/gotowebinar

GotoWebinar API wrapper for laravel 5+

1513.1k](/packages/slakbal-gotowebinar)[smx/simplemeetings

Simple and abstracted library for integrating with web meetings providers such as WebEx and Citrix.

137.4k](/packages/smx-simplemeetings)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
