PHPackages                             onelogin/api - 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. onelogin/api

ActiveLibrary[API Development](/categories/api)

onelogin/api
============

1.8.0(8mo ago)1240.4k↓19%18[4 issues](https://github.com/onelogin/onelogin-php-sdk/issues)1PHPPHP &gt;=8.1CI passing

Since Oct 20Pushed 8mo ago34 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (14)Used By (1)

OneLogin PHP SDK
================

[](#onelogin-php-sdk)

This SDK will let you execute all the API methods, version/1, described at .

Support
-------

[](#support)

OneLogin by One Identity open source projects are supported through [OneLogin GitHub issues](https://github.com/onelogin/onelogin-php-sdk/issues). This includes all scripts, plugins, SDKs, modules, code snippets or other solutions. For assistance with any OneLogin by One Identity GitHub project, please raise a new Issue on the [OneLogin GitHub issues](https://github.com/onelogin/onelogin-php-sdk/issues) page. Requests for assistance made through official One Identity Support will be referred back to GitHub where those requests can benefit all users.

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

[](#installation)

### Hosting

[](#hosting)

#### Github

[](#github)

The toolkit is hosted on github. You can download it from:

- Lastest release:
- Master repo:

#### Composer

[](#composer)

The toolkit supports [composer](https://getcomposer.org/). You can find the `onelogin/api` package at

In order to import the sdk into your current php project, execute

```
composer require onelogin/api

```

### Dependencies

[](#dependencies)

The SDK has the following dependencies:

- PHP &gt;5.6
- guzzle

Getting started
---------------

[](#getting-started)

### Version 1.8.0 - Exception Handling Support &amp; Bug Fixes 🎉

[](#version-180---exception-handling-support--bug-fixes-)

Starting with version 1.7.0, the OneLogin PHP SDK supports exception-based error handling alongside the traditional manual error checking approach. Version 1.8.0 includes additional bug fixes and improvements while maintaining full backward compatibility.

**New Features:**

- Optional exception throwing for API errors
- Type-safe exception classes for different error categories
- Configurable per-client or per-operation
- Fully backward compatible

You'll need a OneLogin account and a set of API credentials before you get started.

If you don't have an account you can [sign up for a free developer account here](https://www.onelogin.com/developer-signup).

client\_idRequired: A valid OneLogin API client\_idclient\_secretRequired: A valid OneLogin API client\_secretregionOptional: `us` or `eu`. Defaults to `us````
