summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/GettingStarted/Installation.page
blob: 956f53c2269b2e2b397fb6c6b40596294fbc43de (plain)
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
<com:TContent ID="body" >
<h1 id="301">Installing PRADO</h1>
<div id="install-info" class="block-content">
<p id="30018">
If you are viewing this page from your own Web server, you are already done with the installation.
</p>
<p id="30019">
The minimum requirement by PRADO is that the Web server support PHP 5.3.3. PRADO has been tested with Apache Web server on Windows, MacOSX and various Linux distro. Highly possibly it may also run on other platforms with other Web servers, as long as PHP 5.3.3 is supported.
</p>
</div>

<p id="30020">
PRADO can be installed as a standalone package or using <a href="http://getcomposer.org/">composer</a>
</p>
<div id="install-steps" class="block-content">
<h3>Standalone package</h3>
<ol>
<li>Go to <a href="http://www.pradosoft.com/download/">pradosoft.com</a> to grab the latest version of PRADO.</li>
<li>Unpack the PRADO release file to a Web-accessible directory.
</ol>
</div>
<div id="install-after" class="block-content">
<p id="30021">
Your installation of PRADO is done and you can start to play with the demo applications included in the PRADO release via URL <tt>http://web-server-address/prado/demos/</tt>. Here we assume PRADO is unpacked to the <tt>prado</tt> subdirectory under the <tt>DocumentRoot</tt> of the Web server.
</p>
<p id="30022">
If you encounter any problems with the demo applications, please use the PRADO requirement checker script, accessible via <tt>http://web-server-address/prado/requirements/index.php</tt>, to check first if your server configuration fulfills the conditions required by PRADO.
</p>

<div id="install-steps" class="block-content">
<h3>Composer install</h3>
<ol>
<li>If you don't have installed composer already, install it globally:
<com:TTextHighlighter CssClass="source block-content">
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install
</com:TTextHighlighter>
</li>
<li>Create a composer.json file for your project:
<com:TTextHighlighter CssClass="source block-content">
{
    "require": {
        "pradosoft/prado": "~3.2"
    }
}
</com:TTextHighlighter>
</li>
<li>Now run the actual installation:
<com:TTextHighlighter CssClass="source block-content">
$ composer install
</com:TTextHighlighter>
</li>
<li>In your project include the autoloader, and you will have access to the library classes:
<com:TTextHighlighter CssClass="source block-content">
<?php
require_once('vendor/autoload.php');
</com:TTextHighlighter>
</li>
</ol>
</div>

</com:TContent>