-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Composer #735
[WIP] Composer #735
Conversation
For Readability, here is the original from FiveFilters: https://bitbucket.org/fivefilters/php-readability/src (using Otherwise I've forked a fork of that lib which are used in Wallabag project and other one. It's here https://github.com/j0k3r/php-readability Regarding the ContentExtractor, it's a core part for full-text-rss (see) you won't be able to get it using composer. |
|
@j0k3r Bitbucket stopped supporting custom domain names so We could use ContentExtractor from your Graby, although Graby itself is probably a bit larger than needed. Could the Extractor be extracted to separate composer package? Or maybe selfoss could use Graby instead of SimplePie/ContentExtractor/… combo (another PR perhaps). @niol that’s why errors should always be fixed upstream 😆 I will go through https://github.com/SSilence/selfoss/commits/master/libs and try to send pull requests to original libraries if it isn’t fixed in them already. It will have to be verified nevertheless. I will update Gruntfile later. |
@jtojnar Could be hard to extract. Maybe you should directly use graby instead of ContentExtractor, so you won't need php-readability since it's included in graby. |
9270133
to
56b47d5
Compare
Thank you for this pr and improvement. I will have a look on composer next time and try to introduce this package manager. I'm not sure this is a good idea for selfoss, because of a few fixes in libraries. floIcon is a little class I copied and I think this should be handled like selfoss source code. |
@SSilence the fixes are already in upstream so that should not be a problem. The reason I did not finish this yet is that I could not find a reasonable way to include the readability filters. |
They could be added in a dedicated repository and added as dependence from there. It do not soldve completely the issue but allow to keep moving on this subject. |
This is still work in progress.
As recommended in #515 I decided to use composer to manage dependencies.
floIcon that was used previously apparently has restrictive license and isn’t available on packagist. jimIcon claims to be a drop-in replacement, it needs to be tested though. I opened a pull request adding composer.json.
We can also get rid of submodules once this pull request gets accepted.
Last remaining libraries not on composer are two FullTextRss components. Where do they come from? It seems like FullTextRss is a commercial product. For now, I moved them to
vendor/others
directory.