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
Prefix for classes #1
Comments
Yeah, you're right. I also thought of that, but never changed it. I think I'll go with "LastfmCaller", "LastfmAlbum", etc. |
You could just use namespaces. |
true. don't want to restrict it to PHP >= 5.3 though. |
Yeh, agreed. Maybe include an example of how to use with namespaces. |
I created a fork that is namespaced with LastFM_ ie LastFM_Artist etc... I also added the Chart api and changed the __autoload function to use spl_autoload_register() to avoid conflicts. |
I have a PSR-0 compliant namedspaced fork here for those interested: It also has a composer.json for easy installation and autoloading in many workspaces. |
It would be better if all classes in the library have prefix like lfCaller or like PEAR Services_LastFm_Caller.
In this way we'll avoid a lot of troubles with class names conflicts.
What do you think?
The text was updated successfully, but these errors were encountered: