Skip to content

Commit 57caf1c

Browse files
authored
Release 8.0.0 (#567)
1 parent 65b432a commit 57caf1c

File tree

3 files changed

+36
-11
lines changed

3 files changed

+36
-11
lines changed

.github/ISSUE_TEMPLATE/Bug Report.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ body:
1111
label: SDK Version
1212
description: What version of our SDK are you running? (`composer show | grep auth0/auth0-php`)
1313
options:
14+
- 8.0.0
1415
- 8.0.0-BETA3
1516
- 8.0.0-BETA2
1617
- 8.0.0-BETA1
@@ -32,9 +33,9 @@ body:
3233
label: PHP Version
3334
description: What version of PHP are you running? (`php -v`)
3435
options:
36+
- PHP 8.1 (In Development)
3537
- PHP 8.0
3638
- PHP 7.4
37-
- PHP 7.3
3839
- Other (specify in 'additional context')
3940
validations:
4041
required: true

CHANGELOG.md

+31
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# CHANGELOG
22

3+
## [8.0.0](https://github.com/auth0/auth0-PHP/tree/8.0.0) (2021-09-20)
4+
5+
[Full Changelog](https://github.com/auth0/auth0-PHP/compare/7.9.0...8.0.0)
6+
7+
**BEFORE YOU UPGRADE**
8+
9+
- This is a major release that includes breaking changes. Please see [UPGRADE.md](UPGRADE.md) before upgrading. This release will require changes to your application.
10+
- The SDK no longer specifically relies on Guzzle for network requests. Options for supplying your libraries of choice have been added through [PSR-18](https://www.php-fig.org/psr/psr-18/) and [PSR-17](https://www.php-fig.org/psr/psr-17/) configuration options.
11+
- PHP 7.4 is now the minimum supported PHP version, but we encourage using PHP 8.0. PHP 7.4 will be the last supported 7.x release. This library follows [the official support schedule for PHP](https://www.php.net/supported-versions.php).
12+
13+
**8.0 Highlights**
14+
15+
- Updated SDK API for more intuitive use and improved usability. Now follows fluent interface principles.
16+
- Updated SDK API designed with PHP 8.0's named arguments as the encouraged interface method.
17+
- New configuration object, SdkConfiguration, allows for dynamic changes within your application.
18+
- Updated PHP language support, including typed properties and return types, are now used throughout the SDK.
19+
- Added support for the following PHP-FIG standards interfaces:
20+
- [PSR-6](https://www.php-fig.org/psr/psr-6/) caches are now used for caching JWKs and Management API tokens.
21+
- [PSR-7](https://www.php-fig.org/psr/psr-7/) HTTP messages are now returned by methods that initiate network requests.
22+
- [PSR-14](https://www.php-fig.org/psr/psr-14/) events are now raised, allowing for deeper integration into the SDK's behavior.
23+
- [PSR-17](https://www.php-fig.org/psr/psr-17/) HTTP factories are now used during network requests for generating PSR-7 messages.
24+
- [PSR-18](https://www.php-fig.org/psr/psr-18/) HTTP clients are now supported, allowing you to choose your network client.
25+
- Improved Token handling system.
26+
- Encrypted session cookies, with cookies being the default session handler. PHP sessions may be phased out in a future release.
27+
- New Management API auto-pagination helper for iterating through API results.
28+
- [PKCE](https://auth0.com/docs/flows/call-your-api-using-the-authorization-code-flow-with-pkce) is now enabled by default.
29+
30+
For a complete overview of API changes, please see [UPGRADE.md](UPGRADE.md).
31+
32+
For guidance on using the new configuration interface or SDK API, please see [README.md](README.md).
33+
334
## [8.0.0-BETA3](https://github.com/auth0/auth0-PHP/tree/8.0.0-BETA3) (2021-09-03)
435

536
[Full Changelog](https://github.com/auth0/auth0-PHP/compare/7.9.0...8.0.0-BETA3)

README.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,13 @@ To get started, you'll need to create a [free Auth0 account](https://auth0.com/s
5757
The supported method of SDK installation is through [Composer](https://getcomposer.org/). From your terminal shell, `cd` into your project directory and issue the following command:
5858

5959
```bash
60-
$ composer require auth0/auth0-php:8.0.0-BETA3
60+
$ composer require auth0/auth0-php
6161
```
6262

6363
You can find guidance on installing Composer [here](https://getcomposer.org/doc/00-intro.md).
6464

6565
> ⚠️ Your application must include the Composer autoloader, [as explained here](https://getcomposer.org/doc/01-basic-usage.md#autoloading), for the SDK to be usable within your application.
6666
67-
If you receive a warning regarding 'minimum-stability', you may need to update your `composer.json` file to include the following options, and then retry the `require` command above:
68-
69-
```
70-
"minimum-stability": "beta",
71-
"prefer-stable": true
72-
```
73-
7467
Next, you will want ensure your application has [PSR-17](https://www.php-fig.org/psr/psr-17/) and [PSR-18](https://www.php-fig.org/psr/psr-18/) compatible libraries installed. These are used for network requests. As an example, let's say you wish to use [Buzz](https://github.com/kriswallsmith/Buzz) and [Nylom's PSR-7 implementation](https://github.com/Nyholm/psr7), which include PSR-18 and PSR-17 factories, respectively:
7568

7669
```bash
@@ -506,8 +499,8 @@ In some cases, your application may need to support validating tokens' `org_id`
506499
- [Management API](https://auth0.com/docs/libraries/auth0-php/using-the-management-api-with-auth0-php)
507500
- [Troubleshooting](https://auth0.com/docs/libraries/auth0-php/troubleshoot-auth0-php-library)
508501
- Quickstarts
509-
- [Web Application Authentication](https://auth0.com/docs/quickstart/webapp/php-beta/) ([GitHub repo](https://github.com/auth0-samples/auth0-php-web-app/tree/8.x))
510-
- [Backend API Authorization](https://auth0.com/docs/quickstart/backend/php-beta/) ([GitHub repo](https://github.com/auth0-samples/auth0-php-api-samples/tree/8.x))
502+
- [Web Application Authentication](https://auth0.com/docs/quickstart/webapp/php/) ([GitHub repo](https://github.com/auth0-samples/auth0-php-web-app))
503+
- [Backend API Authorization](https://auth0.com/docs/quickstart/backend/php/) ([GitHub repo](https://github.com/auth0-samples/auth0-php-api-samples))
511504

512505
## Contributing
513506

0 commit comments

Comments
 (0)