PHPackages                             socioevents/webex-events-php-sdk - 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. socioevents/webex-events-php-sdk

ActiveLibrary[API Development](/categories/api)

socioevents/webex-events-php-sdk
================================

webex events php sdk Check https://github.com/SocioEvents/webex-events-php-sdk for more info.

v1.0.0(1y ago)039MITPHPPHP ^8.1CI passing

Since Jul 30Pushed 1y ago6 watchersCompare

[ Source](https://github.com/SocioEvents/webex-events-php-sdk)[ Packagist](https://packagist.org/packages/socioevents/webex-events-php-sdk)[ RSS](/packages/socioevents-webex-events-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.txt)[![Webex Events](https://github.com/SocioEvents/webex-events-php-sdk/actions/workflows/php.yml/badge.svg)](https://github.com/SocioEvents/webex-events-php-sdk/actions)

[![Webex EVENTS](webex-events-logo-white.svg "Webex Events")](https://socio.events)

Webex Events Api Php SDK
========================

[](#webex-events-api-php-sdk)

Webex Events provides a range of additional SDKs to accelerate your development process. They allow a standardized way for developers to interact with and leverage the features and functionalities. Pre-built code modules will help access the APIs with your private keys, simplifying data gathering and update flows.

Requirements
------------

[](#requirements)

- PHP ^8.1

Installation
------------

[](#installation)

Via command line:

```
composer require socioevents/webex-events-php-sdk

```

Configuration
-------------

[](#configuration)

```
    Configuration::setAccessToken('access token');
    Configuration::setLogger($logger); // implement your logger via LoggerInterface, default is off
    Configuration::setMaxRetries(3); //optional default 3
    Configuration::setReadTimeoutSeconds(30); //optional default 30 sec
    Configuration::setConnectTimeoutSeconds(10); //optional default 10 sec
```

Usage
-----

[](#usage)

```
  $query = 'query EventsConnection($first: Int) {
          eventsConnection(first: $first){
              edges{
                  cursor
                  node{
                      id
                      name
                  }
              }
          }
      }';
    $variables = ["first" => 100];
    $requestOptions = new RequestOptions(Helpers::generateUUID());

    $response = Client::query($query, 'eventsConnection', $variables, $requestOptions );
    $data = $response->getJsonResponseBody()['data'];

```

If the request is successful, `WebexEvents\Client.query` will return `WebexEvents\Response` object which has the following methods.

MethodType`httpStatusCode``int``responseHeaders``array``jsonResponseBody``?array` (lazy loaded)`responseBodyString``string``requestHeaders``array``requestBody``array``url``string``retryCount``int``$timeSpendInMs``int``rateLimiter`[`WebexEvents\RateLimiter`](https://github.com/SocioEvents/webex-events-php-sdk/src/RateLimiter.php)For non 200 status codes, an exception is raised for every status code such as `WebexEvents\Errors\ServerError` for server errors. For the flow-control these exceptions should be handled like the following. This is an example for `429` status code. For the full list please refer to [this](https://github.com/SocioEvents/webex-events-php-sdk/blob/main/lib/webex/request.rb#L39) file.

```
try {
    $response = Client::query($query, $operationName, $variables, $requestOptions);
}
catch (DailyQuotaIsReachedError $e) {
    // do someteging here
}
catch (SecondBasedQuotaIsReachedError $e){
    $sleepTime = $e->getResponse()->getRateLimiter()->getSecondlyRetryAfterInMs();
    usleep($sleepTime * 1000);
    // do retry
}
```

By default, `Webex::Client.query` has retry policy under the hood. It retries the request for the following exceptions according to the `Configuration::getMaxRetries()`.

```
WebexEvents\Errors\RequestTimeoutError => 408
WebexEvents\Errors\ConflictError => 409
WebexEvents\Errors\SecondBasedQuotaIsReachedError => 429
WebexEvents\Errors\BadGatewayError => 502
WebexEvents\Errors\ServiceUnavailableError => 503
WebexEvents\Errors\GatewayTimeoutError => 504

```

For Introspection
-----------------

[](#for-introspection)

```
WebexEvents\Client.doIntrospectionQuery()

```

Idempotency
-----------

[](#idempotency)

The API supports idempotency for safely retrying requests without accidentally performing the same operation twice. When doing a mutation request, use an idempotency key. If a connection error occurs, you can repeat the request without risk of creating a second object or performing the update twice.

To perform mutation request, you must add a header which contains the idempotency key such as `Idempotency-Key: `. The SDK does not produce an Idempotency Key on behalf of you if it is missed. Here is an example like the following:

```
    $mutation = 'mutation ComponentCreate($input: ComponentCreateInput!) {
                  componentCreate(input: $input) {
                    eventId
                    featureTypeId
                    id
                    name
                  } }';

    $mutationVariables = [
        "input" => [
            "eventId" => 1,
            "featureTypeId" => 6,
            "name" => "Speakers",
            "pictureUrl"=>'https://webexevents.com/media_test.jpeg',
            "settings" => [
                "displayMethod" => "GRID",
                "isHidden" => false
            ]
        ]
    ];

    try
    {
        $response = Client::query(
            $mutation,
            'ComponentCreate',
            $mutationVariables,
            new RequestOptions(Helpers::generateUUID())
        );
    }
    catch (ConflictError $e)
    {
        // Conflict errors will be retried, but to guarantee it you can handle the exception again.
        usleep(20000);
        // do retry
    }
```

Telemetry Data Collection
-------------------------

[](#telemetry-data-collection)

Webex Events collects telemetry data, including hostname, operating system, language and SDK version, via API requests. This information allows us to improve our services and track any usage-related faults/issues. We handle all data with the utmost respect for your privacy. For more details, please refer to the Privacy Policy at

Development
-----------

[](#development)

After checking out the repo, `composer install` install dependencies. Then, run `./vendor/bin/phpunit tests` to run the tests.

Contributing
------------

[](#contributing)

Please see the [contributing guidelines](CONTRIBUTING.md).

License
-------

[](#license)

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Code of Conduct
---------------

[](#code-of-conduct)

Everyone interacting in the Webex Events API project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](CODE_OF_CONDUCT.md).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.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

Unknown

Total

1

Last Release

648d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26fea9362e7cb227196bd14799735352dbb77912e660fad57163deedcd226f68?d=identicon)[webex\_events\_sdk](/maintainers/webex_events_sdk)

---

Top Contributors

[![gsahancsc](https://avatars.githubusercontent.com/u/107851937?v=4)](https://github.com/gsahancsc "gsahancsc (2 commits)")[![ferhatc-cisco](https://avatars.githubusercontent.com/u/94682576?v=4)](https://github.com/ferhatc-cisco "ferhatc-cisco (1 commits)")

---

Tags

eventevent-management

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/socioevents-webex-events-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/socioevents-webex-events-php-sdk/health.svg)](https://phpackages.com/packages/socioevents-webex-events-php-sdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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