TL;DR: Dear PHP Community, Your feedback was plentiful, detailed and ardent. You rock. Now massively upgraded with new features, our PHP SDK does, too!
What does Stormpath do for PHP developers? Stormpath hosts user accounts in the cloud, providing instant-on user management via API, complete with PHP API authentication , authorization, password security, and many features you don’t want to build yourself like an admin console and workflows like password reset and email verification.
How does Stormpath work? When a user registers or logs into an application, their credentials are collected and passed over HTTPS to Stormpath. Stormpath creates the account, returns a JSON payload, and authenticates the user to your application.
So what’s new in this release? In short: All the things.
This overhaul includes suggested upgrades like:
- Composer integration in line with the PSR-0 auto-loading standard
- Full test suite
- Dependencies on the PEAR repository – gone!
Most importantly, the new SDK is simpler. API calls are easier to make, you can use the standard API key file (no more YAML!), and all traces of Java syntax have been eradicated.
For developers running only one application with Stormpath, maybe because they are deployed on a PaaS like Heroku, the SDK also connects to our Application-specific endpoints. This provides access to accounts and groups from your application’s perspective as opposed to your whole tenant’s, and will make deploying a single app a piece of cake.
When creating an application resource (or registering your application with Stormpath via the SDK), you can now create a directory automatically rather than manually instantiating a directory resource.
The PHP SDK can now search for most resources in Stormpath using our query API, so it’s easy, for instance, to search for an account or directory by name.
Retrieve a resource with its linked (referenced) resources in one API call, e.g. get an account and its groups.
Collection results are now paginated for easier control.