PHPackages                             stormpath/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. stormpath/sdk

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

stormpath/sdk
=============

A PHP wrapper for Stormpath's API

1.19.0(9y ago)7360.1k46[23 issues](https://github.com/stormpath/stormpath-sdk-php/issues)5Apache-2.0PHPPHP &gt;=5.5

Since Aug 23Pushed 9y ago33 watchersCompare

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

READMEChangelog (10)Dependencies (17)Versions (39)Used By (5)Security (1)

\#Stormpath is Joining Okta We are incredibly excited to announce that [Stormpath is joining forces with Okta](https://stormpath.com/blog/stormpaths-new-path?utm_source=github&utm_medium=readme&utm-campaign=okta-announcement). Please visit [the Migration FAQs](https://stormpath.com/oktaplusstormpath?utm_source=github&utm_medium=readme&utm-campaign=okta-announcement) for a detailed look at what this means for Stormpath users.

We're available to answer all questions at .

Stormpath PHP SDK
=================

[](#stormpath-php-sdk)

[![Build Status](https://camo.githubusercontent.com/de21475d77663855f05645d3db041a27fb93296a1b788fa75fd40ed3cf1159e9/68747470733a2f2f6170692e7472617669732d63692e6f72672f73746f726d706174682f73746f726d706174682d73646b2d7068702e7376673f6272616e63683d6d61737465722c646576)](https://travis-ci.org/stormpath/stormpath-sdk-php)[![Codecov](https://camo.githubusercontent.com/b721ad1d13b5cc20609c7fd640eb707c182c90195ca7ee10b6bd648c2e93e42b/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f73746f726d706174682f73746f726d706174682d73646b2d7068702e737667)](https://codecov.io/github/stormpath/stormpath-sdk-php)[![Total Downloads](https://camo.githubusercontent.com/7a56c556a8dc404a4f872da85c6bcc90bec357be12c47017419807f3ef9d664a/68747470733a2f2f706f7365722e707567782e6f72672f73746f726d706174682f73646b2f642f746f74616c2e737667)](https://packagist.org/packages/stormpath/sdk)[![Latest Stable Version](https://camo.githubusercontent.com/b571dbbd82507672abcdcf1c38df0ef95f50e01673285cbf369162c328eb796e/68747470733a2f2f706f7365722e707567782e6f72672f73746f726d706174682f73646b2f762f737461626c652e737667)](https://packagist.org/packages/stormpath/sdk)[![License](https://camo.githubusercontent.com/f37dcfa0d28eeedd8faba2e48b123c0fe3b87f4e8ee146c682a52d02cb0e42c2/68747470733a2f2f706f7365722e707567782e6f72672f73746f726d706174682f73646b2f6c6963656e73652e737667)](https://packagist.org/packages/stormpath/sdk)[![Chat](https://camo.githubusercontent.com/1e78a47a2d8860198a411996253269e5e3c799e99b1c97406266c62095b84e44/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636861742d6f6e253230667265656e6f64652532302d677265656e2e737667)](http://webchat.freenode.net/?channels=#stormpath)[![Support](https://camo.githubusercontent.com/615f20fa4c6948e2360b824d5ac5a9976e718ff2d88f2cc830cb57bb853830ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737570706f72742d737570706f72744073746f726d706174682e636f6d2d626c75652e737667)](mailto:support@stormpath.com?subject=Stormpath+PHP+SDK)

[Stormpath](https://stormpath.com) is a complete user management API. This library gives your PHP application access to all of Stormpath's features:

- Robust authentication and authorization.
- Schemaless user data and profiles.
- A hosted login subdomain, for easy Single Sign-On across your apps.
- External login with social providers like Facebook and Google, or SAML IdPs.
- Secure API key authentication for your service.

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

[](#installation)

**stormpath-sdk-php** is available on Packagist as the [stormpath/sdk](http://packagist.org/packages/stormpath/sdk) package.

Run `composer require stormpath/sdk` from the root of your project in terminal, and you are done.

Quickstart
----------

[](#quickstart)

To learn how to use the Stompath PHP SDK in a simple project, follow our quickstart:

- [PHP Quickstart](http://docs.stormpath.com/php/product-guide/latest/quickstart.html)

#### Full Documentation

[](#full-documentation)

We have moved our full documentation away from the Github readme file. For full documentation, please visit [our new documentation](http://docs.stormpath.com/php/product-guide/latest)

Testing
-------

[](#testing)

The PHP SDK uses `phpunit` for testing. These tests are full integration tests which means it hits actual endpoints of the API.

To setup testing, first, clone the repository. You will not be able to run the tests from your vendor folder as all unnecessary items are removed when you require the SDK with composer. You will also need to set an environment variable to set up your API keys.

#### On Mac

[](#on-mac)

```
export STORMPATH_SDK_TEST_API_KEY_FILE_LOCATION=path_to_apiKey.properties_file

```

#### On Windows

[](#on-windows)

```
setx STORMPATH_SDK_TEST_API_KEY_FILE_LOCATION path_to_apiKey.properties_file

```

After you have this set, you will be able to run `phpunit` from the root of the SDK folder. If your API keys are not from a subscription that has access to the SAML resources, you will have to make sure you skip those tests. You can do so by running `phpunit --exclude-group=saml` from the command line.

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

[](#contributing)

Contributions, bug reports, and issues are very welcome! Stormpath regularly maintains this repository, and are quick to review pull requests and accept changes.

You can make your own contributions by forking the develop branch of this repository, making your changes, and issuing pull requests against the `develop` branch.

#### Continuous Integration (Travis CI)

[](#continuous-integration-travis-ci)

Please note that due to security reasons, travis will not run pull requests submitted. With your pull request, please submit the results of the tests in the comments.

#### Documentation

[](#documentation)

If you feel the contributions require document changes as well, or the contributions you want to make are for documentation, please submit a PR to [our documentation repo](https://github.com/stormpath/stormpath-documentation)

Copyright
---------

[](#copyright)

Copyright © 2013-2017 Stormpath, Inc. and contributors.

This project is open-source via the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0).

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community34

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~51 days

Recently: every ~22 days

Total

32

Last Release

3406d ago

Major Versions

0.3.2 → 1.0.0.beta2013-10-24

PHP version history (5 changes)0.1.0PHP &gt;=5.3.0

0.2.0PHP &gt;=5.3.10

1.0.0.betaPHP &gt;=5.3.3

1.9.0.betaPHP &gt;=5.4

1.15.0PHP &gt;=5.5

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/0a1ff26d60d0db83af1b2d288973c754af38986e111b79f0d66bbb140030c199?d=identicon)[ecrisostomo](/maintainers/ecrisostomo)

![](https://www.gravatar.com/avatar/7b597b10931dd8c3e21ad380218163f7b1659924c540ffca79c77487d1ba073f?d=identicon)[lhazlewood](/maintainers/lhazlewood)

---

Top Contributors

[![ecrisostomo](https://avatars.githubusercontent.com/u/1820138?v=4)](https://github.com/ecrisostomo "ecrisostomo (80 commits)")[![bretterer](https://avatars.githubusercontent.com/u/1906920?v=4)](https://github.com/bretterer "bretterer (75 commits)")[![dmunguia](https://avatars.githubusercontent.com/u/626192?v=4)](https://github.com/dmunguia "dmunguia (33 commits)")[![magnusnordlander](https://avatars.githubusercontent.com/u/165002?v=4)](https://github.com/magnusnordlander "magnusnordlander (12 commits)")[![lhazlewood](https://avatars.githubusercontent.com/u/121180?v=4)](https://github.com/lhazlewood "lhazlewood (5 commits)")[![morticue](https://avatars.githubusercontent.com/u/165028?v=4)](https://github.com/morticue "morticue (1 commits)")[![JoseGorchs](https://avatars.githubusercontent.com/u/13645536?v=4)](https://github.com/JoseGorchs "JoseGorchs (1 commits)")[![brentstormpath](https://avatars.githubusercontent.com/u/3010338?v=4)](https://github.com/brentstormpath "brentstormpath (1 commits)")

---

Tags

authenticationauthorizationoauthphpstormpathuser-managementapicloudsecurityAuthenticationUser managementgroup managementstormpathuser security

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stormpath-sdk/health.svg)

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

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[j0k3r/graby

Graby helps you extract article content from web pages

384349.6k2](/packages/j0k3r-graby)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[darthsoup/php-whmcs-api

WHMCS API client for PHP

2317.3k4](/packages/darthsoup-php-whmcs-api)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)

PHPackages © 2026

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