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 Nov 30, 2017. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+32-75
Original file line number
Diff line number
Diff line change
@@ -43,34 +43,13 @@ The server should be able to handle PHP and included is a `.htaccess` file that
43
43
How to install it
44
44
-----------------
45
45
46
-
Place the files in a directory on your server. The easiest way to install is to download the files as a <ahref="https://github.com/WhichBrowser/WhichBrowser/archive/master.zip">zip archive</a> from Github and place
47
-
them in a directory called `whichbrowser` on your server. However, this is not ideal for keeping WhichBrowser up-to-date.
46
+
You can install WhichBrowser by using Composer - the standard package manager for PHP. The package is called `whichbrowser/whichbrowser`.
48
47
49
-
50
-
###Using Git
51
-
52
-
It is recommended to use `git` directly on the server to make sure you get the latest changes and to make it easier to keep WhichBrowser updated.
53
-
54
-
Go to the root directory of your site and run the following command:
This will create a new directory called `whichbrowser` and install the latest version of WhichBrowser. If you want to update WhichBrowser to the latest version you can simply run the following command from the `whichbrowser` directory:
59
-
60
-
git pull
61
-
62
-
Given that WhichBrowser is updated regularly - sometimes even multiple times a day - you should run this command as often as possible. You might even want to consider setting up a cron job for this purpose.
63
-
64
-
65
-
###Using Composer
66
-
67
-
As an alternative we also offer a Composer package called `whichbrowser/whichbrowser`.
@@ -347,25 +304,25 @@ The `Version` object is used for the `version` property of the `browser`, `engin
347
304
`is(version)` or `is(comparison, version)`
348
305
Using this function it is easy to compare a version to another version. If you specify only one argument, this function will return if the versions are the same. You can also specify two arguments, in that case the first argument contains the comparison operator, such as `<`, `<=`, `=`, `=>` or `>`. The second argument is the version you want to compare it to. You can use versions like `10`, `10.7` or `'10.7.4'`, but be aware that `10` is not the same as `10.0`. For example if our OS version is `10.7.4`:
0 commit comments