-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
174 lines (158 loc) · 11.2 KB
/
Copy pathindex.html
File metadata and controls
174 lines (158 loc) · 11.2 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>php-build — build any version of PHP from source</title>
<meta name="description" content="php-build compiles PHP from source and installs versions in parallel, standalone or as a phpenv plugin. Fully automatic.">
<meta property="og:title" content="php-build">
<meta property="og:description" content="Build any version of PHP from source and run them side by side. Fully automatic.">
<meta property="og:type" content="website">
<link rel="stylesheet" href="stylesheets/style.css">
</head>
<body>
<div class="container">
<nav>
<span class="brand">php-build</span>
<div class="nav-links">
<a href="#install">Install</a>
<a href="#usage">Usage</a>
<a href="#deps">Dependencies</a>
<a href="#license">License</a>
<a href="https://github.com/php-build/php-build">GitHub</a>
</div>
</nav>
<header class="hero">
<div class="hero-copy">
<p class="eyebrow">PHP from source</p>
<h1>Every version of <b>PHP</b>, built and run side by side.</h1>
<p>php-build compiles PHP from source and installs versions in parallel, standalone or as a phpenv plugin. Fully automatic.</p>
<div class="cta">
<a class="btn btn-primary" href="#install">Get started</a>
<a class="btn" href="https://github.com/php-build/php-build">View on GitHub</a>
</div>
</div>
<div class="term" aria-hidden="true">
<div class="term-bar">
<span class="dot"></span><span class="dot"></span><span class="dot g"></span>
<span class="term-title">bash — php-build</span>
</div>
<div class="term-body">
<div><span class="p">$ </span><span class="c">phpenv install 8.3.0</span></div>
<div class="o">Downloading php-8.3.0.tar.bz2...</div>
<div class="o">Building php-8.3.0 (this may take a while)...</div>
<div class="o" style="color:var(--green)">Installed 8.3.0 to ~/.phpenv/versions/8.3.0</div>
<div><span class="p">$ </span><span class="c">phpenv global 8.3.0</span></div>
<div><span class="p">$ </span><span class="c">php -v</span></div>
<div class="o">PHP 8.3.0 (cli)<span class="cursor"></span></div>
</div>
</div>
</header>
<section>
<div class="cards">
<div class="card"><h3>Parallel versions</h3><p>Install 5.6 through 8.x at once and pin a version per project. No system-wide clobbering.</p></div>
<div class="card"><h3>From source</h3><p>Compiles each release from source with your own configure options and build environment.</p></div>
<div class="card"><h3>phpenv native</h3><p>Drops in as a phpenv plugin so <code>phpenv install</code> just works, or run it fully standalone.</p></div>
<div class="card"><h3>Definition driven</h3><p>Version recipes live as definitions. List, extend, or add your own build targets.</p></div>
</div>
</section>
<section id="install">
<p class="eyebrow">Install</p>
<h2>Two ways in</h2>
<p class="step-label"><b>1.</b> As a phpenv plugin — the installer wires up phpenv and php-build together:</p>
<div class="code">
<button class="copy" type="button" aria-label="Copy to clipboard"><svg class="i i-copy" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg><svg class="i i-check" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg></button>
<pre><code><span class="prompt">$ </span>curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-installer | bash</code></pre>
</div>
<p class="step-label"><b>2.</b> Standalone — clone and install to a prefix you control:</p>
<div class="code">
<button class="copy" type="button" aria-label="Copy to clipboard"><svg class="i i-copy" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg><svg class="i i-check" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg></button>
<pre><code><span class="prompt">$ </span>git clone https://github.com/php-build/php-build.git
<span class="prompt">$ </span>cd php-build
<span class="prompt">$ </span>PREFIX=$HOME/local ./install.sh</code></pre>
</div>
</section>
<section id="usage">
<p class="eyebrow">Usage</p>
<h2>Build a version</h2>
<div class="code">
<button class="copy" type="button" aria-label="Copy to clipboard"><svg class="i i-copy" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg><svg class="i i-check" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg></button>
<pre><code>php-build --help
php-build --definitions
php-build [-i <environment_or_inifile>] <definition> <prefix></code></pre>
</div>
<p class="step-label">Build 8.3.0 in development configuration into a chosen prefix:</p>
<div class="code">
<button class="copy" type="button" aria-label="Copy to clipboard"><svg class="i i-copy" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg><svg class="i i-check" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg></button>
<pre><code><span class="prompt">$ </span>php-build -i development 8.3.0 ~/local/php/8.3.0</code></pre>
</div>
</section>
<section id="deps">
<p class="eyebrow">Before your first build</p>
<h2>Build dependencies</h2>
<div class="cards">
<div class="card">
<h3>Debian / Ubuntu</h3>
<div class="code" style="margin-top:0.8rem">
<button class="copy" type="button" aria-label="Copy to clipboard"><svg class="i i-copy" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg><svg class="i i-check" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg></button>
<pre><code><span class="prompt">$ </span>sudo apt-get install -y \
autoconf bison re2c pkg-config \
libxml2-dev libssl-dev libcurl4-openssl-dev \
libreadline-dev libzip-dev libsqlite3-dev</code></pre>
</div>
</div>
<div class="card">
<h3>macOS (Homebrew)</h3>
<div class="code" style="margin-top:0.8rem">
<button class="copy" type="button" aria-label="Copy to clipboard"><svg class="i i-copy" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg><svg class="i i-check" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="20 6 9 17 4 12"/></svg></button>
<pre><code><span class="prompt">$ </span>brew install pkg-config autoconf \
openssl icu4c re2c bison libzip</code></pre>
</div>
</div>
</div>
</section>
<section>
<p class="eyebrow">Maintainers</p>
<h2>Core team</h2>
<div class="team">
<a href="https://github.com/CHH">Christoph Hochstrasser</a>
<a href="https://github.com/Madumlao">Mark David Dumlao</a>
<a href="https://github.com/Debo">Marco De Bortoli</a>
<a href="https://github.com/mzch">Koichi Matsumoto</a>
<a href="https://github.com/GrahamCampbell">Graham Campbell</a>
</div>
</section>
<section id="license">
<p class="eyebrow">Legal</p>
<h2>License</h2>
<p>php-build is released under the MIT License. Copyright © 2011–2015 Christoph Hochstrasser.</p>
<details class="license">
<summary>Read the full license</summary>
<pre>The MIT License (MIT)
Copyright (c) 2011-2015 Christoph Hochstrasser
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.</pre>
</details>
</section>
<footer>
<span>./ php-build — <a href="#license">MIT License</a>, © 2011–2015 Christoph Hochstrasser</span>
<span><a href="https://github.com/php-build/php-build">github.com/php-build/php-build</a></span>
</footer>
</div>
<span id="copy-status" class="sr-only" role="status" aria-live="polite"></span>
<script src="javascripts/main.js"></script>
</body>
</html>