Category : CURL



Laravel 5 curl request example using ixudra/curl package

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. But, If you require to fire curl request in laravel 5 application then you don't require to do curl_init(), curl_close() etc. We can run request very easily and get response in json. so we will use ixudra/curl composer package for run curl request very simple. Using ixudra curl package you can very simply curl post re.....

By Hardik Savani | July 30, 2017 | | 10042 Viewer | Category : CURL
READ MORE

PHP download file from url using curl example

Whenever you require to download file or image from URL using php curl. then you can see that example. we can download image or file from given url and save in over local server. you can do that using get_file_contents() in php too, but i think it is good if you are doing that using PHP curl. let's see following example : <strong class="example">Example</strong> <pre class="prettyprint lang-php"> $url = 'http://www.test.com/1458398816_33370444.jpg'; <br/> $curlCh = curl_init(); curl_setopt($curlCh, CURLOPT_URL, $url); curl_setopt($curlCh, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curlCh, CURLO.....

By Hardik Savani | March 21, 2016 | | 6699 Viewer | Category : CURL
READ MORE

    Paytm payment gateway integration example in Laravel 5

    Paytm payment gateway integration example in Laravel 5

    Open Post

    How to delete multiple records using checkbox in Laravel 5 ?

    How to delete multiple records using checkbox in Laravel 5 ?

    Open Post

    Laravel 5 - Implement Flash Messages with example

    Laravel 5 - Implement Flash Messages with example

    Open Post

    AngularJS - simple image upload with preview example in PHP

    AngularJS - simple image upload with preview example in PHP

    Open Post

    How to make simple dependent dropdown using jquery ajax in Laravel 5?

    How to make simple dependent dropdown using jquery ajax in Laravel 5?

    Open Post

    Laravel 5 Twitter OAuth using Socialite Package

    Laravel 5 Twitter OAuth using Socialite Package

    Open Post