@@ -15,7 +15,17 @@ It implements the the Model-View-Controller (MVC) design pattern and principles,
1515and data layers. It provides an architecture, components and tools for developers to build a complex web applications
1616faster and safer.
1717
18- ## Installation
18+ ## Installing ApPHP Framework via Composer
19+
20+ You can install ApPHP into your project using [ Composer] ( https://getcomposer.org ) .
21+ If you're starting a new project, we recommend using the [ Directy CMF] ( https://github.com/apphp/directy-cmf ) as
22+ a starting point. For installing new version in existing applications you can run the following:
23+
24+ ``` bash
25+ $ composer require apphp/php-mvc-framework
26+ ```
27+
28+ ## Manual installation of ApPHP Framework
1929
2030Please make sure the release file is unpacked under a web-accessible directory.
2131You will see the following files and directories:
@@ -33,6 +43,31 @@ You will see the following files and directories:
3343 README this file
3444 UPDATE updating instructions
3545
46+ ## Running Tests
47+
48+ Assuming you have PHPUnit installed system wide using one of the methods stated
49+ [ here] ( https://phpunit.de/manual/current/en/installation.html ) , you can run the
50+ tests for ApPHP Framework by doing the following:
51+
52+ 1 . Install composer on your server.
53+ 2 . After Composer is installed, install PHPUnit by
54+ ``` bash
55+ composer remove phpunit/phpunit --dev
56+ composer update
57+ ```
58+ 2 . Make sure you added following to <strong >composer.json</strong > file:
59+ ``` bash
60+ " scripts" : {
61+ " tests-result" : " phpunit --colors=always --log-junit test-results.xml" ,
62+ " tests" : " phpunit --colors=always" ,
63+ " test" : " phpunit --colors=always --filter"
64+ }
65+ ```
66+ 4 . Run ` phpunit ` by:
67+ ``` bash
68+ composer tests
69+ ```
70+
3671## Requirements
3772
3873The minimum requirement by ApPHP is that your Web server supports PHP 5.4.0 or
0 commit comments