denismitr / easy-curl
PHP Easy Curl
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/denismitr/easy-curl
Requires
- php: >=5.5
This package is auto-updated.
Last update: 2020-01-22 22:52:44 UTC
README
##Installation composer require denismitr/easy-curl
###Usage
A recaptcha example:
$captchaResponse = EasyCurl::post(config('services.recaptcha.url')) ->send([ 'secret' => config('services.recaptcha.secret'), 'response' => $request->input('g-recaptcha-response'), 'remoteip' => $request->ip() ]) ->getDecodedResponse(); if ( ! isset($captchaResponse->success) || ! $captchaResponse->success) { abort(400, 'Нет, нет, нет!'); }