simplepie / simplepie-ng Goto Github PK
View Code? Open in Web Editor NEWDon't use this yet.
Home Page: https://simplepie.github.io/simplepie-ng/
License: Apache License 2.0
Don't use this yet.
Home Page: https://simplepie.github.io/simplepie-ng/
License: Apache License 2.0
This will be a cleaner way of handling small variations of the namespace URL (e.g., https, trailing slashes).
https://github.com/simplepie/simplepie-ng/wiki/Spec%3A-Atom-1.0#2-atom-documents
atomCommonAttributes =
attribute xml:base { atomUri }?,
attribute xml:lang { atomLanguageTag }?,
undefinedAttribute*
this looks awesome @skyzyx! Glad you've got the time to take this on.
Just wanted to mention an issue I've had when retrofitting microformats into SimplePie OG (yes I think I will use that term...) The issue is that h-entry's have a wider vocabulary for authors via h-card than traditional feeds. So instead of just being a name or email address they can be full html markup with profile images, urls, etc. This makes it hard to be an afterthought because you've probably made a few assumptions about content types for author before implementing it.
Anyway feel free to close this issue.
in src/Type/Entry.php, line 54
Commented out code reduces readability and lowers the code confidence for other developers. If it's common usage for debug, it should not be committed. Using a version control system, such code can be safely removed.
if ($node) {
$this->logger = $logger ?? new NullLogger();
$this->node = $node;
// foreach ($this->node->attributes as $attribute) {
// $this->{$attribute->name} = new Node($attribute);
// }
}
}
/**
Posted from SensioLabsInsight
Quoting the readme:
Will almost certainly not work with shared hosting providers. Time to get a grown-up server.
Since this is supposed to be just a PHP library, why would that not work on shared hosting providers?
The support for shared hosting providers is still important because, for example, for students, especially in less wealthy countries, shared hosting might be the only way to afford a “private cloud”. I was also relying on that until very recently. And even if one has the money, running a server takes significantly more effort.
Also, the ability to deploy applications to a shared hosting is the only reason why I still use PHP at all – on my own server I can just use the better languages.
See simplepie/simplepie#475 for context.
in src/Type/Feed.php, line 184
The parameter
link
, which is an object, should be typehinted.
$links = $this->getComplexMultipleValues($this->getRoot(), $nodeName, $args[0] ?? null);
if (isset($args[1])) {
$relFilter = $args[1];
return \array_values(\array_filter($links, static function ($link) use ($relFilter) {
return $relFilter === $link->getRel()->getValue();
}));
}
return $links;
Posted from SensioLabsInsight
Can help people ensure valid creation of feeds, but has extra processing cost. Make it opt-in since it's not strictly required.
LanguageTag
MediaType
Uri
https://github.com/simplepie/simplepie-ng/wiki/Spec%3A-Atom-1.0#appendix-b-relax-ng-compact-schema
in src/Type/Entry.php, line 193
The parameter
link
, which is an object, should be typehinted.
$links = $this->getComplexMultipleValues($this, $nodeName, $args[0]);
if (isset($args[1])) {
$relFilter = $args[1];
return \array_values(\array_filter($links, static function ($link) use ($relFilter) {
return $relFilter === $link->getRel()->getValue();
}));
}
return $links;
Posted from SensioLabsInsight
Parse this and turn it into the DTD format we need. https://www.w3.org/TR/html5/entities.json
Add the ability to detect and convert a variety of character encodings to UTF-8 for parsing.
Should we leave bunk HTML alone? Or pass it through an HTML5 parser?
FeedParser.py passes it through an HTML5 parser.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.