Repository navigation
Expand file tree
/
Copy pathContributionTopic.php
More file actions
120 lines (67 loc) · 2.64 KB
/
Copy pathContributionTopic.php
File metadata and controls
120 lines (67 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
/**
This is an auto-generated file,
Please DO NOT modify this file directly.
*/
namespace PhpBrew\Topic;
use CLIFramework\Topic\GitHubTopic;
class ContributionTopic extends GitHubTopic {
public $id = 'contribution';
public $url = 'https://github.com/phpbrew/phpbrew/wiki/Contribution.md';
public $title = 'Contribution';
public function getRemoteUrl() {
return $this->remoteUrl;
}
public function getId() {
return $this->id;
}
public function getContent() {
return '### Before You Start Your Work
Please discuss your idea first on GitHub issues with us before sending your pull request for new features and design.
To develop new features, please checkout `develop` branch for development.
For bug fix, you may fix it directly on `master`.
#### Development Policy
- Don\'t add too many dependencies just for few features.
- You should keep the compiled phar file (phpbrew.phar) as small as possible.
- You should add an unit test for the newly added feature.
- PRs should pass the travis-ci tests, your PR can get merged sooner if your PR passed these tests.
- Please follow the current coding style in PHPBrew.
- Don\'t replace under-layer components just for replacing components. The replacement MUST be for new obvious features.
#### Pull Request Proposal
Please describe the details of your PR. For new features, please consult the PR template below:
```
## Purpose
Describe the purpose of this PR.
## Changes
Describe the changes of this PR.
## Effect
Is there any effect if we merge this PR.
## Tests
The unit tests of this PR.
## Usage
How to enable/use this feature
```
### Setup Your Development Environment
#### Installing the dependencies
$ composer install --dev
#### Changing Shell Script
The main shell script is in `phpbrew.sh`, you may modify it then re-source it in your shell:
source phpbrew.sh
If everything works fine, you may update it to the InitCommand class:
scripts/update-init-script
#### Changing PHP Code
If you need to modify PHP source, you may run `bin/phpbrew` to test your code:
php bin/phpbrew {command}
If everything works fine, you may re-compile the phpbrew phar file:
scripts/compile
The compilation needs `onion` to do the job, please download onion from http://github.com/c9s/Onion
### PHP Release channels
- http://snaps.php.net/
- http://www.php.net/releases/
- http://downloads.php.net/stas/
### Build Status
master: [](https://travis-ci.org/phpbrew/phpbrew)
develop: [](https://travis-ci.org/phpbrew/phpbrew)
';
}
}