Download the PHP package simplecomplex/restmini without Composer
On this page you can find all versions of the php package simplecomplex/restmini. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download simplecomplex/restmini
More information about simplecomplex/restmini
Files in simplecomplex/restmini
Download simplecomplex/restmini
More information about simplecomplex/restmini
Files in simplecomplex/restmini
Vendor simplecomplex
Package restmini
Short Description Small powerful REST client.
License MIT
Homepage https://github.com/simplecomplex/restmini
Package restmini
Short Description Small powerful REST client.
License MIT
Homepage https://github.com/simplecomplex/restmini
Please rate this library. Is it a good library?
Informations about the package restmini
RestMini Client
Simple HTTP client
with chainable methods.
Highly configurable.
Extensive error handling and logging.
cURL-based.
Example
Client options
- (obj) logger: PSR-3 logger; otherwise checks in Utils\Dependency.
- (bool) parse_json_assoc: parse objects to associative arrays;
ignored if using the parser() method - (str) accept
- (str) accept_charset
- (str) content_type: of request body; default application/json; supported:
''|application/json[; charset=some-charset]|application/x-www-form-urlencoded - (int) connect_timeout: default 5 (seconds);
class constant CONNECT_TIMEOUT_DEFAULT - (int) request_timeout
- (bool) ssl_verify: default true;
class constant SSL_VERIFY_DEFAULT - (str) ssl_cacert_file: use custom CA cert file instead the common file
- (bool) status_vain_result_void: ~ result() returns empty string if
status >=300; suppress error messages etc. received in response body - (bool) ignore_status: ~ don't trust response status code;
like 200 might actually be 404 - (bool) ignore_content_type: ~ don't trust response content type;
HTML might actually be JSON, and vice versa - (str) auth: 'basic' or 'ntlm'; defaults to 'basic' if option user
- (str) user: for auth
- (str) pass: for auth
- (arr) headers: request headers
- (bool) get_headers: get response headers
- (int) log_severity: severity level when logging any error type except
logical error and (runtime) configuration error; default warning;
class constant LOG_SEVERITY_DEFAULT - (string) log_type: use that log type when logging; default 'restmini_client';
class constant LOG_TYPE_DEFAULT - (bool) service_response_info_wrapper: tell service to wrap response
in object listing service response properties - (bool) record_args: make path+query+body args available after request
Requirements
- PHP >=7.0
- PHP cURL extension
- PSR-3 Log
- SimpleComplex Inspect
- SimpleComplex Utils
All versions of restmini with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
ext-curl Version *
ext-ctype Version *
psr/log Version ^1.0
simplecomplex/utils Version ^2.0 || ^1.1 || dev-develop
simplecomplex/inspect Version ^3 || ^2.1 || dev-develop
ext-curl Version *
ext-ctype Version *
psr/log Version ^1.0
simplecomplex/utils Version ^2.0 || ^1.1 || dev-develop
simplecomplex/inspect Version ^3 || ^2.1 || dev-develop
The package simplecomplex/restmini contains the following files
Loading the files please wait ....