You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,25 +10,28 @@ RawPHP is powerful and robust PHP framework that helps people from different PHP
10
10
RawPHP comes with complete user authentication system built-in and ready to use out of the box.
11
11
12
12
## Installation
13
+
There are two ways to install RawPHP:
13
14
14
-
It's recommended that you use [Composer](https://getcomposer.org/)to install RawPHP.
15
+
* The first way is to clone `https://github.com/rawphp-framework/rawphp.git` into your local machine, then CD into it and run `composer install` in your command line. If you don't have composer already installed in your system, do download and installed [Composer](https://getcomposer.org/).
15
16
16
-
```bash
17
-
$ composer require partner/rawphp "^1.0"
17
+
* The second way is to use [Composer](https://getcomposer.org/) to install RawPHP.
18
+
Navigate to the folder you wish to install RawPHP, then run the below code in your command line
19
+
```
20
+
$ composer require partner/rawphp
18
21
```
19
22
20
-
Otherwise, you can just clone this repository into your local machine, then CD into it and run `composer install` in your command line.
21
23
22
-
This will install RawPHP and all required dependencies. RawPHP requires PHP 5.5.0 or newer.
24
+
Both methods install RawPHP and all required dependencies. RawPHP requires PHP 5.5.0 or newer.
23
25
24
26
## Usage
25
27
28
+
There are two ways to run RawPHP
26
29
### PHP's inbuilt server
27
30
After RawPHP has installed, you can run it by using the built-in PHP server. Navigate to the root folder and run the below command:
28
31
```bash
29
32
$ php -S localhost:8000 -t public
30
33
```
31
-
Going to http://localhost:8000/hello/world will now display "Hello, world".
34
+
Going to http://localhost:8000/ will now display your default Homepage.
32
35
33
36
### Wamp, LAMP or XAMP server
34
37
Otherwise, you can just put it in your wamp/www or xxamp htdocs folder and access it by visiting the url on your browser `localhost/your-rawphp-folder/public
@@ -44,6 +47,7 @@ To execute the test suite, you'll need phpunit.
44
47
$ phpunit
45
48
```
46
49
50
+
Now you have a copy of RawPHP and it's working fine, you'll need to setup your RawPHP database to complete this installation. The full [installation instructions are here](https://github.com/rawphp-framework/rawphp-docs/blob/master/docs/start/installation.md) . Enjoy.
47
51
## Contributing
48
52
49
53
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
0 commit comments