{"id":42075598,"url":"https://github.com/webino/request","last_synced_at":"2026-01-26T09:23:20.660Z","repository":{"id":62547911,"uuid":"193499638","full_name":"webino/request","owner":"webino","description":":phone: Webino™ Simple PHP environment request implementation [WIP]","archived":false,"fork":false,"pushed_at":"2019-07-19T22:13:20.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2024-05-03T08:20:53.679Z","etag":null,"topics":["library","request","v3","webino","wip"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-24T12:19:26.000Z","updated_at":"2024-05-03T08:20:53.680Z","dependencies_parsed_at":"2022-11-02T22:16:23.336Z","dependency_job_id":null,"html_url":"https://github.com/webino/request","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webino/request","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webino%2Frequest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webino%2Frequest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webino%2Frequest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webino%2Frequest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webino","download_url":"https://codeload.github.com/webino/request/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webino%2Frequest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28772909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T08:38:24.014Z","status":"ssl_error","status_checked_at":"2026-01-26T08:38:22.080Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","request","v3","webino","wip"],"created_at":"2026-01-26T09:23:18.672Z","updated_at":"2026-01-26T09:23:20.654Z","avatar_url":"https://github.com/webino.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webino Request\n\nSimple PHP environment request implementation. [WIP]\n\n[![Build Status](https://img.shields.io/travis/webino/request/master.svg?style=for-the-badge)](http://travis-ci.org/webino/request \"Master Build Status\")\n[![Coverage Status](https://img.shields.io/coveralls/github/webino/request/master.svg?style=for-the-badge)](https://coveralls.io/github/webino/request?branch=master \"Master Coverage Status\")\n[![Code Quality](https://img.shields.io/scrutinizer/g/webino/request/master.svg?style=for-the-badge)](https://scrutinizer-ci.com/g/webino/request/?branch=master \"Master Code Quality\")\n[![Latest Stable Version](https://img.shields.io/github/tag/webino/request.svg?label=STABLE\u0026style=for-the-badge)](https://packagist.org/packages/webino/request)\n\n## Recommended Usage\n\nRequest data for application dispatch.\n\n\n## Setup\n[![PHP from Packagist](https://img.shields.io/packagist/php-v/webino/request.svg?style=for-the-badge)](https://php.net \"Required PHP version\")\n\n```bash\ncomposer require webino\\request\n```\n\n\n## Quick Use\n\nGetting request object for current execution context:\n```php\nuse Webino\\InstanceContainer;\nuse Webino\\HttpRequest;\nuse Webino\\ConsoleRequest;\nuse Webino\\RequestInterface;\n\n$container = new InstanceContainer;\n\n/** @var RequestInterface $request */\n$request = $container-\u003eget(RequestInterface::class);\n\nif ($request instanceof HttpRequest) {\n\n} elseif ($request instanceof ConsoleRequest) {\n\n}\n```\n\nMaking HTTP request:\n```php\nuse Webino\\InstanceContainer;\nuse Webino\\HttpRequest;\n\n$container = new InstanceContainer;\n\n/** @var HttpRequest $request */\n$request = $container-\u003emake(HttpRequest::class, HttpRequest::defaults([\n    HttpRequest::QUERY_STRING =\u003e 'foo=bar\u0026baz=bam',\n    HttpRequest::SCRIPT_NAME =\u003e '/example/index.php',\n    HttpRequest::SCRIPT_FILENAME =\u003e '/var/www/html/example/index.php',\n    HttpRequest::URI =\u003e '/example/some-route'\n]));\n```\n\nMaking console request:\n```php\nuse Webino\\InstanceContainer;\nuse Webino\\ConsoleRequest;\n\n$container = new InstanceContainer;\n\n/** @var ConsoleRequest $request */\n$request = $container-\u003emake(ConsoleRequest::class, ConsoleRequest::defaults([\n    ConsoleRequest::COMMAND =\u003e 'foo --bar baz',\n    ConsoleRequest::SCRIPT_FILENAME =\u003e '/var/www/html/test/index.php',\n]));\n```\n\n\n## API\n\n**RequestInterface**\n\n- *const* TIME \u003cbr\u003e\n  Request time float option.\n  \n- *const* TIME_DEFAULT \u003cbr\u003e\n  Default request time float, example value.\n\n- *const* SCRIPT_FILENAME \u003cbr\u003e\n  Executed script file name string option.\n  \n- *const* SCRIPT_FILENAME_DEFAULT \u003cbr\u003e\n  Default executed script file name, example value.\n  \n- *float* getRequestTime() \u003cbr\u003e\n  Returns HTTP request time.\n\n- *string* getScriptFileName() \u003cbr\u003e\n  Returns executed script file name.\n  \n\n**HttpRequest**\n\n- *const* SCRIPT_NAME \u003cbr\u003e\n  Executed script name string option.\n  \n- *const* SCRIPT_NAME_DEFAULT \u003cbr\u003e\n  Executed script name, example value.\n  \n- *const* GATEWAY_INTERFACE \u003cbr\u003e\n  Gateway interface string option.\n  \n- *const* GATEWAY_INTERFACE_DEFAULT \u003cbr\u003e\n  Gateway interface, example value.\n\n- *const* SERVER_SOFTWARE \u003cbr\u003e\n  Server software string option.\n  \n- *const* SERVER_SOFTWARE_APACHE \u003cbr\u003e\n  Apache server software, example value.\n  \n- *const* SERVER_SOFTWARE_NGINX \u003cbr\u003e\n  Nginx server software, example value.\n  \n- *const* HOST \u003cbr\u003e\n  Server host name string option.\n  \n- *const* HOST_LOCAL \u003cbr\u003e\n  Local server host name, example value.\n  \n- *const* HOST_IP \u003cbr\u003e\n  Server IP address string option.\n  \n- *const* HOST_IP_LOCAL \u003cbr\u003e\n  Local server IP address, example value.\n\n- *const* URI \u003cbr\u003e\n  Request URI string option.\n\n- *const* URI_DEFAULT \u003cbr\u003e\n  Request URI, example value.\n  \n- *const* METHOD \u003cbr\u003e\n  Request method string option.\n  \n- *const* METHOD_GET \u003cbr\u003e\n  GET request method, example value.\n  \n- *const* METHOD_POST \u003cbr\u003e\n  POST request method, example value.\n  \n- *const* SCHEME \u003cbr\u003e\n  Request scheme string option.\n  \n- *const* SCHEME_HTTP \u003cbr\u003e\n  HTTP request scheme, example value.\n  \n- *const* SCHEME_HTTPS \u003cbr\u003e\n  HTTPS request scheme, example value.\n  \n- *const* PORT \u003cbr\u003e\n  Request port string option.\n  \n- *const* PORT_HTTP \u003cbr\u003e\n  HTTP request port, example value.\n  \n- *const* PORT_HTTPS \u003cbr\u003e\n  HTTPS request port, example value.\n  \n- *const* QUERY_STRING \u003cbr\u003e\n  Query string option.\n\n- *const* QUERY_STRING_DEFAULT \u003cbr\u003e\n  Query string, example value.\n  \n- *const* ACCEPT \u003cbr\u003e\n  Accept header string option.\n  \n- *const* ACCEPT_HTML \u003cbr\u003e\n  Accept HTML header, example value.\n  \n- *const* ACCEPT_LANGUAGE \u003cbr\u003e\n  Accept language header string option.\n  \n- *const* ACCEPT_LANGUAGE_DEFAULT \u003cbr\u003e\n  Default accept language, example value.\n  \n- *const* ACCEPT_CHARSET \u003cbr\u003e\n  Accept charset header string option.\n  \n- *const* ACCEPT_CHARSET_DEFAULT \u003cbr\u003e\n  Default charset header, example value.\n\n- *const* ACCEPT_ENCODING \u003cbr\u003e\n  Accept encoding header string option.\n  \n- *const* ACCEPT_ENCODING_DEFAULT \u003cbr\u003e\n  Default accept encoding header, example value.\n  \n- *const* USER_AGENT \u003cbr\u003e\n  User agent header string option.\n  \n- *const* USER_AGENT_DEFAULT \u003cbr\u003e\n  Default user agent header, example value.\n  \n- *const* REFERER \u003cbr\u003e\n  Referer header string option.\n  \n- *const* REFERER_DEFAULT \u003cbr\u003e\n  Default referer header, example value.\n\n- *const* REMOTE_IP \u003cbr\u003e\n  Remote IP address string option.\n  \n- *const* REMOTE_IP_LOCAL \u003cbr\u003e\n  Local remote IP address, example value.\n\n- *const* REMOTE_PORT \u003cbr\u003e\n  Remote port string option.\n\n- *const* REMOTE_PORT_DEFAULT \u003cbr\u003e\n  Default remote port, example value.\n  \n- *const* REQUESTED_WITH \u003cbr\u003e\n  The x-requested-with header string option.\n  \n- *const* REQUESTED_WITH_AJAX \u003cbr\u003e\n  The Ajax x-requested-with header, example value.\n\n- *string* getRoutePath() \u003cbr\u003e\n  Returns route path.\n\n- *string* getScriptName() \u003cbr\u003e\n  Returns executed script name.\n\n- *string* getMethod() \u003cbr\u003e\n  Returns HTTP request method.\n  \n- *string* getHost() \u003cbr\u003e\n  Returns HTTP host name.\n\n- *string* getHostIP() \u003cbr\u003e\n  Returns HTTP host IP address.\n\n- *string* getScheme() \u003cbr\u003e\n  Returns HTTP request scheme.\n\n- *bool* isHttps() \u003cbr\u003e\n  Returns true when request scheme is HTTPS.\n\n- *string* getPort() \u003cbr\u003e\n  Returns HTTP request port.\n\n- *string* getQueryString() \u003cbr\u003e\n  Returns HTTP request query string.\n  \n- *string* getBasePath() \u003cbr\u003e\n  Returns HTTP root.\n\n- *string* getUri() \u003cbr\u003e\n  Returns request URI.\n  \n- *string* getGatewayInterface() \u003cbr\u003e\n  Returns server gateway interface identifier.\n\n- *string* getServerSoftware() \u003cbr\u003e\n  Returns server software identifier.\n  \n- *string* getAccept() \u003cbr\u003e\n  Returns HTTP accept header value.\n  \n- *string* getAcceptLanguage() \u003cbr\u003e\n  Returns HTTP accept language header value.\n  \n- *string* getAcceptCharset() \u003cbr\u003e\n  Returns HTTP accept charset header value.\n  \n- *string* getAcceptEncoding() \u003cbr\u003e\n  Returns HTTP accept encoding header value.\n  \n- *string* getUserAgent() \u003cbr\u003e\n  Returns HTTP request user agent.\n\n- *string* getReferer() \u003cbr\u003e\n  Returns HTTP referer header value.\n\n- *string* getRemoteIP() \u003cbr\u003e\n  Returns HTTP remote IP address.\n  \n- *string* getRemotePort() \u003cbr\u003e\n  Returns HTTP remote port.\n\n- *bool* isAjax() \u003cbr\u003e\n  Returns true when request was made by Ajax.\n\n- *array* *static* defaults(*array* $overrides = []) \u003cbr\u003e\n  Returns default HTTP request options, example values.\n\n\n**ConsoleRequest**\n\n- *const* COMMAND \u003cbr\u003e\n  Console command string option.\n\n- *string* getCommand() \u003cbr\u003e\n  Returns console command.\n\n- *array* *static* defaults(*array* $overrides = []) \u003cbr\u003e\n  Returns default console request options, example values.\n\n\n## Development\n\n[![Build Status](https://img.shields.io/travis/webino/request/develop.svg?style=for-the-badge)](http://travis-ci.org/webino/request \"Develop Build Status\")\n[![Coverage Status](https://img.shields.io/coveralls/github/webino/request/develop.svg?style=for-the-badge)](https://coveralls.io/github/webino/request?branch=develop \"Develop Coverage Status\")\n[![Code Quality](https://img.shields.io/scrutinizer/g/webino/request/develop.svg?style=for-the-badge)](https://scrutinizer-ci.com/g/webino/request/?branch=develop \"Develop Code Quality\")\n[![Latest Unstable Version](https://img.shields.io/github/tag-pre/webino/request.svg?label=PREVIEW\u0026style=for-the-badge)](https://packagist.org/packages/webino/request \"Packagist\")\n\n\nStatic analysis:\n```bash\ncomposer analyse\n```\n\nCoding style check:\n```bash\ncomposer check\n```\n\nCoding style fix:\n```bash \ncomposer fix\n```\n\nTesting:\n```bash\ncomposer test\n```\n\nGit pre-commit setup:\n```bash\nln -s ../../pre-commit .git/hooks/pre-commit\n```\n\n\n## Addendum\n\n[![License](https://img.shields.io/packagist/l/webino/request.svg?style=for-the-badge)](https://github.com/webino/request/blob/master/LICENSE.md \"BSD-3-Clause License\")\n[![Total Downloads](https://img.shields.io/packagist/dt/webino/request.svg?style=for-the-badge)](https://packagist.org/packages/webino/request \"Packagist\") \n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/webino/request.svg?style=for-the-badge)\n\n\n  Please, if you are interested in this library report any issues and don't hesitate to contribute.\n  We will appreciate any contributions on development of this library.\n\n[![GitHub issues](https://img.shields.io/github/issues/webino/request.svg?style=for-the-badge)](https://github.com/webino/request/issues)\n[![GitHub forks](https://img.shields.io/github/forks/webino/request.svg?label=Fork\u0026style=for-the-badge)](https://github.com/webino/request)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebino%2Frequest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebino%2Frequest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebino%2Frequest/lists"}