|
25 | 25 | <a id="code-lic"></a> |
26 | 26 | <h2>PHP Codebase</h2> |
27 | 27 |
|
28 | | -<ul> |
| 28 | +<p> |
| 29 | + PHP is available for use under the terms of the |
| 30 | + <a href="#bsd-3-clause">Modified BSD License</a>, also known as the PHP |
| 31 | + License, version 4. |
| 32 | +</p> |
| 33 | + |
| 34 | +<p> |
| 35 | + The Modified BSD License is an <a href="https://opensource.org/osd">Open |
| 36 | + Source license</a>, |
| 37 | + <a href="https://opensource.org/license/bsd-3-clause">approved by the Open |
| 38 | + Source Initiative</a>, and |
| 39 | + <a href="https://directory.fsf.org/wiki/License:BSD-3-Clause">compatible with |
| 40 | + the GNU General Public License (GPL)</a>. It is a |
| 41 | + <a href="https://en.wikipedia.org/wiki/Permissive_software_license">permissive</a> |
| 42 | + software license that does not have the |
| 43 | + <a href="https://en.wikipedia.org/wiki/Copyleft">copyleft</a> restrictions |
| 44 | + associated with licenses like the GNU GPL. Its SPDX identifier is |
| 45 | + <a href="https://spdx.org/licenses/BSD-3-Clause.html"><code>BSD-3-Clause</code></a>. |
| 46 | +</p> |
| 47 | + |
| 48 | +<p> |
| 49 | + Some files in PHP software have been contributed under other compatible |
| 50 | + licenses and may carry additional requirements and copyright information. |
| 51 | + This is indicated in the license/copyright comment block at the top of each |
| 52 | + source file. Sometimes the license terms are included in a separate license |
| 53 | + file in the same directory as the source file. |
| 54 | +</p> |
| 55 | + |
| 56 | +<a id="bsd-3-clause"></a> |
| 57 | +<h3>License</h3> |
| 58 | + |
| 59 | +<p> |
| 60 | + Copyright © The PHP Group and Contributors.<br> |
| 61 | + Copyright © Zend Technologies Ltd., a subsidiary company of Perforce |
| 62 | + Software, Inc. |
| 63 | +</p> |
| 64 | + |
| 65 | +<p> |
| 66 | + Redistribution and use in source and binary forms, with or without |
| 67 | + modification, are permitted provided that the following conditions are met: |
| 68 | +</p> |
| 69 | + |
| 70 | +<ol> |
29 | 71 | <li> |
30 | | - Starting with PHP 4, versions of the PHP software are distributed under the |
31 | | - <a href="http://www.php.net/license/3_01.txt">PHP License v3.01</a>, copyright (c) the <a href="/credits.php">PHP Group</a>. |
32 | | - <ul> |
33 | | - <li> |
34 | | - This is an <a href="http://www.opensource.org/docs/osd">Open Source license</a>, |
35 | | - certified by the Open Source Initiative. |
36 | | - </li> |
37 | | - <li> |
38 | | - The PHP license is a BSD-style license which does not have the "copyleft" |
39 | | - restrictions associated with GPL. |
40 | | - </li> |
41 | | - </ul> |
| 72 | + Redistributions of source code must retain the above copyright notice, |
| 73 | + this list of conditions and the following disclaimer. |
42 | 74 | </li> |
43 | 75 | <li> |
44 | | - Some files have been contributed under other (compatible) licenses and carry |
45 | | - additional requirements and copyright information.<br> |
46 | | - This is indicated in the license + copyright comment block at the top of the source file. |
| 76 | + Redistributions in binary form must reproduce the above copyright notice, |
| 77 | + this list of conditions and the following disclaimer in the documentation |
| 78 | + and/or other materials provided with the distribution. |
47 | 79 | </li> |
48 | 80 | <li> |
49 | | - Practical Guidelines: |
| 81 | + Neither the name of the copyright holder nor the names of its |
| 82 | + contributors may be used to endorse or promote products derived from |
| 83 | + this software without specific prior written permission. |
| 84 | + </li> |
| 85 | +</ol> |
| 86 | + |
| 87 | +<p> |
| 88 | + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 89 | + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 90 | + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 91 | + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| 92 | + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 93 | + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 94 | + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 95 | + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 96 | + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 97 | + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 98 | + POSSIBILITY OF SUCH DAMAGE. |
| 99 | +</p> |
| 100 | + |
| 101 | +<h3>Practical Guidelines</h3> |
| 102 | + |
50 | 103 | <ul> |
51 | 104 | <li><a href="/license/distrib-guidelines-code.php">Distributing PHP</a></li> |
52 | 105 | <li><a href="/license/contrib-guidelines-code.php">Contributing to PHP</a></li> |
53 | 106 | </ul> |
54 | | - </li> |
55 | | -</ul> |
| 107 | + |
| 108 | +<h3>Earlier Versions</h3> |
| 109 | + |
| 110 | +<p> |
| 111 | + Earlier versions of PHP software were distributed under the terms of |
| 112 | + versions <a href="/license/2_01.txt">2.01</a>, |
| 113 | + <a href="/license/2_02.txt">2.02</a>, <a href="/license/3_0.txt">3.0</a>, and |
| 114 | + <a href="/license/3_01.txt">3.01</a> of the PHP License. At your option, you |
| 115 | + may choose to use any earlier version of PHP software under the terms of the |
| 116 | + <a href="/license/4_0.txt">PHP License, version 4</a>. This is in accordance |
| 117 | + with section 5 of the PHP License, versions 3.0 and 3.01, and section 4 of |
| 118 | + the PHP License, versions 2.01 and 2.02 (emphasis added): |
| 119 | +</p> |
| 120 | + |
| 121 | +<blockquote> |
| 122 | + <p> |
| 123 | + Once covered code has been published under a particular version of the |
| 124 | + license, you may always continue to use it under the terms of that version. |
| 125 | + <b>You may also choose to use such covered code under the terms of any |
| 126 | + subsequent version</b> of the license published by the PHP Group. |
| 127 | + </p> |
| 128 | +</blockquote> |
56 | 129 |
|
57 | 130 | <a id="doc-lic"></a> |
58 | 131 | <h2>PHP Documentation</h2> |
|
97 | 170 | <p> |
98 | 171 | <strong>A.</strong> |
99 | 172 | We cannot really stop you from using PHP in the name of |
100 | | -your project unless you include any code from the PHP distribution, in |
101 | | -which case you would be violating the license. |
102 | | -See Clause 4 in the <a href="http://www.php.net/license/3_01.txt"> |
103 | | -PHP License v3.01</a>. |
104 | | -<br>But we would really prefer if people would come up with their own names |
| 173 | +your project, |
| 174 | +but we would prefer you come up with your own name |
105 | 175 | independent of the PHP name. |
106 | 176 | </p> |
107 | 177 |
|
108 | 178 | <p> |
109 | | -"Why?" you ask. You are only trying to contribute to the PHP |
110 | | -community. That may be true, but by using the PHP name you are |
111 | | -explicitly linking your efforts to those of the entire PHP development |
| 179 | +"PHP" is the PHP project's unique brand. When others see the name "PHP," they |
| 180 | +associate it with this project. When you use "PHP" as part of your software's |
| 181 | +name, you are linking your efforts to those of the entire PHP development |
112 | 182 | community and the years of work that has gone into the PHP project. |
113 | | -Every time a flaw is found in one of the thousands of applications out |
114 | | -there that call themselves "PHP-Something" the negative karma that |
115 | | -generates reflects unfairly on the entire PHP project. We had nothing |
116 | | -to do with PHP-Nuke, for example, and every bugtraq posting on that |
117 | | -says "PHP" in it. Your particular project may in fact be the greatest |
118 | | -thing ever, but we have to be consistent in how we handle these |
119 | | -requests and we honestly have no way of knowing whether your project |
120 | | -is actually the greatest thing ever. |
121 | 183 | </p> |
122 | 184 |
|
123 | 185 | <p> |
124 | | -So, please, pick a name that stands on its own merits. If your |
125 | | -stuff is good, it will not take long to establish a reputation for |
126 | | -yourselves. Look at Zope, for example, that is a framework for Python |
127 | | -that doesn't have Python in the name. Smarty as well doesn't have PHP |
128 | | -in the name and does quite well. |
| 186 | +Additionally, using "PHP" in your project's name causes a lot of confusion, |
| 187 | +making it more difficult for people to find your project or get help with it. |
| 188 | +Inevitably, people looking for your project will open issues on the PHP |
| 189 | +project's issue tracker, taking up the valuable time of our volunteers. |
| 190 | +</p> |
| 191 | + |
| 192 | +<p> |
| 193 | +So, please, pick a name that stands on its own merits. If others find your |
| 194 | +project useful, it will not take long to establish a reputation for |
| 195 | +yourself. |
| 196 | +</p> |
| 197 | + |
| 198 | +<h3>Change in licensing from PHP 8.6 and later</h3> |
| 199 | + |
| 200 | +<p> |
| 201 | +<strong>Q.</strong> What are the differences between the PHP License, version |
| 202 | +3.01, and the PHP License, version 4? |
| 203 | +</p> |
| 204 | + |
| 205 | +<p> |
| 206 | +<strong>A.</strong> The PHP License, version 4 removes clauses 4, 5, and 6 of |
| 207 | +the PHP License, version 3.01. This makes it effectively identical to the |
| 208 | +Modified BSD License (<code>BSD-3-Clause</code>). |
| 209 | +</p> |
| 210 | + |
| 211 | +<p> |
| 212 | +While the Open Source Initiative (OSI) approved versions 3.0 and 3.01 of the |
| 213 | +PHP License through their legacy approval process, the licenses were not |
| 214 | +compatible with the GPL. Additionally, clauses 4 and 6 were challenging or |
| 215 | +impossible to enforce, and various readings and interpretations sometimes |
| 216 | +caused confusion among distributors. As a result, the PHP Group decided to |
| 217 | +invoke clause 5 of the PHP License to publish a new version. The new version |
| 218 | +resolves all problems with the PHP License (perceived or actual) while |
| 219 | +preserving the rights granted by contributors and the rights granted to users. |
| 220 | +</p> |
| 221 | + |
| 222 | +<p> |
| 223 | +<strong>Q.</strong> Is the source code in the <code>Zend/</code> directory |
| 224 | +still licensed under the separate Zend Engine License? |
| 225 | +</p> |
| 226 | + |
| 227 | +<p> |
| 228 | +<strong>A.</strong> No. At the same time the PHP Group published a new version |
| 229 | +of the PHP License, Zend Technologies Ltd., a subsidiary of Perforce Software, |
| 230 | +Inc., invoked clause 4 of the Zend Engine License, version 2.00, to publish a |
| 231 | +new version of the Zend Engine License. The Zend Engine License, version 3.0, |
| 232 | +removes clauses 4, 5, and 6 of the Zend Engine License, making it effectively |
| 233 | +identical to the Modified BSD License (<code>BSD-3-Clause</code>). |
| 234 | +</p> |
| 235 | + |
| 236 | +<p> |
| 237 | +<strong>Q.</strong> Can I still use the PHP License or Zend Engine License for |
| 238 | +my own projects? |
| 239 | +</p> |
| 240 | + |
| 241 | +<p> |
| 242 | +<strong>A.</strong> You can, but you shouldn't. The PHP License and Zend |
| 243 | +Engine License are deprecated and considered legacy licenses. They are not |
| 244 | +recommended for use in new projects. Instead, consider using a similar |
| 245 | +license, like the Apache License, Modified BSD License, GNU Lesser General |
| 246 | +Public License (LGPL), or MIT License. <em>This is not legal advice; please |
| 247 | +consult with a lawyer before adopting or making any changes to your |
| 248 | +license.</em> |
129 | 249 | </p> |
130 | 250 |
|
131 | 251 | <h3>Change in licensing from PHP 4 onwards</h3> |
|
137 | 257 | <p> |
138 | 258 | <strong>A.</strong> GPL enforces many restrictions on what can and cannot |
139 | 259 | be done with the licensed code. The PHP developers decided to |
140 | | -release PHP under a much more loose license (Apache-style), to help |
141 | | -PHP become as popular as possible. |
| 260 | +release PHP under a much more permissive license (BSD-style) to allow |
| 261 | +broader uses of PHP by more people. |
142 | 262 | </p> |
143 | 263 |
|
144 | 264 | <a id="other-lic"></a> |
|
0 commit comments