PHP code example of bravist / exchange
1. Go to this page and download the library: Download bravist/exchange 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/ */
bravist / exchange example snippets
Bravist\Exchange\ExchangeProvider::class,
use Bravist\Exchange\Authorize;
class Aname
{
protected $exchange;
public function __construct(Authorize $exchange)
{
$this->exchange = $exchange;
}
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$this->exchange->phone = 186****1103;
$res = $this->exchange->http(config('exchange.get_member'), ['Phone' => 186****1103]);
var_dump($res);
}
}
shell
php artisan vendor:publish