diff --git a/README.md b/README.md index 915b0e0c..82ba5fae 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ The Auth0 WordPress plugin replaces the standard WordPress login flow with a new > This plugin is **NOT** a SDK (Software Development Kit.) It's APIs are internal and not intended for developers to extend directly. We do not support altering the plugin's behavior or integrating it in any way beyond what is outlined in this README. If you're looking to build a more extensive integration, please create a solution using the [Auth0-PHP SDK](https://github.com/auth0/auth0-php) instead. > [!NOTE] -> Upgrading from 5.x? The 6.0 release moves the plugin onto [auth0-php v9](https://github.com/auth0/auth0-php/tree/v9) and raises the minimum PHP version to 8.2. The built-in features (login, logout, callback, sessions, and User Sync) work unchanged, but custom code that calls the Management API must move from `getSdk()->management()` to the new `getManagement()` accessor. See [UPGRADING.md](./UPGRADING.md) for details. +> Upgrading from 5.x? The 6.0 release moves the plugin onto [auth0-php v9](https://github.com/auth0/auth0-php/tree/main) and raises the minimum PHP version to 8.2. The built-in features (login, logout, callback, sessions, and User Sync) work unchanged, but custom code that calls the Management API must move from `getSdk()->management()` to the new `getManagement()` accessor. See [UPGRADING.md](./UPGRADING.md) for details. ## Getting Started @@ -222,7 +222,7 @@ foreach ($users as $user) { ``` > [!NOTE] -> As of 6.0, the Management API uses [auth0-php v9](https://github.com/auth0/auth0-php/tree/v9). The old `getSdk()->management()` entry point is no longer functional. If you are upgrading custom code from 5.x, see [UPGRADING.md](./UPGRADING.md) for the full set of changes. +> As of 6.0, the Management API uses [auth0-php v9](https://github.com/auth0/auth0-php/tree/main). The old `getSdk()->management()` entry point is no longer functional. If you are upgrading custom code from 5.x, see [UPGRADING.md](./UPGRADING.md) for the full set of changes. Please direct questions about developing with the Auth0-PHP SDK to the [Auth0 Community](https://community.auth0.com), and issues or feature requests to [it's respective repository](https://github.com/auth0/auth0-PHP). Documentations and examples on working with the Auth0-PHP SDKs are also available from [its repository](https://github.com/auth0/auth0-PHP). diff --git a/UPGRADING.md b/UPGRADING.md index 24f4ba43..1979fe43 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -2,7 +2,7 @@ ## 5.x to 6.x -The 6.0 release moves the plugin onto [auth0-php v9](https://github.com/auth0/auth0-php/tree/v9), which rewrites the Management API. The authentication surface (login, logout, callback, session handling) is unchanged, so most sites only need the environment updates below. +The 6.0 release moves the plugin onto [auth0-php v9](https://github.com/auth0/auth0-php/tree/main), which rewrites the Management API. The authentication surface (login, logout, callback, session handling) is unchanged, so most sites only need the environment updates below. Check that your environment is compatible with 6.0's requirements before upgrading: @@ -42,7 +42,7 @@ Update your customizations, if necessary: Inside a plugin action or filter class (anything extending `Auth0\WordPress\Actions\Base` or `Auth0\WordPress\Filters\Base`), the same client is available as `$this->getManagement()`. -- If your custom code calls the Management API directly, review the [auth0-php v9 migration guide](https://github.com/auth0/auth0-php/blob/v9/v9_MIGRATION_GUIDE.md) for the full set of changes. The most common adjustments are: +- If your custom code calls the Management API directly, review the [auth0-php v9 migration guide](https://github.com/auth0/auth0-php/blob/main/v9_MIGRATION_GUIDE.md) for the full set of changes. The most common adjustments are: - Sub-resources are reached by property access, not method calls: `->users->list()` rather than `->users()->getAll()`. - `users->list()` returns a `Pager` you iterate with `foreach`. It is a lazy iterator that makes further requests as you consume it, so `count()` and array access will not behave the way a plain array would. - Responses are typed objects instead of raw PSR-7 responses. Call `$response->jsonSerialize()` to get the same snake_case array the v8 `HttpResponse::decodeContent()` returned, or use the typed getters (`$response->getEmail()`). diff --git a/composer.json b/composer.json index db32d267..5ae4e34c 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "php": "^8.2", "ext-json": "*", "ext-openssl": "*", - "auth0/auth0-php": "^9.0@beta", + "auth0/auth0-php": "^9.0", "nyholm/psr7": "^1", "psr/cache": "^3.0" },