PHP code example of markelovsergey / xmlriver

1. Go to this page and download the library: Download markelovsergey/xmlriver 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/ */

    

markelovsergey / xmlriver example snippets


$googleQueryBuilder = new \MarkelovSergey\XmlRiver\QueryBuilders\GoogleQueryBuilder();

$googleQueryBuilder->query('keyassort');

$xmlRiver = new \MarkelovSergey\XmlRiver\XmlRiver(USER_ID, KEY);

$response = $xmlRiver->getResponse($googleQueryBuilder);

var_dump($response->dto()->data());