@@ -15,7 +15,17 @@ It implements the the Model-View-Controller (MVC) design pattern and principles,
15
15
and data layers. It provides an architecture, components and tools for developers to build a complex web applications
16
16
faster and safer.
17
17
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
19
29
20
30
Please make sure the release file is unpacked under a web-accessible directory.
21
31
You will see the following files and directories:
@@ -33,6 +43,31 @@ You will see the following files and directories:
33
43
README this file
34
44
UPDATE updating instructions
35
45
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
+
36
71
## Requirements
37
72
38
73
The minimum requirement by ApPHP is that your Web server supports PHP 5.4.0 or
0 commit comments