Recommend this page to a friend! |
Download |
Info | Example | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 787 | All time: 4,330 This week: 673 |
Version | License | PHP version | Categories | |||
iam-opml-parser 2.9 | Custom (specified... | 5.3 | XML, Content management |
Description | Author | |
The class can retrieve local or remote OPML file and parses it to extract its content using an iterator. Innovation Award
|
<?php |
OPML Parser Class: Extract the properties of content from OPML files.
A file with the OPML file extension is an Outline Processor Markup Language file. It's saved using the XML format, and is used to exchange information between applications regardless of the operating system.
The OPML file format is often seen used as the import/export format for RSS feed reader programs. Since a file of this format can hold a collection of RSS subscription information, it's the ideal format for backing up or sharing RSS feeds. The class retrieves local or remote OPML file and parses it to extract its content into a PHP iterator. Each of the iterator elements contains the URLs of the listed content as well all other the properties of each content entry such as: name, link target, description, RSS feed, creation date and content type (RSS, HTML, song, booklist, etc..).
Developed by Ivan Melgrati
The recommended installation method is through
Composer, a dependency manager for PHP. Just add
imelgrat/opml-parser
to your project's composer.json
file:
{
"require": {
"imelgrat/opml-parser": "*"
}
}
More details can
be found over at Packagist.
### Manually
1. Copy `src/opml-parser.php` to your codebase, perhaps to the `vendor`
directory.
2. Add the `OPML_Parser` class to your autoloader or `require` the file
directly.
Then, in order to use the OPML class, you need to invoke the "use" operator to bring the class into skope.
<?php use imelgrat\OPML_Parser\OPML_Parser;
$parser = new OPML_Parser();
// Get OPML from URL $parser->ParseLocation('http://www.bbc.co.uk/podcasts.opml', null);
// Walk through each item in the same way as we would if $parser were a string (thanks to the Iterator interface) foreach ($parser as $key => $item) {
echo "<p> Item: " . $key . '</p><ul>';
foreach ($item as $attribute => $value)
{
echo '<li>' . '<strong>' . $attribute . '</strong>:' . $value . '</li>';
}
echo '</ul>';
echo '<p> </p>';
} ?>
Feedback
--------
Please open an issue to request a feature or submit a bug report. Or even if
you just want to provide some feedback, I'd love to hear. I'm also available on
Twitter as @imelgrat.
Contributing
------------
1. Fork it.
2. Create your feature branch (`git checkout -b my-new-feature`).
3. Commit your changes (`git commit -am 'Added some feature'`).
4. Push to the branch (`git push origin my-new-feature`).
5. Create a new Pull Request.
Files (68) |
File | Role | Description | ||
---|---|---|---|---|
docs (2 files, 9 directories) | ||||
examples (1 file) | ||||
src (1 file) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpdoc.dist.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
VERSION | Data | Auxiliary data |
Files (68) | / | docs |
Files (68) | / | docs | / | classes |
File | Role | Description |
---|---|---|
imelgrat.OPML_Parser.OPML_Parser.html | Doc. | Documentation |
OPML_Parser.html | Doc. | Documentation |
Files (68) | / | docs | / | css |
File | Role | Description | ||
---|---|---|---|---|
phpdocumentor-clean-icons (2 files, 1 directory) | ||||
bootstrap-combined.no-icons.min.css | Data | Auxiliary data | ||
font-awesome.min.css | Data | Auxiliary data | ||
jquery.iviewer.css | Data | Auxiliary data | ||
prism.css | Data | Auxiliary data | ||
template.css | Data | Auxiliary data |
Files (68) | / | docs | / | css | / | phpdocumentor-clean-icons |
File | Role | Description | ||
---|---|---|---|---|
fonts (2 files) | ||||
lte-ie7.js | Data | Auxiliary data | ||
style.css | Data | Auxiliary data |
Files (68) | / | docs | / | css | / | phpdocumentor-clean-icons | / | fonts |
File | Role | Description |
---|---|---|
phpdocumentor-clean-icons.dev.svg | Data | Auxiliary data |
phpdocumentor-clean-icons.svg | Data | Auxiliary data |
Files (68) | / | docs | / | files |
File | Role | Description |
---|---|---|
opml-parser.html | Doc. | Documentation |
opml-parser.php.txt | Doc. | Documentation |
Files (68) | / | docs | / | graphs |
File | Role | Description |
---|---|---|
class.html | Doc. | Documentation |
classes.svg | Data | Auxiliary data |
Files (68) | / | docs | / | images |
File | Role | Description | ||
---|---|---|---|---|
iviewer (8 files) | ||||
android-chrome-192x192.png | Icon | Icon image | ||
android-chrome-512x512.png | Data | Auxiliary data | ||
apple-touch-icon-114x114.png | Icon | Icon image | ||
apple-touch-icon-72x72.png | Icon | Icon image | ||
apple-touch-icon.png | Icon | Icon image | ||
custom-icons.svg | Data | Auxiliary data | ||
favicon-16x16.png | Icon | Icon image | ||
favicon-32x32.png | Icon | Icon image | ||
favicon.ico | Data | Auxiliary data | ||
hierarchy-item.png | Icon | Icon image | ||
icon-class-13x13.png | Icon | Icon image | ||
icon-class.svg | Data | Auxiliary data | ||
icon-interface-13x13.png | Icon | Icon image | ||
icon-interface.svg | Data | Auxiliary data | ||
icon-trait-13x13.png | Icon | Icon image | ||
icon-trait.svg | Data | Auxiliary data | ||
mstile-150x150.png | Icon | Icon image | ||
safari-pinned-tab.svg | Data | Auxiliary data |
Files (68) | / | docs | / | images | / | iviewer |
File | Role | Description |
---|---|---|
grab.cur | Data | Auxiliary data |
hand.cur | Data | Auxiliary data |
iviewer.rotate_left.png | Icon | Icon image |
iviewer.rotate_right.png | Icon | Icon image |
iviewer.zoom_fit.png | Icon | Icon image |
iviewer.zoom_in.png | Icon | Icon image |
iviewer.zoom_out.png | Icon | Icon image |
iviewer.zoom_zero.png | Icon | Icon image |
Files (68) | / | docs | / | js |
File | Role | Description | ||
---|---|---|---|---|
ui (1 directory) | ||||
bootstrap.min.js | Data | Auxiliary data | ||
html5.js | Data | Auxiliary data | ||
jquery-1.11.0.min.js | Data | Auxiliary data | ||
jquery.dotdotdot-1.5.9.js | Data | Auxiliary data | ||
jquery.dotdotdot-1.5.9.min.js | Data | Auxiliary data | ||
jquery.iviewer.js | Data | Auxiliary data | ||
jquery.iviewer.min.js | Data | Auxiliary data | ||
jquery.mousewheel.js | Data | Auxiliary data | ||
jquery.smooth-scroll.js | Data | Auxiliary data | ||
prism.min.js | Data | Auxiliary data |
Files (68) | / | docs | / | namespaces |
File | Role | Description |
---|---|---|
default.html | Doc. | Documentation |
imelgrat.html | Doc. | Documentation |
imelgrat.OPML_Parser.html | Doc. | Documentation |
Files (68) | / | docs | / | reports |
File | Role | Description |
---|---|---|
deprecated.html | Doc. | Documentation |
errors.html | Doc. | Documentation |
markers.html | Doc. | Documentation |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
RSS2 - RSS/ATOM/OPML to PDF conversion |
If you know an application of this package, send a message to the author to add a link here.
Pages that reference this package |
OPML (Outline Processor Markup Language) is an XML format for outlines... |
A few days ago, we received a very pleasant surprise from PHP-Classes.org and we’d like to share it with you all... |