{"id":21076457,"url":"https://github.com/imelgrat/opml-parser","last_synced_at":"2025-05-16T06:32:24.544Z","repository":{"id":56990315,"uuid":"68033571","full_name":"imelgrat/opml-parser","owner":"imelgrat","description":"A PHP-based OPML Parser Class. Extracts the properties of content from OPML files","archived":false,"fork":false,"pushed_at":"2018-12-12T11:39:36.000Z","size":742,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-16T02:06:37.100Z","etag":null,"topics":["composer","composer-package","extract","opml","opml-files","opml-outline","opml-parser","opml-to-json","parser","parsing-engine","parsing-library","php","rss","rss-feed","xml","xml-parser"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imelgrat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-12T17:55:55.000Z","updated_at":"2023-09-08T17:14:43.000Z","dependencies_parsed_at":"2022-08-21T10:10:53.484Z","dependency_job_id":null,"html_url":"https://github.com/imelgrat/opml-parser","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imelgrat%2Fopml-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imelgrat%2Fopml-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imelgrat%2Fopml-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imelgrat%2Fopml-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imelgrat","download_url":"https://codeload.github.com/imelgrat/opml-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225413333,"owners_count":17470565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","composer-package","extract","opml","opml-files","opml-outline","opml-parser","opml-to-json","parser","parsing-engine","parsing-library","php","rss","rss-feed","xml","xml-parser"],"created_at":"2024-11-19T19:28:31.501Z","updated_at":"2024-11-19T19:28:32.308Z","avatar_url":"https://github.com/imelgrat.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"OPML Parser\n==================\n\n[![GitHub license](https://img.shields.io/github/license/imelgrat/opml-parser.svg?style=flat-square)](https://github.com/imelgrat/opml-parser/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/imelgrat/opml-parser.svg?style=flat-square)](https://github.com/imelgrat/opml-parser/releases)\n[![Total Downloads](https://poser.pugx.org/imelgrat/opml-parser/downloads)](https://packagist.org/packages/imelgrat/opml-parser)\n[![GitHub issues](https://img.shields.io/github/issues/imelgrat/opml-parser.svg?style=flat-square)](https://github.com/imelgrat/opml-parser/issues)\n[![GitHub stars](https://img.shields.io/github/stars/imelgrat/opml-parser.svg?style=flat-square)](https://github.com/imelgrat/opml-parser/stargazers)\n\n\nOPML Parser Class: Extract the properties of content from OPML files. \n\nA 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.\n\nThe 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.\nThe 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..).\n\n\nDeveloped by [Ivan Melgrati](https://twitter.com/imelgrat) \n\nRequirements\n------------\n\n*   PHP \u003e= 5.3.0\n\nInstallation\n------------\n\n### Composer\n\nThe recommended installation method is through\n[Composer](http://getcomposer.org/), a dependency manager for PHP. Just add\n`imelgrat/opml-parser` to your project's `composer.json` file:\n\n```json\n{\n    \"require\": {\n        \"imelgrat/opml-parser\": \"*\"\n    }\n}\n\n[More details](http://packagist.org/packages/imelgrat/opml-parser) can\nbe found over at [Packagist](http://packagist.org).\n\n### Manually\n\n1.  Copy `src/opml-parser.php` to your codebase, perhaps to the `vendor`\n    directory.\n2.  Add the `OPML_Parser` class to your autoloader or `require` the file\n    directly.\n\nThen, in order to use the OPML class, you need to invoke the \"use\" operator to bring the class into skope.\n\n```php\n\u003c?php\nuse imelgrat\\OPML_Parser\\OPML_Parser;\n\n$parser = new OPML_Parser();\n\n// Get OPML from URL\n$parser-\u003eParseLocation('http://www.bbc.co.uk/podcasts.opml', null);\n\n// Walk through each item in the same way as we would if $parser were a string (thanks to the Iterator interface)\nforeach ($parser as $key =\u003e $item)\n{\n\techo \"\u003cp\u003e Item: \" . $key . '\u003c/p\u003e\u003cul\u003e';\n\tforeach ($item as $attribute =\u003e $value)\n\t{\n\t\techo '\u003cli\u003e' . '\u003cstrong\u003e' . $attribute . '\u003c/strong\u003e:' . $value . '\u003c/li\u003e';\n\t}\n\techo '\u003c/ul\u003e';\n\techo '\u003cp\u003e\u0026nbsp;\u003c/p\u003e';\n\n}\n?\u003e\n```\n\nFeedback\n--------\n\nPlease open an issue to request a feature or submit a bug report. Or even if\nyou just want to provide some feedback, I'd love to hear. I'm also available on\nTwitter as [@imelgrat](https://twitter.com/imelgrat).\n\nContributing\n------------\n\n1.  Fork it.\n2.  Create your feature branch (`git checkout -b my-new-feature`).\n3.  Commit your changes (`git commit -am 'Added some feature'`).\n4.  Push to the branch (`git push origin my-new-feature`).\n5.  Create a new Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimelgrat%2Fopml-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimelgrat%2Fopml-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimelgrat%2Fopml-parser/lists"}