-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feedback #30
Comments
Thank you for this issue. I will address all your comments in the readme and code. But here are some quick answers:
|
Thanks for the quick reply, makes sense. Regarding the final and private keywords, my vote is to remove them until having them gives a clear benefit. Sometimes inheritance is unavoidable despite the best intentions, and I have bad memories of having to copy-paste/fork code just to work around a small unintended bug :) I'll close this issue as it is not meant for tracking the individual concerns, just for giving feedback. |
Hey guys, nice to see community work being done on this library :)
Here is some feedback and questions. For the ones that we find needs more discussion, we'll create separate issues.
For instance, this seems to be a continuation of billogram#16 and an effort to bring the lib up to par with modern php standards. It seem to cater to more experienced php developers. Is there some other purpose of this fork that is good to state in the readme?
Please provide examples of how to use the new features of this version vs the upstream version, for instance to log, profile or debug the HTTP requests sent using this library. Linking to upstream docs in the README would do fine.
Is there any particular reason to use final and private keywords in this lib? For application-specific code it'd be justified, but since this is a library, you'll expect users to want to extend (in the general sense) your code in ways which you would never foresee without necessarily having to fork the lib.
One example would be if I want to extend the Api\Item class, then I'd also like to extend the BillogramClient class to return my extended class in the items() method. This is not possible with final+private keywords found in that class.
The typo "costumer" instead of "customer" appears here and there in the code.
The README is out of date in both how to install the package, how to create the api client and set auth credentials (api key or api password for instance?). Let us now when this is updated so that it is easier to try the new lib :) Thanks
The text was updated successfully, but these errors were encountered: