Contributing to the Zend Framework – Getting Started
- 1 Read the Zend Framework License
- 2 Sign a Contributor License Agreement
- 3 Subscribe to the appropriate mailing lists
- 4 Review the Coding Standards
- 5 Learn PHPUnit
- 6 Contribute to the Wiki
- 7 Review and Submit Proposals
- 8 Report, work on, resolve issues in the Issue Tracker
- 9 Review SVN Commits
- 10 Contribute Code
- 11 Best Practices
Read the Zend Framework License
The license is BSD based and can be found at http://framework.zend.com/license.
Sign a Contributor License Agreement
To contribute source code or documentation into the framework at any level (from a few lines, through a patch, to a full set of classes), you must first sign the Contributor License Agreement. This will also give you access to become a developer in the issue tracking system and the developer's wiki.
Subscribe to the appropriate mailing lists
| List | Subscription Address | Archives |
|---|---|---|
| General | fw-general-subscribe@lists.zend.com | http://www.zend.com/lists/fw-general/ and now also in the wiki at: http://framework.zend.com/wiki/spaces/viewmailarchive.action?key=ZFDEV |
| Documentation | fw-docs-subscribe@lists.zend.com | |
| Announcements | fw-announce-subscribe@lists.zend.com | |
| SVN commits | fw-svn-subscribe@lists.zend.com | http://framework.zend.com/fisheye/browse/Zend_Framework/ |
Also note that [RSS feeds and custom event notifications] are available from our systems.
Review the Coding Standards
All framework code is covered by the [Zend Framework PHP Coding Standard]. Learn them, love them, live them.
Please "watch" the page above using the "envelope" icon on the upper right side of the page. The Confluence Wiki has a robust email notification system, accessed through your "Preferences" after logging in. From there, click on the "Watches" folder tab, and see the link to "email preferences".
Learn PHPUnit
Development in the framework is backed by extensive unit testing. We use PHPUnit extensively as our testing framework. For code to be accepted, it must be tested and covered by a unit test.
Developers are expected to keep documentation and unit tests in sync with changes to code.
Contribute to the Wiki
| Topic | URL |
|---|---|
| Framework Development |
http://framework.zend.com/wiki/display/ZFDEV |
| Proposals | http://framework.zend.com/wiki/display/ZFPROP |
| End-User Wiki | http://framework.zend.com/wiki/display/ZFUSER |
Review and Submit Proposals
Proposals are contributed by developers and end-users of the Zend Framework. Our proposal wiki space shows the current status of proposals and manages the review process. Submit new proposals here, or help review other submissions as part of our collective intelligence.
Report, work on, resolve issues in the Issue Tracker
The Zend Framework Issue Tracker is the place to submit issues of all types. This includes bugs, change requests, feature requests (if large enough, they could be submitted as a proposal), and small patches. It is also the place to track the release roadmap and view the current status of framework components.
Please read the [Zend Framework Issue Tracker Etiquette] before working on issues.
Review SVN Commits
As code comes into SVN, it is displayed in our Fisheye browser with the change sets listed with full diffs. Review commits and double check the work of others. The more eyes, the better. This is also a great way to get a feel for the framework coding style and culture.
Contribute Code
Code can be submitted as patches (via the issue tracker), or directly to SVN. See user-contributed notes for how to make patches. Component leads and significant contributors are given direct access to the SVN repositories. If you find yourself constantly submitting patches and having the need for greater access, ask and your request will be considered. Please read the [Zend Framework Subversion Standards] before submitting new code via SVN.
Best Practices
API changes should be committed in parallel with updated documentation.
Factory classes should be avoided by default, and used only when sufficient need exists. Often, factory methods can exist in a common superclass or in the class of the objects produced by the factory.