Skip to content

Commit 6dab7c8

Browse files
committed
Added instructions how to download phar file for PHP 5.4
1 parent 4ebc556 commit 6dab7c8

File tree

3 files changed

+86
-14
lines changed

3 files changed

+86
-14
lines changed

install.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,23 @@ <h4>Follow QuickStart Guide to Install and execute your first test in 6 easy
3535
<div class="well">
3636
<h3>Phar</h3>
3737
<a class="btn btn-lg btn-success" href="/thanks"><span class="btn-label">Download Codeception</span></a>
38-
<p>Grab Codeception phar executable</p>
38+
<p>Alternatively download it from console</p>
3939
<div>
4040
<p>
4141
<pre><code>wget http://codeception.com/codecept.phar</code></pre>
4242
</p>
4343
</div>
44+
<p>If you are using PHP 5.4 or PHP 5.5 < 5.5.9.</p>
45+
<a class="btn btn-lg btn-success" href="/thanks_php54"><span class="btn-label">Download Codeception</span></a>
46+
<p>Alternatively download it from console</p>
47+
<div>
48+
<p>
49+
<pre><code>wget http://codeception.com/php54/codecept.phar</code></pre>
50+
</p>
51+
</div>
52+
<p>If you are using PHP 5.3 <a href="/builds">Download latest version of Codeception 1.8.x</a></p>
4453

4554

46-
<div class="alert alert-warning">Codeception 2.0 and higher requires PHP 5.4 installed. <a href="/builds">Download latest version of Codeception 1.8.x</a> if you run PHP 5.3</div>
47-
4855
<p>Prepare tests directory and configs</p>
4956
<div>
5057
<p>

quickstart.html

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,36 @@ <h1>Codeception Quickstart Guide</h1>
1717
<div class="panel-body">
1818

1919
<div class="container">
20-
<div class="col-sm-6 col-lg-6">
21-
22-
<p>Download and save the
23-
<b>phar</b> archive to the root of your web application.&nbsp;</p>
24-
<a class="btn btn-lg btn-success" href="/thanks" target="_blank">Download Codeception</a>
20+
<div class="col-sm-6 col-lg-6">
21+
<p>Download and save the
22+
<b>phar</b> archive to the root of your web application.&nbsp;</p>
23+
<a class="btn btn-lg btn-success" href="/thanks" target="_blank">Download Codeception</a>
24+
25+
<p class="text-muted">Alternatively download it from console</p>
26+
<div>
27+
<pre><code>wget http://codeception.com/codecept.phar</code></pre>
28+
</div>
29+
</div>
2530

26-
<p class="text-muted">Alternatively download it from console</p>
27-
<div>
28-
<pre><code>wget http://codeception.com/codecept.phar</code></pre>
29-
</div>
31+
<div class="col-sm-6 col-lg-6">
32+
<p>If you are using PHP 5.4 or PHP 5.5 < 5.5.9.</p>
33+
<a class="btn btn-lg btn-success" href="/thanks_php54" target="_blank">Download Codeception</a>
3034

35+
<p class="text-muted">Alternatively download it from console</p>
36+
<div>
37+
<pre><code>wget http://codeception.com/php54/codecept.phar</code></pre>
38+
</div>
39+
</div>
3140

32-
</div>
33-
<div class="col-sm-6 col-lg-6">
41+
<div class="col-sm-6 col-lg-6">
3442
Install via Composer
3543

3644
<pre><code>php composer.phar require "codeception/codeception:*"</code></pre>
3745

3846
<p>Use <code>./vendor/bin/codecept</code> instead of codecept.phar in this case.</p>
3947

4048
</div>
49+
4150
<div class="col-sm-6 col-lg-6">
4251
Install Globally
4352

thanks_php54.html

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<meta name="title" content="Codeception - BDD-style PHP testing framework" />
6+
<title>Thanks for choosing Codeception!</title>
7+
<link rel="shortcut icon" href="/images/favicon.png" />
8+
<link href='http://fonts.googleapis.com/css?family=Philosopher&subset=latin' rel='stylesheet' type='text/css'>
9+
<link rel="stylesheet" type="text/css" media="screen" href="http://codeception.com/css/screen.css" />
10+
11+
<link title="Codeception Blog" type="application/rss+xml" rel="alternate" href="/rss.xml"/>
12+
13+
<script type="text/javascript">
14+
15+
var _gaq = _gaq || [];
16+
_gaq.push(['_setAccount', 'UA-1899308-9']);
17+
_gaq.push(['_trackPageview']);
18+
19+
(function() {
20+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
21+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
22+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
23+
})();
24+
25+
</script>
26+
27+
28+
<meta http-equiv="REFRESH" content="3;url=http://codeception.com/php54/codecept.phar">
29+
30+
</head>
31+
<body>
32+
33+
<div id="root">
34+
35+
<div class="layout">
36+
<div class="content">
37+
38+
<h2>Installation</h2>
39+
<p><strong>1.</strong> Save this file into the root of desired PHP project</p>
40+
41+
<p><strong>2.</strong> Initialize test classes inside the root of your project</p>
42+
<p><code>php codecept.phar bootstrap</code></p>
43+
44+
<p><strong>3.</strong> Write your tests!</p>
45+
<p>Follow <a href="http://codeception.com/docs/02-GettingStarted">Getting Started Guide</a> to perform configuration and write the first test.</p>
46+
47+
<p class="small">Your download is on the way. <a href="http://codeception.com/codecept.phar">Click here</a> if you don't want to wait any longer</p>
48+
49+
50+
</div>
51+
</div>
52+
</div>
53+
54+
55+
</body>
56+
</html>

0 commit comments

Comments
 (0)