Download the PHP package kafene/netscape-bookmark-parser without Composer
On this page you can find all versions of the php package kafene/netscape-bookmark-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kafene/netscape-bookmark-parser
More information about kafene/netscape-bookmark-parser
Files in kafene/netscape-bookmark-parser
Download kafene/netscape-bookmark-parser
More information about kafene/netscape-bookmark-parser
Files in kafene/netscape-bookmark-parser
Vendor kafene
Package netscape-bookmark-parser
Short Description Parse Netscape format bookmark files
License MIT
Homepage https://github.com/kafene/BookmarkParser
Package netscape-bookmark-parser
Short Description Parse Netscape format bookmark files
License MIT
Homepage https://github.com/kafene/BookmarkParser
Please rate this library. Is it a good library?
Informations about the package netscape-bookmark-parser
netscape-bookmark-parser
About
This library provides a generic NetscapeBookmarkParser
class that is able
of parsing Netscape bookmark export files.
The motivations behind developing this parser are the following:
- the Netscape format has a very loose specification: no DTD nor XSL stylesheet to constrain how data is formatted
- software and web services export bookmarks using a wild variety of attribute names and values
- using standard SAX or DOM parsers is thus not straightforward.
How it works:
- the input bookmark file is trimmed and sanitized to improve parsing results
- the resulting data is then parsed using PCRE patterns
to match attributes and values corresponding to the most likely:
- attribute names:
description
vs.note
,tags
vs.labels
,date
vs.time
, etc. - data formats:
comma,separated,tags
vs.space separated labels
, UNIX epochs vs. human-readable dates, newlines & carriage returns, etc.
- attribute names:
- an associative array containing all successfully parsed links with their attributes is returned
Example
Script:
Output:
All versions of netscape-bookmark-parser with dependencies
PHP Build Version
Package Version
No informations.
The package kafene/netscape-bookmark-parser contains the following files
Loading the files please wait ....