PHP code example of survos / ftm-resolver
1. Go to this page and download the library: Download survos/ftm-resolver 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/ */
survos / ftm-resolver example snippets
$provider = new Survos\FtmResolver\YenteProvider(
Symfony\Component\HttpClient\HttpClient::create(),
new Symfony\Component\Serializer\Serializer([], [new Symfony\Component\Serializer\Encoder\JsonEncoder()]),
Survos\FollowTheMoney\Model::bundled(),
'http://127.0.0.1:8100',
);
$page = $provider->search('rappnews_1952_1954', 'Mary Miller');
foreach ($page->candidates as $candidate) {
// Original FtM entity, optional score/flag, and unmodified provider row.
echo $candidate->entity->name;
}