PSR — API
localzet\PSR\Cache\CacheItemInterface
Section titled “localzet\PSR\Cache\CacheItemInterface”src/Cache/CacheItemInterface.php
function getKey(): string
function get(): mixed
function isHit(): bool
function set(mixed $value): static
function expiresAt(?DateTimeInterface $expiration): static
function expiresAfter(int|DateInterval|null $time): staticlocalzet\PSR\Cache\CacheItemPoolInterface
Section titled “localzet\PSR\Cache\CacheItemPoolInterface”src/Cache/CacheItemPoolInterface.php
function getItem(string $key): CacheItemInterface
function getItems(array $keys = []): iterable
function hasItem(string $key): bool
function clear(): bool
function deleteItem(string $key): bool
function deleteItems(array $keys): bool
function save(CacheItemInterface $item): bool
function saveDeferred(CacheItemInterface $item): bool
function commit(): boollocalzet\PSR\Clock\ClockInterface
Section titled “localzet\PSR\Clock\ClockInterface”function now(): DateTimeImmutablelocalzet\PSR\Container\ContainerInterface
Section titled “localzet\PSR\Container\ContainerInterface”src/Container/ContainerInterface.php
function get(string $id)
function has(string $id): boollocalzet\PSR\EventDispatcher\EventDispatcherInterface
Section titled “localzet\PSR\EventDispatcher\EventDispatcherInterface”src/EventDispatcher/EventDispatcherInterface.php
function dispatch(object $event)localzet\PSR\EventDispatcher\ListenerProviderInterface
Section titled “localzet\PSR\EventDispatcher\ListenerProviderInterface”src/EventDispatcher/ListenerProviderInterface.php
function getListenersForEvent(object $event): iterablelocalzet\PSR\EventDispatcher\StoppableEventInterface
Section titled “localzet\PSR\EventDispatcher\StoppableEventInterface”src/EventDispatcher/StoppableEventInterface.php
function isPropagationStopped(): boollocalzet\PSR\Http\Client\ClientInterface
Section titled “localzet\PSR\Http\Client\ClientInterface”src/Http/Client/ClientInterface.php
function sendRequest(RequestInterface $request): ResponseInterfacelocalzet\PSR\Http\Client\NetworkExceptionInterface
Section titled “localzet\PSR\Http\Client\NetworkExceptionInterface”src/Http/Client/NetworkExceptionInterface.php
function getRequest(): RequestInterfacelocalzet\PSR\Http\Client\RequestExceptionInterface
Section titled “localzet\PSR\Http\Client\RequestExceptionInterface”src/Http/Client/RequestExceptionInterface.php
function getRequest(): RequestInterfacelocalzet\PSR\Http\Message\Factories\RequestFactoryInterface
Section titled “localzet\PSR\Http\Message\Factories\RequestFactoryInterface”src/Http/Message/Factories/RequestFactoryInterface.php
function createRequest(string $method, string|UriInterface $uri): RequestInterfacelocalzet\PSR\Http\Message\Factories\ResponseFactoryInterface
Section titled “localzet\PSR\Http\Message\Factories\ResponseFactoryInterface”src/Http/Message/Factories/ResponseFactoryInterface.php
function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterfacelocalzet\PSR\Http\Message\Factories\ServerRequestFactoryInterface
Section titled “localzet\PSR\Http\Message\Factories\ServerRequestFactoryInterface”src/Http/Message/Factories/ServerRequestFactoryInterface.php
function createServerRequest(string $method, string|UriInterface $uri, array $serverParams = []): ServerRequestInterfacelocalzet\PSR\Http\Message\Factories\StreamFactoryInterface
Section titled “localzet\PSR\Http\Message\Factories\StreamFactoryInterface”src/Http/Message/Factories/StreamFactoryInterface.php
function createStream(string $content = ''): StreamInterface
function createStreamFromFile(string $filename, string $mode = 'r'): StreamInterface
function createStreamFromResource($resource): StreamInterfacelocalzet\PSR\Http\Message\Factories\UploadedFileFactoryInterface
Section titled “localzet\PSR\Http\Message\Factories\UploadedFileFactoryInterface”src/Http/Message/Factories/UploadedFileFactoryInterface.php
function createUploadedFile(StreamInterface $stream, int $size = null, int $error = UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null): UploadedFileInterfacelocalzet\PSR\Http\Message\Factories\UriFactoryInterface
Section titled “localzet\PSR\Http\Message\Factories\UriFactoryInterface”src/Http/Message/Factories/UriFactoryInterface.php
function createUri(string $uri = ''): UriInterfacelocalzet\PSR\Http\Message\MessageInterface
Section titled “localzet\PSR\Http\Message\MessageInterface”src/Http/Message/MessageInterface.php
function getProtocolVersion(): string
function withProtocolVersion(string $version): MessageInterface
function getHeaders(): array
function hasHeader(string $name): bool
function getHeader(string $name): array
function getHeaderLine(string $name): string
function withHeader(string $name, $value): MessageInterface
function withAddedHeader(string $name, $value): MessageInterface
function withoutHeader(string $name): MessageInterface
function getBody(): StreamInterface
function withBody(StreamInterface $body): MessageInterfacelocalzet\PSR\Http\Message\RequestFactoryInterface
Section titled “localzet\PSR\Http\Message\RequestFactoryInterface”src/Http/Message/RequestFactoryInterface.php
function createRequest(string $method, string|UriInterface $uri): RequestInterfacelocalzet\PSR\Http\Message\RequestInterface
Section titled “localzet\PSR\Http\Message\RequestInterface”src/Http/Message/RequestInterface.php
function getRequestTarget(): string
function withRequestTarget(string $requestTarget): RequestInterface
function getMethod(): string
function withMethod(string $method): RequestInterface
function getUri(): UriInterface
function withUri(UriInterface $uri, bool $preserveHost = false): RequestInterfacelocalzet\PSR\Http\Message\ResponseFactoryInterface
Section titled “localzet\PSR\Http\Message\ResponseFactoryInterface”src/Http/Message/ResponseFactoryInterface.php
function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterfacelocalzet\PSR\Http\Message\ResponseInterface
Section titled “localzet\PSR\Http\Message\ResponseInterface”src/Http/Message/ResponseInterface.php
function getStatusCode(): int
function withStatus(int $code, string $reasonPhrase = ''): ResponseInterface
function getReasonPhrase(): stringlocalzet\PSR\Http\Message\ServerRequestFactoryInterface
Section titled “localzet\PSR\Http\Message\ServerRequestFactoryInterface”src/Http/Message/ServerRequestFactoryInterface.php
function createServerRequest(string $method, string|UriInterface $uri, array $serverParams = []): ServerRequestInterfacelocalzet\PSR\Http\Message\ServerRequestInterface
Section titled “localzet\PSR\Http\Message\ServerRequestInterface”src/Http/Message/ServerRequestInterface.php
function getServerParams(): array
function getCookieParams(): array
function withCookieParams(array $cookies): ServerRequestInterface
function getQueryParams(): array
function withQueryParams(array $query): ServerRequestInterface
function getUploadedFiles(): array
function withUploadedFiles(array $uploadedFiles): ServerRequestInterface
function getParsedBody()
function withParsedBody($data): ServerRequestInterface
function getAttributes(): array
function getAttribute(string $name, $default = null)
function withAttribute(string $name, $value): ServerRequestInterface
function withoutAttribute(string $name): ServerRequestInterfacelocalzet\PSR\Http\Message\StreamFactoryInterface
Section titled “localzet\PSR\Http\Message\StreamFactoryInterface”src/Http/Message/StreamFactoryInterface.php
function createStream(string $content = ''): StreamInterface
function createStreamFromFile(string $filename, string $mode = 'r'): StreamInterface
function createStreamFromResource($resource): StreamInterfacelocalzet\PSR\Http\Message\StreamInterface
Section titled “localzet\PSR\Http\Message\StreamInterface”src/Http/Message/StreamInterface.php
function __toString(): string
function close(): void
function detach()
function getSize(): ?int
function tell(): int
function eof(): bool
function isSeekable(): bool
function seek(int $offset, int $whence = SEEK_SET): void
function rewind(): void
function isWritable(): bool
function write(string $string): int
function isReadable(): bool
function read(int $length): string
function getContents(): string
function getMetadata(?string $key = null)localzet\PSR\Http\Message\UploadedFileFactoryInterface
Section titled “localzet\PSR\Http\Message\UploadedFileFactoryInterface”src/Http/Message/UploadedFileFactoryInterface.php
function createUploadedFile(StreamInterface $stream, int $size = null, int $error = UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null): UploadedFileInterfacelocalzet\PSR\Http\Message\UploadedFileInterface
Section titled “localzet\PSR\Http\Message\UploadedFileInterface”src/Http/Message/UploadedFileInterface.php
function getStream(): StreamInterface
function moveTo(string $targetPath): void
function getSize(): ?int
function getError(): int
function getClientFilename(): ?string
function getClientMediaType(): ?stringlocalzet\PSR\Http\Message\UriFactoryInterface
Section titled “localzet\PSR\Http\Message\UriFactoryInterface”src/Http/Message/UriFactoryInterface.php
function createUri(string $uri = ''): UriInterfacelocalzet\PSR\Http\Message\UriInterface
Section titled “localzet\PSR\Http\Message\UriInterface”src/Http/Message/UriInterface.php
function getScheme(): string
function getAuthority(): string
function getUserInfo(): string
function getHost(): string
function getPort(): ?int
function getPath(): string
function getQuery(): string
function getFragment(): string
function withScheme(string $scheme): UriInterface
function withUserInfo(string $user, ?string $password = null): UriInterface
function withHost(string $host): UriInterface
function withPort(?int $port): UriInterface
function withPath(string $path): UriInterface
function withQuery(string $query): UriInterface
function withFragment(string $fragment): UriInterface
function __toString(): stringlocalzet\PSR\Http\Server\MiddlewareInterface
Section titled “localzet\PSR\Http\Server\MiddlewareInterface”src/Http/Server/MiddlewareInterface.php
function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterfacelocalzet\PSR\Http\Server\RequestHandlerInterface
Section titled “localzet\PSR\Http\Server\RequestHandlerInterface”src/Http/Server/RequestHandlerInterface.php
function handle(ServerRequestInterface $request): ResponseInterfacelocalzet\PSR\Link\EvolvableLinkInterface
Section titled “localzet\PSR\Link\EvolvableLinkInterface”src/Link/EvolvableLinkInterface.php
function withHref(string|Stringable $href): static
function withRel(string $rel): static
function withoutRel(string $rel): static
function withAttribute(string $attribute, string|Stringable|int|float|bool|array $value): static
function withoutAttribute(string $attribute): staticlocalzet\PSR\Link\EvolvableLinkProviderInterface
Section titled “localzet\PSR\Link\EvolvableLinkProviderInterface”src/Link/EvolvableLinkProviderInterface.php
function withLink(LinkInterface $link): static
function withoutLink(LinkInterface $link): staticlocalzet\PSR\Link\LinkInterface
Section titled “localzet\PSR\Link\LinkInterface”function getHref(): string
function isTemplated(): bool
function getRels(): array
function getAttributes(): arraylocalzet\PSR\Link\LinkProviderInterface
Section titled “localzet\PSR\Link\LinkProviderInterface”src/Link/LinkProviderInterface.php
function getLinks(): iterable
function getLinksByRel(string $rel): iterablelocalzet\PSR\Log\LogLevel
Section titled “localzet\PSR\Log\LogLevel”const EMERGENCY
const ALERT
const CRITICAL
const ERROR
const WARNING
const NOTICE
const INFO
const DEBUGlocalzet\PSR\Log\LoggerAwareInterface
Section titled “localzet\PSR\Log\LoggerAwareInterface”src/Log/LoggerAwareInterface.php
function setLogger(LoggerInterface $logger): voidlocalzet\PSR\Log\LoggerAwareTrait
Section titled “localzet\PSR\Log\LoggerAwareTrait”function setLogger(LoggerInterface $logger): voidlocalzet\PSR\Log\LoggerInterface
Section titled “localzet\PSR\Log\LoggerInterface”function emergency(string|Stringable $message, array $context = []): void
function alert(string|Stringable $message, array $context = []): void
function critical(string|Stringable $message, array $context = []): void
function error(string|Stringable $message, array $context = []): void
function warning(string|Stringable $message, array $context = []): void
function notice(string|Stringable $message, array $context = []): void
function info(string|Stringable $message, array $context = []): void
function debug(string|Stringable $message, array $context = []): void
function log($level, string|Stringable $message, array $context = []): voidlocalzet\PSR\Log\LoggerTrait
Section titled “localzet\PSR\Log\LoggerTrait”function emergency(string|Stringable $message, array $context = []): void
function alert(string|Stringable $message, array $context = []): void
function critical(string|Stringable $message, array $context = []): void
function error(string|Stringable $message, array $context = []): void
function warning(string|Stringable $message, array $context = []): void
function notice(string|Stringable $message, array $context = []): void
function info(string|Stringable $message, array $context = []): void
function debug(string|Stringable $message, array $context = []): void
function log($level, string|Stringable $message, array $context = []): voidlocalzet\PSR\Log\NullLogger
Section titled “localzet\PSR\Log\NullLogger”function log($level, string|Stringable $message, array $context = []): voidlocalzet\PSR\SimpleCache\CacheInterface
Section titled “localzet\PSR\SimpleCache\CacheInterface”src/SimpleCache/CacheInterface.php
function get(string $key, mixed $default = null): mixed
function set(string $key, mixed $value, null|int|DateInterval $ttl = null): bool
function delete(string $key): bool
function clear(): bool
function getMultiple(iterable $keys, mixed $default = null): iterable
function setMultiple(iterable $values, null|int|DateInterval $ttl = null): bool
function deleteMultiple(iterable $keys): bool
function has(string $key): bool