Closed chillu closed 11 years ago
PHPCrawl is really good, and I doubt Goutte has the same benefits. It's designed to be a webcrawl, and, for example, supports multi-threaded operation.
We should be able to distribute a GPL module as long as we're clear about the licensing. I'll label this composer package as GPL, and/or include PHPCrawl via composer.
I set up http://github.com/sminnee/phpcrawl to get the module into packagist, and contained the package maintainer for hopefully a more permanent solution with his blessing.
I'm not sure if "require ../vendor/..." is the best way of referencing regular composer dependencies from SilverStripe code, but it seems to do the trick. The module wasn't really set up to have a functioning autoloader.
composer has a 'classmap' autoloader for this purpose: http://getcomposer.org/doc/04-schema.md#classmap
From my understanding of the GPL, we can't distribute the PHPCrawl lib with this module (see SO thread). I guess adding it as a composer dependency would be fine, because the user then download himself, right? The lib isn't on composer, but maybe we can change that? (or switch to Goutte hehe)