modalnetworks/metasearch-drivers

This package is abandoned and no longer maintained. No replacement package was suggested.

1.3.7 2019-06-07 14:44 UTC

This package is auto-updated.

Last update: 2024-05-24 13:47:56 UTC


README

Driver para Metabuscador

Esse driver deve ser usando em conjunto com o sistema de metabuscador

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock

Instalaçao

composer require modalnetworks/metasearch-drivers
use Modalnetworks\MetaSearch\Drivers\AbcdDriver;
use Modalnetworks\MetaSearch\MetaSearchService;

$str = 'string file generate';

$settings = new \Modalnetworks\MetaSearch\MetaSearchMappingConfig($mapping['mappings']['abcd']);
$settings->setExtrasMerge(['client_id' => 'token client']);
$driver = (new AbcdDriver($settings, true));


try{
    (new MetaSearchService)->driver($driver)->pushRemote($str, function ($response) {
        dump($response);
    });

}catch(\Exception $e){
   dump($e->getMessage());
}