Download the PHP package alexkratky/requestx without Composer
On this page you can find all versions of the php package alexkratky/requestx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alexkratky/requestx
More information about alexkratky/requestx
Files in alexkratky/requestx
Download alexkratky/requestx
More information about alexkratky/requestx
Files in alexkratky/requestx
Vendor alexkratky
Package requestx
Short Description Class to work with HTTP requests and HTTP methods.
License BSD
Homepage https://panx.eu/
Package requestx
Short Description Class to work with HTTP requests and HTTP methods.
License BSD
Homepage https://panx.eu/
Please rate this library. Is it a good library?
Informations about the package requestx
Request
Class to work with HTTP requests.
Installation
composer require alexkratky/RequestX
Functions
The class have following functions:
getUrl(): URL
- Returns URL object.getQuery(string $key = null)
- Returns variable provided to the script via URL query ($_GET). If no key is passed, returns the entire array. If key does not exists, returns null.getPost(string $key = null)
- Returns variable provided to the script via POST method ($_POST). If no key is passed, returns the entire array.getHeader(string $header): ?string
- Return the value of the HTTP header. Pass the header name as the plain, HTTP-specified header name (e.g. 'Accept-Encoding').getHeaders(): array
- Returns all HTTP headers.getReferer(): ?string
- Returns referrer.isSecured(): bool
- Is the request over HTTPS?isAjax(): bool
- Is AJAX request?getRemoteAddress(): ?string
- Returns the IP address of the remote client.detectLanguage(array $langs): ?string
- Parse Accept-Language header and returns preferred language.getMostPreferredLanguage(): ?string
- Return most preferred language.getClientID()
- Return clients Unique ID.workWith(string $method, array $vars): bool
- Checks if are all of $vars isset(). The $method is GET ($_GET) or POST ($_POST)
All versions of requestx with dependencies
PHP Build Version
Package Version
The package alexkratky/requestx contains the following files
Loading the files please wait ....