Recommend this page to a friend! |
Classes of LAGGOUNE Walid | MongoDB Queue PHP Query Execute | vendor/mongodb/mongodb/CONTRIBUTING.md | Download |
|
DownloadContributing to the PHP Library for MongoDBInitializing the RepositoryDevelopers who would like to contribute to the library will need to clone it and initialize the project dependencies with Composer:
In addition to installing project dependencies, Composer will check that the required extension version is installed. Directions for installing the extension may be found here. Installation directions for Composer may be found in its Getting Started guide. TestingThe library's test suite uses PHPUnit, which should be installed as a development dependency by Composer. The test suite may be executed with:
The Checking coding standardsThe library's code is checked using PHP_CodeSniffer, which is installed as a development dependency by Composer. Due to the PHP requirement, the base version of the coding standard is not installed and needs to be added manually if you plan to contributing code:
Once the coding standard has been installed, you can check the code for style errors:
To automatically fix all fixable errors, use the
DocumentationDocumentation for the library lives in the That said, any changes to the documentation should be tested locally before committing. Follow the following steps to build the docs locally with the tools repository: * Clone the
mongodb/docs-php-library tools
repository.
* Install giza, as noted in the tools
README.
* Sync your working copy of the documentation to the ReleasingThe follow steps outline the release process for a maintenance branch (e.g.
releasing the Ensure PHP version compatibilityEnsure that the library test suite completes on supported versions of PHP. Transition JIRA issues and versionAll issues associated with the release version should be in the "Closed" state and have a resolution of "Fixed". Issues with other resolutions (e.g. "Duplicate", "Works as Designed") should be removed from the release version so that they do not appear in the release notes. Check the corresponding ".x" fix version to see if it contains any issues that are resolved as "Fixed" and should be included in this release version. Update the version's release date and status from the Manage Versions page. Update version infoThe PHP library uses semantic versioning. Do not break backwards compatibility in a non-major release or your users will kill you. Before proceeding, ensure that the Tag releaseThe maintenance branch's HEAD will be the target for our release tag:
Push tags
Merge the maintenance branch up to master
The Publish release notesThe following template should be used for creating GitHub release notes via this form.
The URL for the list of resolved JIRA issues will need to be updated with each release. You may obtain the list from this form. If commits from community contributors were included in this release, append the following section:
Release announcements should also be sent to the Consider announcing each release on Twitter. Significant releases should also be announced via @MongoDB as well. |