PHP code example of twom / laravel-axios
1. Go to this page and download the library: Download twom/laravel-axios library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
twom / laravel-axios example snippets
$data = Axios::post("http://your-url.com/...",
[
"name" => "ali",
],
[
"header" => [
"Authorization" => "any"
],
])
->setContent()
->go()
->output('json');
$axios = Axios::make([
"url" => $url,
"method" => "post",
]);