Appearance
WebNetwork
php
final readonly class Zairakai\LaravelDevTools\Update\WebNetwork implements NetworkThe requests that are not GitLab: Packagist, and the push notification.
Source: src/Update/WebNetwork.php
Methods
download()
php
public function download(string $url, $context = null): string|falseA request that can fail: the failure is the value false, never a warning.
notify()
php
public function notify(string $title, string $message): voidA push notification through ntfy, when NTFY_URL is set. A failure never stops the audit.
onPackagist()
php
public function onPackagist(string $name, string $version): boolpackagistReleases()
php
public function packagistReleases(string $name): arrayThe releases of a package on Packagist (metadata p2, as listed), or an empty list.
Returns list<array<string, mixed>>