Просмотр исходного кода

Create gh-pages branch via GitHub

Jonny Wenmoth 11 лет назад
Родитель
Сommit
3ae069397b
2 измененных файлов с 21 добавлено и 2 удалено
  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>
 <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.*"
 </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>
 <a name="basic-usage" class="anchor" href="#basic-usage"><span class="octicon octicon-link"></span></a>Basic Usage</h2>

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
params.json


Некоторые файлы не были показаны из-за большого количества измененных файлов