Skip to content
docs.
WORKSPACE

Your documentation

Explore the project catalog
Localzet ServerАсинхронный PHP-серверTriangleФреймворк и компонентыMIX IDИдентификация и интеграцииHack APIПубличные API хакатонаACNПроект и компонентыUserlay / UserNetПроект и компонентыAxiomПроект и компонентыМесседжинг через почтуПроект и компонентыLWT / JWT / JOSEПроект и компонентыФинансовая аналитика KimaiПроект и компонентыМультипарадигмальная БДПроект и компонентыZorin PlatformПроект и компонентыZorin TrustПроект и компонентыFloraScope / VegwatchПроект и компонентыaegis-qДокументация проектаaevumdbДокументация проектаauditДокументация проектаauto-invest-managerАвтотрейдерcaine-companionДокументация проектаcertbot-cloudflareДокументация проектаClusterLocalzet Server / ClustercmdveilДокументация проектаConsolePHP CLICronБиблиотеки Localzet Serverdata-connectorДокументация проектаdevice-controlDevice Controlenn-projectДокументация проектаEventsБиблиотеки Localzet ServerflowsintДокументация проектаforgeДокументация проектаHttpClientБиблиотеки Localzet ServerinterpreterСобственный языкinvariaДокументация проектаkeynotesДокументация проектаknotrouteKnotroutelaravel-personal-analyticsДокументация проектаlocalzet-osДокументация проектаmeridianДокументация проектаMQTTБиблиотеки Localzet Servernano-kernelСобственная ОСNoterДокументация проектаpersonal-analyticsДокументация проектаProxyБиблиотеки Localzet ServerPSRБиблиотеки Localzet Server✓PSR-7Библиотеки Localzet Serverrschs-monitorДокументация проектаsemsealДокументация проектаshardsealДокументация проектаSocketIOБиблиотеки Localzet ServerSOCKS5Библиотеки Localzet Serverstandalone-analyticsДокументация проектаstatic-php-cliДокументация проектаStorageБиблиотеки Localzet ServersutureДокументация проектаtempoweaveДокументация проектаttsСинтез речиTunnelБиблиотеки Localzet Serverui-kitUI KitvesperДокументация проектаWebAnalyzerWebAnalyzerzorin-access-brokerДокументация проектаzorin-authority-brokerДокументация проектаzorin-authority-sdk-phpДокументация проектаzorin-authority-sdk-pythonДокументация проектаzorin-authority-sdk-tsДокументация проектаzorin-client-intelДокументация проектаzorin-device-core-aospДокументация проектаzorin-host-agentДокументация проектаzorin-native-labДокументация проектаzorin-nodeДокументация проектаzorin-opsДокументация проектаdonstu-python-sdkДокументация проектаfloortraceFloortraceserver-rsLocalzet Server / Cluster
Catalog

PSR — API

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): static

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(): bool

src/Clock/ClockInterface.php

function now(): DateTimeImmutable

src/Container/ContainerInterface.php

function get(string $id)
function has(string $id): bool

localzet\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): iterable

localzet\PSR\EventDispatcher\StoppableEventInterface

Section titled “localzet\PSR\EventDispatcher\StoppableEventInterface”

src/EventDispatcher/StoppableEventInterface.php

function isPropagationStopped(): bool

src/Http/Client/ClientInterface.php

function sendRequest(RequestInterface $request): ResponseInterface

localzet\PSR\Http\Client\NetworkExceptionInterface

Section titled “localzet\PSR\Http\Client\NetworkExceptionInterface”

src/Http/Client/NetworkExceptionInterface.php

function getRequest(): RequestInterface

localzet\PSR\Http\Client\RequestExceptionInterface

Section titled “localzet\PSR\Http\Client\RequestExceptionInterface”

src/Http/Client/RequestExceptionInterface.php

function getRequest(): RequestInterface

localzet\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): RequestInterface

localzet\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 = ''): ResponseInterface

localzet\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 = []): ServerRequestInterface

localzet\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): StreamInterface

localzet\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): UploadedFileInterface

localzet\PSR\Http\Message\Factories\UriFactoryInterface

Section titled “localzet\PSR\Http\Message\Factories\UriFactoryInterface”

src/Http/Message/Factories/UriFactoryInterface.php

function createUri(string $uri = ''): UriInterface

localzet\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): MessageInterface

localzet\PSR\Http\Message\RequestFactoryInterface

Section titled “localzet\PSR\Http\Message\RequestFactoryInterface”

src/Http/Message/RequestFactoryInterface.php

function createRequest(string $method, string|UriInterface $uri): RequestInterface

localzet\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): RequestInterface

localzet\PSR\Http\Message\ResponseFactoryInterface

Section titled “localzet\PSR\Http\Message\ResponseFactoryInterface”

src/Http/Message/ResponseFactoryInterface.php

function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface

localzet\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(): string

localzet\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 = []): ServerRequestInterface

localzet\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): ServerRequestInterface

localzet\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): 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): UploadedFileInterface

localzet\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(): ?string

localzet\PSR\Http\Message\UriFactoryInterface

Section titled “localzet\PSR\Http\Message\UriFactoryInterface”

src/Http/Message/UriFactoryInterface.php

function createUri(string $uri = ''): 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(): string

localzet\PSR\Http\Server\MiddlewareInterface

Section titled “localzet\PSR\Http\Server\MiddlewareInterface”

src/Http/Server/MiddlewareInterface.php

function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface

localzet\PSR\Http\Server\RequestHandlerInterface

Section titled “localzet\PSR\Http\Server\RequestHandlerInterface”

src/Http/Server/RequestHandlerInterface.php

function handle(ServerRequestInterface $request): ResponseInterface

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): static

localzet\PSR\Link\EvolvableLinkProviderInterface

Section titled “localzet\PSR\Link\EvolvableLinkProviderInterface”

src/Link/EvolvableLinkProviderInterface.php

function withLink(LinkInterface $link): static
function withoutLink(LinkInterface $link): static

src/Link/LinkInterface.php

function getHref(): string
function isTemplated(): bool
function getRels(): array
function getAttributes(): array

src/Link/LinkProviderInterface.php

function getLinks(): iterable
function getLinksByRel(string $rel): iterable

src/Log/LogLevel.php

const EMERGENCY
const ALERT
const CRITICAL
const ERROR
const WARNING
const NOTICE
const INFO
const DEBUG

src/Log/LoggerAwareInterface.php

function setLogger(LoggerInterface $logger): void

src/Log/LoggerAwareTrait.php

function setLogger(LoggerInterface $logger): void

src/Log/LoggerInterface.php

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 = []): void

src/Log/LoggerTrait.php

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 = []): void

src/Log/NullLogger.php

function log($level, string|Stringable $message, array $context = []): void

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