monperrus / bibtexbrowser

Beautiful publication lists with bibtex and PHP (standalone or in Wordpress)
http://www.monperrus.net/martin/bibtexbrowser/
84 stars 54 forks source link

Composer autoloading #81

Closed paxperscientiam closed 6 years ago

paxperscientiam commented 6 years ago

Hello @monperrus

This is a long time coming, but I have begun the work to "classify" bibtexbrowser so that it may fully integrate with composer and follow the PSR-4 standard.

It's not done yet. Maybe you can try the example?

ATM, none of the links will work and neither does the styling.

This is just proof of concept. Hopefully, I can finish this PR soon!

Any input would be much appreciated.

monperrus commented 6 years ago

Thanks for this proposal. What are the pros and cons of this?

monperrus commented 6 years ago

Thanks again for the hard work and this interesting proposal.

However, after a long thought, I'm not in favor of changing the file structure. Having a single file is super handy for developing and for distributing.

Note there may be a way to automatically split bibtexbrowser.php with AST analysis to create a composer friendly version. This automated refactoring can even done in Travis.