PHP code example of lobostome / furry-bear
1. Go to this page and download the library: Download lobostome/furry-bear 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/ */
lobostome / furry-bear example snippets
$adapter = new FurryBear\Http\Adapter\Curl();
$provider = new FurryBear\Provider\Source\SunlightCongress($adapter, $apiKey);
$output = new FurryBear\Output\Strategy\JsonToArray();
$fb = new FurryBear\FurryBear();
$fb->registerProvider($provider)->registerOutput($output);
var_dump(
$fb->bills_search->fields('official_title', 'chamber', 'introduced_on', 'search')
->search('"health care" medicine')
->filter('history.enacted', true)
->order('introduced_on')
->get()
);