PHP code example of thgs / laminas-feed-amphp-adapter

1. Go to this page and download the library: Download thgs/laminas-feed-amphp-adapter 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/ */

    

thgs / laminas-feed-amphp-adapter example snippets



use thgs\Adapter\LaminasFeedHttpClient\LaminasFeedAmphpHttpClientAdapter;

LaminasFeedAmphpHttpClientAdapter::installNew($httpClient = null);


use thgs\Adapter\LaminasFeedHttpClient\LaminasFeedAmphpHttpClientAdapter;

$adapter = new LaminasFeedAmphpHttpClientAdapter($httpClient = null);
\Laminas\Feed\Reader\Reader::setHttpClient($adapter);