for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BenTools\UriFactory\Adapter;
use BenTools\UriFactory\UriFactoryInterface;
use Nyholm\Psr7\Uri;
use Psr\Http\Message\UriInterface;
final class NyholmAdapter implements AdapterInterface
{
/**
* NyholmAdapter constructor.
*/
protected function __construct()
}
* @inheritDoc
public function createUri(string $uri = ''): UriInterface
return new Uri($uri);
public static function factory(): UriFactoryInterface
return new self;
public static function isInstalled(): bool
return class_exists('Nyholm\Psr7\Uri');