Le 22/07/13 19:31, Ryan Lane a écrit :
Another reason for having separate components like the WikibaseModel or Diff is that they are not MediaWiki extensions, but pure PHP libraries. Any PHP script can reuse them. Since the WikibaseModel is not trivial, this should help with the writing of bots and scripts dealing with Wikidata data. How should we handle such components? Should they be moved to Wikibase and we require every script to depend on the whole of Wikibase, and thus MediaWiki?
For pure PHP libraries, they could be distributed like pure PHP libraries usually are. They can be packaged for multiple distros and be available via apt/yum/composer (or pear). Having them as MediaWiki extensions is somewhat awkward.
Maybe we can move the standalone libraries out of mediawiki/extensions/ to some new namespace such as php/ . Then the standalone libraries are also extensions :-(
<rant> Please no pear. That is a dumb system that needs to disappear. You cant even upload GPL code there, they enforce their own style and require to use PEAR glue code such as status code and autoloader. </rant>