Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Unirest Php Laravel Package

mashape/unirest-php

View on GitHub
Deep Wiki
Context7
v3.0.4

composer fix.

v3.0.3

Minor enhancement to namespacing

v3.0.2
Fixes
  • Don't use CURLOPT_CUSTOMREQUEST for POSTs #105 by @voodoodrul
v3.0.1
Fixed
  • Custom request headers should replace default headers, if provided.
v3.0.0
Changed:
Added:
  • Unirest\Request\Body::Form for constructing application/x-www-form-urlencoded request bodies
  • Unirest\Request\Body::Json for constructing application/json request bodies
  • Unirest\Request\Body::Multipart($dat, $files) for constructing multipart/form-data request bodies and file uploads
  • Unirest\Request\Body::File for single file upload parameter construction
Removed:
  • Unirest\File
Fixes:
  • #93
  • #87
  • #92

Please Review the README for the updated API.

v2.6.6

updated PHPDoc

v2.6.5

Fixed: setting of default headers array #89

v2.6.4

improved solution to override cURL options

v2.6.3

allow to override default curlopts

v2.6.2

update phpdoc return values.

2.6.1

disable SSL host verification with helper method: Unirest\Request::verifyHost(false)

v2.6.0

ability to set custom curl options:

  • Unirest\Request::curlOpt()
  • Unirest\Request::curlOpts()
  • Unirest\Request::clearCurlOpts()
v2.5.0
  • add: cookie string support
  • fix: cookieFile undefined variable
v2.4.0
  • added cookies support
v2.3.1
  • Mockbin integration for testing and documentation.
v2.3.0

New Utility Methods

  • Allow direct access to internal cURL handle with Unirest\Request::getCurlHandle()
  • expose cURL info with Unirest\Request::getInfo() for debugging failed requests
v2.2.1

PHP 5.4 lacks support for CURLOPT_USERNAME and CURLOPT_PASSWORD

v2.2.0

Advanced Authentication Methods

Unirest\Request::auth($username, $password = '', $method = CURLAUTH_BASIC);

Supports Basic, Digest, Negotiate, NTLM Authentication natively, see README for more details.

Proxy Support

Unirest\Request::proxy($address, $port = 1080, $type = CURLPROXY_HTTP, $tunnel = false);
  • proxy port defaults to 1080 as per cURL defaults

  • check the cURL docs for more info on tunneling.

  • proxy type to be one of CURLPROXY_HTTP, CURLPROXY_HTTP_1_0, CURLPROXY_SOCKS4, CURLPROXY_SOCKS5, CURLPROXY_SOCKS4A, and CURLPROXY_SOCKS5_HOSTNAME.

    check the cURL docs for more info.

full usage example:

// quick setup with default port: 1080
Unirest\Request::proxy('10.10.10.1');

// custom port and proxy type
Unirest\Request::proxy('10.10.10.1', 8080, CURLPROXY_HTTP);

// enable tunneling
Unirest\Request::proxy('10.10.10.1', 8080, CURLPROXY_HTTP, true);

Proxy Authentication

Unirest\Request::proxyAuth($username, $password = '', $method = CURLAUTH_BASIC);

Supports Basic, Digest, Negotiate, NTLM Authentication natively, see README for more details.

2.1.0
  • send requests using any standard or custom HTTP Method using Unirest\Request::send
  • set custom JSON Decode Flags using the Unirest\Request::jsonOpts() method.
  • You can now set default headers in bulk using Unirest\Request::defaultHeaders()
2.0.0

Cleanups & Updates

  • added EditorConfig file
  • added Code Coverage through Code Climate
  • added support for PHP 5.6 in Travis
  • added Hack Lang Environment to Travis
  • updated testing to use phpunit
  • various coding style, and comprehensibility fixes in accordance with PSR-1 & PSR-2
  • added enhanced response header parser
  • removed redundant code where applicable
  • updated Unirest\File::add signature to follow after curl_file_create with fallback

Breaking Changes

  • removed PHP 5.3 reached EOL on 14 Aug 2014
  • relocated files to src and tests as per phpunit standard tree structure
  • renamed classes with logical name spacing to Unirest\Request, Unirest\Response, Unirest\Method, Unirest\File
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime