Skip to content

Laravel 6 curl request example using ixudra/curl package

twitter logo ・1 min read  

cURL is software which you can use to make various requests using different protocols. PHP has the option to use cURL and in this article, we’ll show several examples. In this tutorial we are going to see how we can get api data using curl get request.

There will be times that you will need to pull out data from a web service using PHP’s GET method. In this tutorial I will be demonstrating how you can make a GET Request using cURL.

If you know about php curl then you can simply run get, post request and get data from url. php curl is very interesting things. if you know and use in with php then you have to do curl_ini(), curl_setopt(), curl_exec() and curl_close() etc that way we can simply run request.

twitter logo DISCUSS
Classic DEV Post from Jun 22 '19

Do you have your own Gatsby site? Let's brainstorm a cross-poster

I'd love it if my blog posts were automatically sent to - wouldn't you?

Mahedi Hasan profile image