diff options
Diffstat (limited to 'vendor/fguillot/picofeed/docs/installation.markdown')
m--------- | vendor/fguillot/picofeed | 0 | ||||
-rw-r--r-- | vendor/fguillot/picofeed/docs/installation.markdown | 67 |
2 files changed, 0 insertions, 67 deletions
diff --git a/vendor/fguillot/picofeed b/vendor/fguillot/picofeed new file mode 160000 +Subproject 0a1d0d3950f7f047dc8fb1d80aa6296e15f306d diff --git a/vendor/fguillot/picofeed/docs/installation.markdown b/vendor/fguillot/picofeed/docs/installation.markdown deleted file mode 100644 index 894754ca4..000000000 --- a/vendor/fguillot/picofeed/docs/installation.markdown +++ /dev/null @@ -1,67 +0,0 @@ -Installation -============ - -Versions --------- - -- Development version: master -- Available versions: - - v0.1.0 (stable) - - v0.0.2 - - v0.0.1 - -Note: The public API has changed between 0.0.x and 0.1.0 - -Installation with Composer --------------------------- - -Configure your `composer.json`: - -```json -{ - "require": { - "fguillot/picofeed": "0.1.0" - } -} -``` - -Or simply: - -```bash -composer require fguillot/picofeed:0.1.0 -``` - -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... -} -``` |