src/Graby.php
public function fetchContent($url)
    {
        $this->logger->info('Graby is ready to fetch');

        $infos = $this->doFetchContent($url);

        // generate summary
        $infos['summary'] = $this->getExcerpt($infos['html']);

        return $infos;
    }
public function fetchContent($url)
    {
        $this->logger->info('Graby is ready to fetch');

        $infos = $this->doFetchContent($url);

        // generate summary
        $infos['summary'] = $this->getExcerpt($infos['html']);

        return $infos;
    }
public function fetchContent ( $ url ) { $ this -> logger -> info ( 'Graby is ready to fetch' ) ; $ infos = $ this -> doFetchContent ( $ url ) ; // generate summary $ infos [ 'summary' ] = $ this -> getExcerpt ( $ infos [ 'html' ] ) ; return $ infos ; }
Fetch content from the given url and return a readable content.

@param string $url

@return array With keys html, title, url & summary
Fetch content from the given url and return a readable content .