PHPackages                             iodatacenters/oktasdk - 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. iodatacenters/oktasdk

Abandoned → [okta/sdk](/?search=okta%2Fsdk)Library[API Development](/categories/api)

iodatacenters/oktasdk
=====================

PHP client library for the Okta API (v1)

1.2.12(8y ago)01.4kMITPHPPHP &gt;=5.5.0CI failing

Since Mar 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/PHLAK/oktasdk-php)[ Packagist](https://packagist.org/packages/iodatacenters/oktasdk)[ RSS](/packages/iodatacenters-oktasdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (22)Used By (0)

OktaSDK-PHP
===========

[](#oktasdk-php)

**!!! UNMAINTAINED !!!** - This library is no longer maintained. You are recommend to switch to the official [`okta/sdk`](https://packagist.org/packages/okta/sdk)library instead.

---

[![Latest Stable Version](https://camo.githubusercontent.com/308f1da01146d28f91d5111f3e1fb5f0b001226c1cdaa19f293825704b78410c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696f6461746163656e746572732f6f6b746173646b2e737667)](https://packagist.org/packages/iodatacenters/oktasdk)[![Total Downloads](https://camo.githubusercontent.com/800c53d145a1f7ca7fc8cb6c85305fd28492b41c3156f63272479f54587f80c8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696f6461746163656e746572732f6f6b746173646b2e737667)](https://packagist.org/packages/iodatacenters/oktasdk)[![License](https://camo.githubusercontent.com/bf2b88e49b183d5bd0dd897a2b37d60fd66a90a03b2b735ca6d6559871c21873/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696f6461746163656e746572732f6f6b746173646b2e737667)](https://packagist.org/packages/iodatacenters/oktasdk)[![Build Status](https://camo.githubusercontent.com/4786841c8e7e40804165b7f1fc8b39d4896d3704c6eef7cd1d50d3e4fe09d58a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f696f6461746163656e746572732f6f6b746173646b2d7068702e737667)](https://travis-ci.org/iodatacenters/oktasdk-php)

PHP client library for the Okta API (v1)

Refer to the full [Okta API documentation](http://developer.okta.com/docs/api)for more complete information on each resource/component.

Install with Composer
---------------------

[](#install-with-composer)

```
composer require iodatacenters/oktasdk
```

Initializing the Client
-----------------------

[](#initializing-the-client)

To initialize the client object you must pass in your Okta organization subdomain and API key as parameters. For example, if your Okta domain is `https://foo.okta.com`, your org prefix is `foo`. For instructions on how to get an API key for your organization, see [Obtaining a token](http://developer.okta.com/docs/api/getting_started/getting_a_token.html).

#### Example:

[](#example)

```
use Okta;

$okta = new Okta\Client('foo', 'api_key');
```

You may also optionally pass an array of config options as the third argument:

```
$okta = new Okta\Client('foo', 'api_key', [
    'bootstrap' => false, // Don't auto-bootstrap the Okta resource properties
    'preview'   => true,  // Use the okta preview (oktapreview.com) domain
    'headers'   => [
        'Some-Header'    => 'Some value',
        'Another-Header' => 'Another value'
    ]
]);
```

Usage
-----

[](#usage)

All Okta resources are available via the `$okta->$resource->$method` syntax where `$resource` is the lower case, singular name of the resource (i.e. - Users = `user`, Groups = `group`, etc.) and `$method` is the method name (see the docs for all available methods). The only exception being the Authentication resource for which the method name is `auth` (because `authentication` is just too long).

#### Example:

[](#example-1)

```
// Get a user by ID
$user = $okta->user->get('jpinkerton');

// Add user to a group
$group = $okta->group->addUser($someGroupId, $user->id);

// Get a user's apps
$userApps = $okta->user->apps($user->id);
```

Handling Exceptions
-------------------

[](#handling-exceptions)

```
use Okta;

try {
    $user = $okta->user->get('jpinkerton');
} catch (Okta\Exception as $e) {
    return $e->getErrorSummary();
}
```

See documentation for available exception methods.

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

[](#contributing)

1. Fork [the repository](https://github.com/iodatacenters/oktasdk-php)
2. Clone your fork:

    ```
    git clone git@github.com:your-username/oktasdk-php.git
    # NOTE: Be sure to use your fork's repository URL
    ```
3. In your local copy, create a branch:

    ```
    git checkout -b descriptive-branch-name'
    ```
4. Make your changes
5. Commit your changes:

    ```
    git commit -m "Your commit notes here"
    # NOTE: Be descriptive with your commit notes
    ```
6. Push your branch:

    ```
    git push origin descriptive-branch-name
    ```
7. [Open a Pull Request](https://github.com/iodatacenters/oktasdk-php/pull/new)on GitHub.

Copyright
---------

[](#copyright)

This project is liscensed under the [MIT License](https://github.com/iodatacenters/oktasdk-php/blob/master/LICENSE).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 99.1% 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 ~39 days

Recently: every ~135 days

Total

21

Last Release

2921d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/53531?v=4)[Chris Kankiewicz](/maintainers/PHLAK)[@PHLAK](https://github.com/PHLAK)

---

Top Contributors

[![PHLAK](https://avatars.githubusercontent.com/u/53531?v=4)](https://github.com/PHLAK "PHLAK (115 commits)")[![ironiclensflare](https://avatars.githubusercontent.com/u/1622893?v=4)](https://github.com/ironiclensflare "ironiclensflare (1 commits)")

---

Tags

apisdkokta

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/iodatacenters-oktasdk/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M467](/packages/saloonphp-saloon)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[php-opencloud/openstack

PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi

2292.2M24](/packages/php-opencloud-openstack)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)

PHPackages © 2026

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