{"id":15068542,"url":"https://github.com/simplecomplex/restmini","last_synced_at":"2026-02-07T16:01:13.417Z","repository":{"id":57051273,"uuid":"68454171","full_name":"simplecomplex/restmini","owner":"simplecomplex","description":"Small powerful REST client","archived":false,"fork":false,"pushed_at":"2020-07-02T10:06:19.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T10:42:29.146Z","etag":null,"topics":["chainable-methods","php","php7","psr","rest","rest-client"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simplecomplex.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-17T13:36:17.000Z","updated_at":"2020-07-02T10:05:58.000Z","dependencies_parsed_at":"2022-08-24T03:40:49.273Z","dependency_job_id":null,"html_url":"https://github.com/simplecomplex/restmini","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/simplecomplex/restmini","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplecomplex%2Frestmini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplecomplex%2Frestmini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplecomplex%2Frestmini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplecomplex%2Frestmini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplecomplex","download_url":"https://codeload.github.com/simplecomplex/restmini/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplecomplex%2Frestmini/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29199519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T14:35:27.868Z","status":"ssl_error","status_checked_at":"2026-02-07T14:25:51.081Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["chainable-methods","php","php7","psr","rest","rest-client"],"created_at":"2024-09-25T01:38:02.312Z","updated_at":"2026-02-07T16:01:13.377Z","avatar_url":"https://github.com/simplecomplex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## RestMini Client ##\n\n### Simple HTTP client ###\n\nwith chainable methods.  \nHighly configurable.  \nExtensive error handling and logging.  \n[cURL](https://curl.haxx.se)-based.\n\n### Example ###\n\n```php\nuse SimpleComplex\\RestMini\\Client;\n\n// Get JSON-decoded response data.\n$data = Client::make('http://server', '/endpoint', [\n    'headers' =\u003e [\n        'X-Whatever' =\u003e 'Hello',\n    ],\n    'json_parse_assoc' =\u003e true,\n])-\u003eget(\n    [\n        'some-path-arg' =\u003e 'foo',\n    ],\n    [\n        'some-query-arg' =\u003e 'bar',\n    ]\n)-\u003eresult();\n\n// Check status first.\n$response = Client::make('http://server', '/endpoint')-\u003eget();\nif ($response-\u003estatus() == 200) {\n    $data = $response-\u003eresult();\n}\nelse {\n    $info = $response-\u003einfo();\n    $container = \\SimpleComplex\\Utils\\Dependency::container();\n    $container-\u003eget('logger')-\u003ewarning(\"Darned:\\n\" . json_encode($info, JSON_PRETTY_PRINT));\n}\n\n// Get raw response data.\n$raw = Client::make('http://server', '/endpoint')-\u003eget()-\u003eraw():\n```\n\n### Client options ###\n\n- (obj) **logger**: PSR-3 logger; otherwise checks in Utils\\Dependency.\n- (bool) **parse_json_assoc**: parse objects to associative arrays;  \n     ignored if using the parser() method\n- (str) **accept**\n- (str) **accept_charset**\n- (str) **content_type**: of request body; default application/json; supported:  \n     ''|application/json[; charset=some-charset]|application/x-www-form-urlencoded\n- (int) **connect_timeout**: default 5 (seconds);  \n     class constant CONNECT_TIMEOUT_DEFAULT\n- (int) **request_timeout**\n- (bool) **ssl_verify**: default true;  \n     class constant SSL_VERIFY_DEFAULT\n- (str) **ssl_cacert_file**: use custom CA cert file instead the common file\n- (bool) **status_vain_result_void**: ~ result() returns empty string if  \n     status \u003e=300; suppress error messages etc. received in response body\n- (bool) **ignore_status**: ~ don't trust response status code;  \n     like 200 might actually be 404\n- (bool) **ignore_content_type**: ~ don't trust response content type;  \n     HTML might actually be JSON, and vice versa\n- (str) **auth**: 'basic' or 'ntlm'; defaults to 'basic' if option _user_\n- (str) **user**: for auth\n- (str) **pass**: for auth\n- (arr) **headers**: request headers\n- (bool) **get_headers**: get response headers\n- (int) **log_severity**: severity level when logging any error type except  \n     logical error and (runtime) configuration error; default warning;  \n     class constant LOG_SEVERITY_DEFAULT\n- (string) **log_type**: use that log type when logging; default 'restmini_client';  \n     class constant LOG_TYPE_DEFAULT\n- (bool) **service_response_info_wrapper**: tell service to wrap response  \n     in object listing service response properties\n- (bool) **record_args**: make path+query+body args available after request\n\n### Requirements ###\n\n- PHP \u003e=7.0\n- PHP cURL extension\n- [PSR-3 Log](https://github.com/php-fig/log)\n- [SimpleComplex Inspect](https://github.com/simplecomplex/inspect)\n- [SimpleComplex Utils](https://github.com/simplecomplex/php-utils)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplecomplex%2Frestmini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplecomplex%2Frestmini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplecomplex%2Frestmini/lists"}