-
Notifications
You must be signed in to change notification settings - Fork 530
-
Notifications
You must be signed in to change notification settings - Fork 530
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
Make lessphp a Composer package #216
Comments
I second this, but really before this is done it needs to be made PSR-0 compliant. At the moment I am using the following repository definition:
Unfortunately this also adds all the tests to the autoloader, but its better than nothing. |
+1 :) |
1 similar comment
+1 :) |
_-1_ for pseudo-standard requirement 0 compliance. PEAR naming is dead, and namespacing was designed and intended to completely replace it and the hackish pseudo-namespacing that it used for autoloading; PSR-0 is an attempt to blend the two together to create something worse than ever before, both in terms of performance and straightforwardness. Having an underscore behave as a magic character when constructing a class's filepath only under specific conditions is bloody crazy talk and only mystifies design. Plus, it was created on a closed mailing list by a self-appointed "standards group" with very little public influence and input (and it shows). There's some additional stuff on PSR-0's...lack of coherence here, I found: http://blog.ircmaxell.com/2011/11/on-psr-0-being-included-in-phps-core.html A better solution is to use one that was provided in PHP-core from the very beginning, in PHP 5.3 - literal autoloading. Underscores map to underscores, namespace separators just map to directory separators, etc. Reference php manual, functions spl_autoload_extensions, get_include_path, set_include_path. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
Okay it's up, thanks @RobLoach http://packagist.org/packages/leafo/lessphp Not sure how to push the version tags from git to it though, maybe only new ones show up? (I set up the commit hook) |
Thanks a lot for the help! You're correct, only new versions will show up as those are the only versions that'll have the composer.json meta-data file. |
Please make lessphp a Composer package (http://getcomposer.org/) and put it on http://packagist.org/.
The text was updated successfully, but these errors were encountered: