Recommend this page to a friend! |
Classes of Duong Huynh Nghia | PHP Slim Framework 3 Modular Application | libraries/vendor/zendframework/zend-permissions-acl/CONTRIBUTING.md | Download |
|
DownloadCONTRIBUTINGRESOURCESIf you wish to contribute to Zend Framework, please be sure to read/subscribe to the following resources: - Coding Standards - Contributor's Guide - ZF Contributor's mailing list:
- ZF Contributor's IRC channel:
If you are working on new features or refactoring create a proposal. Reporting Potential Security IssuesIf you have encountered a potential security vulnerability, please DO NOT report it on the public issue tracker: send it to us at zf-security@zend.com instead. We will work with you to verify the vulnerability and patch it as soon as possible. When reporting issues, please provide the following information:
We request that you contact us via the email address above and give the project contributors a chance to resolve the vulnerability and issue a new release prior to any public exposure; this helps protect users and provides them with a chance to upgrade and/or update in order to protect their applications. For sensitive email communications, please use our PGP key. RUNNING TESTS> ### Note: testing versions prior to 2.4 > > This component originates with Zend Framework 2. During the lifetime of ZF2, > testing infrastructure migrated from PHPUnit 3 to PHPUnit 4. In most cases, no > changes were necessary. However, due to the migration, tests may not run on > versions < 2.4. As such, you may need to change the PHPUnit dependency if > attempting a fix on such a version. To run tests:
You can turn on conditional tests with the phpunit.xml file. To do so: - Copy
Running Coding Standards ChecksThis component uses php-cs-fixer for coding
standards checks, and provides configuration for our selected checks.
To run checks only:
To have
If you allow php-cs-fixer to fix CS issues, please re-run the tests to ensure they pass, and make sure you add and commit the changes after verification. Recommended Workflow for ContributionsYour first step is to establish a public repository from which we can pull your work into the master repository. We recommend using GitHub, as that is where the component is already hosted.
Keeping Up-to-DatePeriodically, you should update your fork or personal repository to match the canonical ZF repository. Assuming you have setup your local repository per the instructions above, you can do the following:
If you're tracking other branches -- for example, the "develop" branch, where new feature development occurs -- you'll want to do the same operations for that branch; simply substitute "develop" for "master". Working on a patchWe recommend you do each new feature or bugfix in a new branch. This simplifies the task of code review as well as the task of merging your changes into the canonical repository. A typical workflow will then consist of the following:
The mechanics of this process are actually quite trivial. Below, we will create a branch for fixing an issue in the tracker.
... do some work ...
... write your log message ...
To send a pull request, you have two options. If using GitHub, you can do the pull request from there. Navigate to your repository, select the branch you just created, and then select the "Pull Request" button in the upper right. Select the user/organization "zendframework" as the recipient. If using your own repository - or even if using GitHub - you can use `git
format-patch` to create a patchset for us to apply; in fact, this is
recommended for security-related patches. If you use
What branch to issue the pull request against?Which branch should you issue a pull request against?
Branch CleanupAs you might imagine, if you are a frequent contributor, you'll start to get a ton of branches both locally and on your remote. Once you know that your changes have been accepted to the master repository, we suggest doing some cleanup of these branches.
|