PHP code example of elzdave / benevolent
1. Go to this page and download the library: Download elzdave/benevolent 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/ */
elzdave / benevolent example snippets
use Elzdave\Benevolent\Http\Http;
$data = [
'data' => 'some-data-to-store'
];
$apiRelativeUrl = 'path/relative/to/base-uri';
$apiResponse = Http::useAuth()->post($apiRelativeUrl, $data);
bash
$ php artisan vendor:publish --tag=benevolent-config