Fix badges showing incorrect latest release version

Display the correct latest release version by modifying the image url
query string to specify semantic version sorting. Without this sorting,
releasing 8.9.2, 9.0.0, 9.1.0, and then 8.9.3 would cause version 8.9.3
to incorrectly appear as the current latest release.
This commit is contained in:
Zach Borboa
2021-05-02 00:14:11 -04:00
parent feca86813d
commit 69cab62ba3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# PHP Curl Class: HTTP requests made easy
[![](https://img.shields.io/github/release/php-curl-class/php-curl-class.svg?style=flat-square)](https://github.com/php-curl-class/php-curl-class/releases/)
[![](https://img.shields.io/github/release/php-curl-class/php-curl-class.svg?style=flat-square&sort=semver)](https://github.com/php-curl-class/php-curl-class/releases/)
[![](https://img.shields.io/github/license/php-curl-class/php-curl-class.svg?style=flat-square)](https://github.com/php-curl-class/php-curl-class/blob/master/LICENSE)
[![](https://img.shields.io/github/workflow/status/php-curl-class/php-curl-class/ci?style=flat-square)](https://github.com/php-curl-class/php-curl-class/actions/workflows/ci.yml)
[![](https://img.shields.io/packagist/dt/php-curl-class/php-curl-class.svg?style=flat-square)](https://github.com/php-curl-class/php-curl-class/releases/)
+1 -1
View File
@@ -7,7 +7,7 @@ $ cd php-curl-class/
$ composer update
$ composer info
```
Compare your version with latest release ![](https://img.shields.io/github/v/release/php-curl-class/php-curl-class.svg?style=flat-square&color=rgba(0,0,0,0)&label=) which is also listed on the [releases page](https://github.com/php-curl-class/php-curl-class/releases).
Compare your version with latest release ![](https://img.shields.io/github/release/php-curl-class/php-curl-class.svg?style=flat-square&sort=semver&color=rgba(0,0,0,0)&label=) which is also listed on the [releases page](https://github.com/php-curl-class/php-curl-class/releases).
### Ensure php is using the latest version of curl