Selaa lähdekoodia

Create gh-pages branch via GitHub

Jonny Wenmoth 11 vuotta sitten
vanhempi
commit
3ae069397b
2 muutettua tiedostoa jossa 21 lisäystä ja 2 poistoa
  1. 21 2
      index.html
  2. 0 0
      params.json

+ 21 - 2
index.html

@@ -60,12 +60,31 @@ websites that demand javascript support and also supports screen captures.</p>
 <h2>
 <h2>
 <a name="installation" class="anchor" href="#installation"><span class="octicon octicon-link"></span></a>Installation</h2>
 <a name="installation" class="anchor" href="#installation"><span class="octicon octicon-link"></span></a>Installation</h2>
 
 
-<p>It is recommended that you use Composer to install PHP PhantomJS:</p>
+<p>It is recommended that you use Composer to install PHP PhantomJS. First add the following to your composer.json file:</p>
+
+<div class="highlight highlight-xml"><pre>"scripts": {
+    "post-install-cmd": [
+        "PhantomInstaller\\Installer::installPhantomJS"
+    ],
+    "post-update-cmd": [
+        "PhantomInstaller\\Installer::installPhantomJS"
+    ]
+}
+</pre></div>
+
+<p>This will ensure the latest version of PhantomJS is install for your system, in your bin folder. If you haven't defined your bin folder in your composer.json, add the path:</p>
+
+<div class="highlight highlight-xml"><pre>"config": {
+    "bin-dir": "path/to/bin/dir"
+}
+</pre></div>
+
+<p>Finally, install PHP PhantomJS from the root of your project:</p>
 
 
 <div class="highlight highlight-xml"><pre>composer require "jonnyw/php-phantomjs:3.*"
 <div class="highlight highlight-xml"><pre>composer require "jonnyw/php-phantomjs:3.*"
 </pre></div>
 </pre></div>
 
 
-<p>If you would like to use another installation method or would like to see more detailed installation instruction, see the <a href="http://jonnnnyw.github.io/php-phantomjs/installation.html">installation</a> documentation.</p>
+<p>If you would like to use another installation method or would like to see more detailed installation instructions, see the <a href="http://jonnnnyw.github.io/php-phantomjs/installation.html">installation</a> documentation.</p>
 
 
 <h2>
 <h2>
 <a name="basic-usage" class="anchor" href="#basic-usage"><span class="octicon octicon-link"></span></a>Basic Usage</h2>
 <a name="basic-usage" class="anchor" href="#basic-usage"><span class="octicon octicon-link"></span></a>Basic Usage</h2>

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
params.json


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä