diff options
Diffstat (limited to 'vendor/fguillot/picofeed/docs/installation.markdown')
-rw-r--r-- | vendor/fguillot/picofeed/docs/installation.markdown | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/vendor/fguillot/picofeed/docs/installation.markdown b/vendor/fguillot/picofeed/docs/installation.markdown deleted file mode 100644 index beb0bc828..000000000 --- a/vendor/fguillot/picofeed/docs/installation.markdown +++ /dev/null @@ -1,50 +0,0 @@ -Installation -============ - -Versions --------- - -- Development version: master -- Stable version: use the last tag - -Installation with Composer --------------------------- - -```bash -composer require fguillot/picofeed @stable -``` - -And download the code: - -```bash -composer install # or update -``` - -Usage example with the Composer autoloader: - -```php -<?php - -require 'vendor/autoload.php'; - -use PicoFeed\Reader\Reader; - -try { - - $reader = new Reader; - $resource = $reader->download('http://linuxfr.org/news.atom'); - - $parser = $reader->getParser( - $resource->getUrl(), - $resource->getContent(), - $resource->getEncoding() - ); - - $feed = $parser->execute(); - - echo $feed; -} -catch (Exception $e) { - // Do something... -} -``` |