CONTRIBUTIONS.txt 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. CONTRIBUTIONS
  2. --------------
  3. This document is for people who wish to aid in the development of vLIB.
  4. NB: If you would just like to inform us of a bugfix, then please either send details of the fix to
  5. vlib@activefish.com or visit http://vlib.activefish.com/forum/ and leave a message on the forum,
  6. there is no signup required for the Feedback and Suggestions forums.
  7. 1. Getting started
  8. ---------------------
  9. Now if you would like to contribute to the project you're going to need CVS access to vLIB, which is
  10. hosted on SourceForge.net. Send an e-mail to vlib@activefish.com with your sf.net username and what it
  11. is that you're interested in developing.
  12. If all is well you'll be given CVS access to vLIB where you can start modifying, adding ..etc.
  13. NB: If you don't know how to use CVS you can learn more about it using the sourceforge documentation.
  14. The basics aren't very difficult and you should be able to pick it up fairly quickly. If you're using
  15. Win32, I suggest you use a tool called TortoiseCVS. This is easy to setup and lets you access CVS commands
  16. from Windows Explorer. You can find it at http://www.tortoisecvs.org/.
  17. 2. Coding Standards
  18. ---------------------
  19. vLIB is programmed using the same standards as the PEAR repository (http://pear.php.net/manual/en/standards.php).
  20. Make sure you program in this style as we don't like sloppy code. Most importantly, make sure your naming
  21. conventions are correct, the only difference between vLIB naming conventions and PEAR naming conventions is that
  22. vLIB classes use the "studly caps" method, like functions do, and the name of the file will represent the name of
  23. the main class within it; all other naming conventions are the same.
  24. Read the PEAR "Coding Standards" docs thouroughly to make sure you understand how to comment your code using PHPDoc
  25. style comments (http://phpdocu.sourceforge.net/) and to also see whether you should be on the list of authors in the
  26. header of each file.
  27. If you wish to add a new class to the library then create the file, copying the header from another file and away you
  28. go. If you file requires other classes than the main one to run, i.e. error classes ...etc then create a folder with
  29. the same name as the main class and put the file(s) in there.
  30. You're new class will probably need documentation, so you should checkout vlibdocs from CVS and create a new XML file.
  31. The easiest way is to do this is to probably copy one of the other files and modify it. The docs used by vLIB are in
  32. Aurigadoc format, download it at http://aurigadoc.sourceforge.net.
  33. Whenever you make a change, however small, make a note in the CHANGELOG.txt file. Briefly describe what you've done and
  34. put your name and the date on it (the date is in YYYY-MM-DD format to avoid confusion). When you commit the changelog back
  35. to CVS, just use '.' as the message.
  36. ----------------------------------------------------------------------------------------------------------------------------
  37. If you have any other questions, then please email vlib@activefish.com or visit http://vlib.activefish.com/forum/ and leave
  38. a message.