Skip to content

Commit 4d63502

Browse files
committed
Replace Httpful with Guzzle, update deps
1 parent c476ad3 commit 4d63502

5 files changed

Lines changed: 16 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## 2.5.4 - 2026-02-09
3+
## 2.6.0 - 2026-02-09
44

55
- Added support for PHP 8.4.
66

cli/Valet/Ngrok.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Valet;
44

55
use DomainException;
6-
use Httpful\Request;
6+
use GuzzleHttp\Client;
77
use Illuminate\Support\Collection;
88

99
class Ngrok
@@ -79,7 +79,7 @@ public function currentTunnelUrl(?string $domain = null)
7979

8080
foreach ($this->tunnelsEndpoints as $endpoint) {
8181
$response = retry(20, function () use ($endpoint, $domain) {
82-
$body = Request::get($endpoint)->send()->body;
82+
$body = json_decode((new Client)->get($endpoint)->getBody());
8383

8484
if (isset($body->tunnels) && count($body->tunnels) > 0) {
8585
return $this->findHttpTunnelUrl($body->tunnels, $domain);

cli/Valet/Valet.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Valet;
44

5-
use Httpful\Request;
5+
use GuzzleHttp\Client;
66

77
class Valet
88
{
@@ -82,13 +82,14 @@ public function services(): array
8282
* @param string $currentVersion
8383
* @return bool
8484
*
85-
* @throws \Httpful\Exception\ConnectionErrorException
8685
*/
8786
public function onLatestVersion($currentVersion): bool
8887
{
89-
$response = Request::get('https://api.github.com/repos/cretueusebiu/valet-windows/releases/latest')->send();
88+
$response = json_decode((new Client)->get('https://api.github.com/repos/cretueusebiu/valet-windows/releases/latest', [
89+
'headers' => ['User-Agent' => 'valet-windows'],
90+
])->getBody());
9091

91-
return version_compare($currentVersion, trim($response->body->tag_name, 'v'), '>=');
92+
return version_compare($currentVersion, trim($response->tag_name, 'v'), '>=');
9293
}
9394

9495
/**

cli/valet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
Container::setInstance(new Container);
3232

33-
$version = '2.5.4';
33+
$version = '2.6.0';
3434

3535
$app = new Application('Laravel Valet', $version);
3636

composer.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"name": "cretueusebiu/valet-windows",
33
"description": "A more enjoyable local development experience for Windows.",
4-
"keywords": ["laravel", "valet", "windows"],
4+
"keywords": [
5+
"laravel",
6+
"valet",
7+
"windows"
8+
],
59
"license": "MIT",
610
"authors": [
711
{
@@ -37,7 +41,7 @@
3741
"illuminate/container": "^8.0|^9.0|^10.0|^11.0|^12.0",
3842
"mnapoli/silly": "^1.7",
3943
"symfony/process": "^4.0|^5.0|^6.0|^7.2",
40-
"nategood/httpful": "^0.3",
44+
"guzzlehttp/guzzle": "^6.0|^7.4",
4145
"phpseclib/phpseclib": "^3.0",
4246
"illuminate/collections": "^8.0|^9.0|^10.0|^11.0|^12.0"
4347
},
@@ -66,4 +70,4 @@
6670
"dev-master": "2.x-dev"
6771
}
6872
}
69-
}
73+
}

0 commit comments

Comments
 (0)