-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
83 lines (66 loc) · 4.32 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="description" content="virtphp.github.io : virtPHP website" />
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/version2.css">
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:700,400,200' rel='stylesheet' type='text/css'>
<title>virtPHP</title>
</head>
<body>
<div id="github" onclick="window.location='https://github.com/virtphp/virtphp'">Fork me on GitHub</div>
<div id="download" onclick="window.location='https://github.com/virtphp/virtphp/releases'">Download the Latest</div>
<div id="header">
<div id="logo">
<img src="images/logo_lg.png" border="0" />
</div>
<h2>1 Box, Multiple Elephpants</h2>
<div id="elephants"></div>
</div>
<div id="content">
<div id="video">
<h3>virtPHP - How it works and Live demo</h3>
<iframe width="640" height="480" src="http://www.youtube.com/embed/vQZ_SpTMo24" frameborder="0" allowfullscreen></iframe>
</div>
<div id="content_holder">
<h3>What Is virtPHP?</h3>
<p>virtPHP is a tool for creating and managing multiple isolated PHP environments on a single machine. It's like Python's <a href="http://www.virtualenv.org/en/latest/" target="_blank">virtualenv</a>, but for PHP.</p>
<p>virtPHP creates isolated environments so that you may run any number of PHP development projects, all using different versions of PEAR packages and different PECL extensions. You may even specify a different version of PHP, if your system has various installations of PHP.</p>
<p>To install multiple versions of PHP, we suggest taking a look at the phpenv and php-build projects and using virtPHP with them, to manage multiple virtual PHP environments.</p>
<p>Note: virtPHP is currently only targeted to command line php (php-cli) for *nix based systems.</p>
<p style="background:none;"> </p>
<h3>Installation</h3>
<p>Download the <span class="code">virtphp.phar</span> file from the <a href="https://github.com/virtphp/virtphp/releases" target="_blank">latest release</a> and place it in <span class="code">/usr/local/bin</span> or wherever it's accessible from your <span class="code">PATH</span>.</p>
<p>Optionally, you may clone this repository and build the phar file yourself.</p>
<p style="background:none;"> </p>
<h3>Usage</h3>
<p>virtPHP is a command-line tool. To get started, you'll probably want to check out what it can do. To do this, just execute it without any arguments, like this:</p>
<p><span class="code">php virtphp.phar</span></p>
<p>If you have the phar file set executable (i.e. chmod 755), then you can execute it like this:</p>
<p><span class="code">./virtphp.phar</p>
<p>Or, if it's in your PATH, like this:</p>
<p><span class="code">virtphp.phar</p>
<p>We recommend putting it in your PATH and aliasing it to virtphp, so that you can run it like this:</p>
<p><span class="code">virtphp
<p>For convenience, the following examples will assume you have simply downloaded virtphp.phar and have not placed it in your PATH or set it executable.</p>
<a href="https://github.com/virtphp/virtphp">
<div id="on_github">
<img src="images/github.png" border="0" />
Learn more on GitHub
</div>
</a>
</div>
</div>
</body>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-48622731-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</html>