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
{{ message }}
This repository was archived by the owner on Oct 30, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,30 @@ Requirements
28
28
Usage
29
29
-----
30
30
31
+
### Installation
32
+
33
+
Let's start by downloading composer into our project dir:
34
+
```
35
+
curl -O http://getcomposer.org/composer.phar
36
+
chmod +x composer.phar
37
+
```
38
+
39
+
Now let's tell composer about our project's dependancies, in this case, PHPNats. The way we do this is by creating a composer.json file, and placing it in the root folder of our project, right next to composer.phar
40
+
41
+
```
42
+
{
43
+
"require": {
44
+
"repejota/nats": "master"
45
+
}
46
+
}
47
+
```
48
+
Let's let Composer work its magic:
49
+
```
50
+
php composer.phar install
51
+
```
52
+
Composer will download all the dependencies defined in composer.json, and prepare all the files needed to autoload them.
0 commit comments