Sfoglia il codice sorgente

Documentation update

Jonny Wenmoth 11 anni fa
parent
commit
94271ce52c

+ 0 - 10
_site/404.html

@@ -46,10 +46,6 @@
 			
 			
 			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
 			
 			-->
 			
@@ -112,12 +108,6 @@
 		
 		
 		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
 	</ul>
 	<ul id="contact-list-secondary" class="list-unstyled list-inline">
 		

+ 0 - 10
_site/advanced.html

@@ -46,10 +46,6 @@
 			
 			
 			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
 			
 			-->
 			
@@ -112,12 +108,6 @@
 		
 		
 		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
 	</ul>
 	<ul id="contact-list-secondary" class="list-unstyled list-inline">
 		

+ 0 - 10
_site/assets/css/style.css

@@ -108,16 +108,6 @@ article {
 article img { max-width: 100%; }
 
 h1,h2,h3,h4,h5,h6 { font-family: 'Ubuntu', sans-serif; }
-article.home h1,
-article.home h2,
-article.home h3,
-article.home h4,
-article.home h5,
-article.home h6 {
-	font-family: 'Ubuntu', sans-serif;
-	color: #f2756a;
-}
-
 article.home h1 a,
 article.home h2 a,
 article.home h3 a,

+ 0 - 171
_site/categories.html

@@ -1,171 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-	<meta charset="utf-8">
-	<title>Categories</title>
-	
-	<meta name="author" content="Jonny W">
-
-	<!-- Enable responsive viewport -->
-	<meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-	<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
-	<!--[if lt IE 9]>
-	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
-	<![endif]-->
-
-	<!-- Le styles -->
-	<link href="/assets/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
-	<link href="/assets/resources/font-awesome/css/font-awesome.min.css" rel="stylesheet">
-	<link href="/assets/resources/syntax/syntax.css" rel="stylesheet">
-	<link href="/assets/css/style.css" rel="stylesheet">
-
-	<!-- Le fav and touch icons -->
-	<!-- Update these with your own images
-	<link rel="shortcut icon" href="images/favicon.ico">
-	<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
-	<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
-	<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
-	-->
-
-	<link rel="alternate" type="application/rss+xml" title="" href="/feed.xml">
-</head>
-
-<body>
-	<nav class="navbar navbar-default visible-xs" role="navigation">
-		<!-- Brand and toggle get grouped for better mobile display -->
-		<div class="navbar-header">
-			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
-				<span class="sr-only">Toggle navigation</span>
-				<span class="icon-bar"></span>
-				<span class="icon-bar"></span>
-				<span class="icon-bar"></span>
-			</button>
-			
-			<!--
-			
-			
-			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
-			
-			-->
-			
-			<a class="navbar-brand" href="/">
-				<img src="/assets/media/phantomjs-small.png" class="img-circle" />
-				PHP PhantomJs
-			</a>
-		</div>
-
-		<!-- Collect the nav links, forms, and other content for toggling -->
-		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
-			<ul class="nav navbar-nav">
-				<li class="active"><a href="/">Home</a></li>
-				<li><a href="/installation.html">Installation</a></li>
-				<li><a href="/usage.html">Usage</a></li>
-				<li><a href="/advanced.html">Advanced</a></li>
-				<li><a href="/debugging.html">Debugging</a></li>
-				<li><a href="/troubleshooting.html">Troubleshooting</a></li>
-			</ul>
-		</div><!-- /.navbar-collapse -->
-	</nav>
-
-	<!-- nav-menu-dropdown -->
-	<div class="btn-group hidden-xs" id="nav-menu">
-		<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
-			<i class="fa fa-bars"></i>
-		</button>
-		<ul class="dropdown-menu" role="menu">
-		    <li><a href="/"><i class="fa fa-home"></i>Home</a></li>
-			<li><a href="/installation.html"><i class="fa fa-folder"></i>Installation</a></li>
-			<li><a href="/usage.html"><i class="fa fa-folder"></i>Usage</a></li>
-			<li><a href="/advanced.html"><i class="fa fa-folder"></i>Advanced</a></li>
-			<li><a href="/debugging.html"><i class="fa fa-folder"></i>Debugging</a></li>
-			<li><a href="/troubleshooting.html"><i class="fa fa-folder"></i>Troubleshooting</a></li>
-			<li class="divider"></li>
-			<li><a href="#"><i class="fa fa-arrow-up"></i>Top of Page</a></li>
-		</ul>
-	</div>
-
-	<div class="col-sm-3 sidebar hidden-xs">
-		<! -- sidebar.html -->
-<header class="sidebar-header" role="banner">
-	<a href="/">
-		<img src="/assets/media/phantomjs.png" class="img-circle" />
-	</a>
-	<h3 class="title">
-        <a href="/">PHP PhantomJs</a>
-    </h3>
-</header>
-
-
-<div id="bio" class="text-center">
-	Run PhantomJS scripts through PHP
-</div>
-
-
-<div id="contact-list" class="text-center">
-<!--
-	<ul class="list-unstyled list-inline">
-		
-		
-		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
-	</ul>
-	<ul id="contact-list-secondary" class="list-unstyled list-inline">
-		
-		
-		<li>
-			<a class="btn btn-default btn-sm" href="/feed.xml">
-				<i class="fa fa-rss fa-lg"></i>
-			</a>
-		</li>
-	</ul>
--->
-</div>
-<! -- sidebar.html end -->
-
-	</div>
-
-	<div class="col-sm-9 col-sm-offset-3">
-		
-<div class="col-sm-3 col-xs-6">
-    <ul class="nav nav-tabs-vertical">
-      
-      
-        
-      
-      
-    </ul>
-</div>
-<!-- Tab panes -->
-<div class="tab-content col-sm-9 col-xs-6">
-  
-</div>
-
-<div class="clearfix"></div>
-
-
-
-
-		<footer>
-			<hr/>
-			<p>
-				&copy; 2014 PHP PhantomJs. Theme: Modified <a href="https://github.com/dbtek/dbyll">dbyll</a> by dbtek.
-			</p>
-		</footer>
-	</div>
-
-	<script type="text/javascript" src="/assets/resources/jquery/jquery.min.js"></script>
-	<script type="text/javascript" src="/assets/resources/bootstrap/js/bootstrap.min.js"></script>
-	<script type="text/javascript" src="/assets/js/app.js"></script>
-</body>
-</html>
-

+ 0 - 10
_site/debugging.html

@@ -46,10 +46,6 @@
 			
 			
 			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
 			
 			-->
 			
@@ -112,12 +108,6 @@
 		
 		
 		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
 	</ul>
 	<ul id="contact-list-secondary" class="list-unstyled list-inline">
 		

+ 0 - 10
_site/index.html

@@ -46,10 +46,6 @@
 			
 			
 			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
 			
 			-->
 			
@@ -112,12 +108,6 @@
 		
 		
 		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
 	</ul>
 	<ul id="contact-list-secondary" class="list-unstyled list-inline">
 		

+ 0 - 10
_site/installation.html

@@ -46,10 +46,6 @@
 			
 			
 			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
 			
 			-->
 			
@@ -112,12 +108,6 @@
 		
 		
 		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
 	</ul>
 	<ul id="contact-list-secondary" class="list-unstyled list-inline">
 		

+ 0 - 10
_site/introduction.html

@@ -46,10 +46,6 @@
 			
 			
 			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
 			
 			-->
 			
@@ -112,12 +108,6 @@
 		
 		
 		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
 	</ul>
 	<ul id="contact-list-secondary" class="list-unstyled list-inline">
 		

+ 0 - 120
_site/markdown/index.md

@@ -1,120 +0,0 @@
-Introduction
-============
-
-PHP PhantomJS is a flexible PHP library to load pages through the PhantomJS headless browser and return the page response. It is handy for testing websites that demand javascript support and also supports screen captures.
-
-Feature List
-------------
-
-*  Load webpages through the PhantomJS headless browser
-*  View detailed response data including page content, headers, status
-   code etc.
-*  Handle redirects
-*  View javascript console errors
-*  View detailed PhantomJS debuged information
-*  Save screen captures to local disk
-*  Define screen capture x, y, width and height parameters
-*  Delay page rendering for a specified time
-*  Execute PhantomJS with command line options
-*  Easily build and run custom PhantomJS scripts
-
-Prerequisites
--------------
-
-PHP PhantomJS requires PHP **5.3.0** or greater to run.
-
-Installation
-------------
-
-It is recommended that you use Composer to install PHP PhantomJS. First, add the following to your project’s `composer.json` file:
-
-```yaml
-
-    "scripts": {
-        "post-install-cmd": [
-            "PhantomInstaller\\Installer::installPhantomJS"
-        ],
-        "post-update-cmd": [
-            "PhantomInstaller\\Installer::installPhantomJS"
-        ]
-    }
-```
-
-This will ensure the latest version of PhantomJS is installed for your system, in your bin folder. If you haven’t defined your bin folder in your composer.json, add the path:
-
-```yaml
-
-    "config": {
-        "bin-dir": "bin"
-    }
-```
-
-Finally, install PHP PhantomJS from the root of your project:
-
-```shell
-
-    composer require "jonnyw/php-phantomjs:3.*"
-```
-
-If you would like to use another installation method or would like to see more detailed installation instructions, see the [installation](http://jonnnnyw.github.io/php-phantomjs/installation.html) documentation.
-
-Basic Usage
------------
-
-The following illustrates how to make a basic GET request and output the page content:
-
-```php
-
-    <?php
-
-    use JonnyW\PhantomJs\Client;
-
-    $client = Client::getInstance();
-
-    /** 
-     * @see JonnyW\PhantomJs\Message\Request 
-     **/
-    $request = $client->getMessageFactory()->createRequest('http://google.com', 'GET');
-
-    /** 
-     * @see JonnyW\PhantomJs\Message\Response 
-     **/
-    $response = $client->getMessageFactory()->createResponse();
-
-    // Send the request
-    $client->send($request, $response);
-
-    if($response->getStatus() === 200) {
-
-        // Dump the requested page content
-        echo $response->getContent();
-    }
-```
-
-And if you would like to save a screen capture to local disk:
-
-```php
-
-    <?php
-
-    use JonnyW\PhantomJs\Client;
-
-    $client = Client::getInstance();
-
-    /** 
-     * @see JonnyW\PhantomJs\Message\CaptureRequest
-     **/
-    $request = $client->getMessageFactory()->createCaptureRequest('http://google.com', 'GET');
-    $request->setCaptureFile('/path/to/save/capture/file.jpg');
-
-    /** 
-     * @see JonnyW\PhantomJs\Message\Response 
-     **/
-    $response = $client->getMessageFactory()->createResponse();
-
-    // Send the request
-    $client->send($request, $response);
-```
-
-For more detailed examples see the [examples](http://jonnnnyw.github.io/php-phantomjs/examples.html) section, or to create your own custom scripts check out the [advanced](http://jonnnnyw.github.io/php-phantomjs/advanced.html) documentation.
-

+ 0 - 108
_site/markdown/installation.md

@@ -1,108 +0,0 @@
-Installation
-============
-
-Prerequisites
--------------
-
-PHP PhantomJS requires PHP **5.3.0** or greater to run.
-
-Installing via Composer
------------------------
-
-Install [Composer](https://getcomposer.org/) for your project:
-
-``shell
-
-        curl -s http://getcomposer.org/installer | php
-``
-
-Create a `composer.json` file in the root of your project:
-
-```yaml
-
-        {
-            "require": {
-                "jonnyw/php-phantomjs": "3.*"
-            },
-            "config": {
-                "bin-dir": "bin"
-            },
-            "scripts": {
-                "post-install-cmd": [
-                    "PhantomInstaller\\Installer::installPhantomJS"
-                ],
-                "post-update-cmd": [
-                    "PhantomInstaller\\Installer::installPhantomJS"
-                ]
-            }
-        }
-```
-
-It is important that you have the 'scripts' section shown above in your `composer.json` file as it will install the latest version of PhantomJS for your system to your project's bin folder. It is recommended that you create a bin folder in the root of your project as this is where the PHP PhantomJS library will look for your PhantomJS executable. If you would prefer to use a PhantomJS executable in a custom location, see the [Custom Installation](#custom-installation) section.
-
-Finally, install the composer depedencies for your project:
-
-```shell
-
-        php composer.phar install
-```
-
-Custom Installation
--------------------
-
-If you would prefer to use a custom install location for the PhantomJS executable, you simply need to tell the client where to find the executable file:
-
-```php
-
-        use JonnyW\PhantomJs\Client;
-
-        $client = Client::getInstance();
-        $client->setPhantomJs('/path/to/phantomjs');
-```
-
-If you would like composer to install the PhantomJS executable to a custom location when installing dependencies, set the bin dir location in your project's `composer.json` file:
-
-```yaml
-
-        {
-            "config": {
-                "bin-dir": "/path/to/your/projects/bin/dir"
-            }
-        }
-```
-
-You will need to make sure that this directory exists and is writable by Composer before running the composer install.
-
-Once you have updated your bin location run composer install to install PhantomJS:
-
-```shell
-
-        php composer.phar install
-```
-
-This should install the correct PhantomJS executable for your system to the bin locaiton you defined in your `composer.json` file. As mentioned above, you will need to tell the client where to find your PhantomJS executable as it is not installed in the default location:
-
-```php
-
-        use JonnyW\PhantomJs\Client;
-
-        $client = Client::getInstance();
-        $client->setPhantomJs('/path/to/phantomjs');
-```
-
-Installing from tarball
------------------------
-
-The PHP PhantomJS library contains several depedencies in order to function so it is recommended that you install it via composer as this will handle your dependencies for you. If you do wish to install it from a [tarball release](https://github.com/jonnnnyw/php-phantomjs/tags) then you will need to install the dependencies manually.
-
-The PHP PhantomJS library currently requires the following depdencies:
-
--  [Symfony Config Component](https://github.com/symfony/Config) ~2.5
--  [Symfony Dependency Injection Component](https://github.com/symfony/DependencyInjection) ~2.5
--  [Symfony Filesystem Component](https://github.com/symfony/filesystem) ~2.5
--  [Twig templating Component](https://github.com/fabpot/Twig) ~1.16
--  [PhantomJS](http://phantomjs.org/) ~1.9
-
-Make sure the components are in your include path and that the PhantomJS
-executable is installed to your projects bin folder as mentioned in the
-[Custom Installation](#custom-installation) section.

+ 0 - 264
_site/markdown/usage.md

@@ -1,264 +0,0 @@
-Usage
-========
-
-This page contains some common examples of how to use the PHP PhantomJS library.
-
-* [Basic Request](#basic-request)
-* [POST Request](#post-request)
-* [Other Request Methods](#other-request-methods)
-* [Response Data](#response-data)
-* [Screen Captures](#screen-captures)
-* [Custom Timeout](#custom-timeout)
-* [Delay Page Render](#delay-page-render)
-* [Custom Run Options](#custom-run-options)
-
-Basic Request
--------------
-
-A basic GET request:
-
-```php
-
-    use JonnyW\PhantomJs\Client;
-    
-    $client = Client::getInstance();
-    
-    $request  = $client->getMessageFactory()->createRequest();
-    $response = $client->getMessageFactory()->createResponse();
-    
-    $request->setMethod('GET');
-    $request->setUrl('http://google.com');
-    
-    $client->send($request, $response);
-    
-    if($response->getStatus() === 200) {
-        echo $response->getContent();
-    }
-```
-
-You can also set the URL, request method and timeout period when creating a new request instance through the message factory:
-
-```php
-
-    use JonnyW\PhantomJs\Client;
-    
-    $client = Client::getInstance();
-    
-    $request  = $client->getMessageFactory()->createRequest('http://google.com', 'GET', 5000);
-    $response = $client->getMessageFactory()->createResponse();
-        
-    $client->send($request, $response);
-    
-    if($response->getStatus() === 200) {
-        echo $response->getContent();
-    }
-```
-
-POST Request
-------------
-
-A basic POST request:
-
-```php
-
-    use JonnyW\PhantomJs\Client;
-    
-    $client = Client::getInstance();
-    
-    $request  = $client->getMessageFactory()->createRequest();
-    $response = $client->getMessageFactory()->createResponse();
-    
-    $data = array(
-        'param1' => 'Param 1',
-        'param2' => 'Param 2'
-    );
-    
-    $request->setMethod('POST');
-    $request->setUrl('http://google.com');
-    $request->setRequestData($data); // Set post data
-    
-    $client->send($request, $response);
-```
-
-Other Request Methods
----------------------
-
-The PHP PhantomJS library supports the following request methods:
-
-* OPTIONS
-* GET
-* HEAD
-* POST
-* PUT
-* DELETE
-* PATCH
-
-The request method can be set when creating a new request instance through the message factory:
-
-```php
-
-    use JonnyW\PhantomJs\Client;
-    
-    $client = Client::getInstance();
-    
-    $request  = $client->getMessageFactory()->createRequest('http://google.com', 'PUT');
-```
-
-Or on the request instance itself:
-
-```php
-
-    use JonnyW\PhantomJs\Client;
-    
-    $client = Client::getInstance();
-    
-    $request  = $client->getMessageFactory()->createRequest();
-    $request->setMethod('PATCH');
-```
-
-Response Data
--------------
-
-A standard response gives you access to the following interface:
-
-| Accessor            | Description                                                                               |  Return Type   |
-| :-----------------: | ----------------------------------------------------------------------------------------- | :------------: |
-| getHeaders()        | Returns an array of all response headers.                                                 | Array          |
-| getHeader(*header*) | Returns the value for a specific response header e.g. Content-Type.                       | Mixed          |
-| getStatus()         | The response status code e.g. 200.                                                        | Int            |
-| getContent()        | The raw page content of the requested page.                                               | String         |
-| getContentType()    | The content type of the requested page.                                                   | String         |
-| getUrl()            | The URL of the requested page.                                                            | String         |
-| getRedirectUrl()    | If the response was a redirect, this will return the redirect URL.                        | String         |
-| isRedirect()        | Will return true if the response was a redirect or false otherwise.                       | Boolean        |
-| getConsole()        | Returns an array of any javascript errors on the requested page along with a stack trace. | Array          |
-
-If the response contains a status code of 0, chances are the request failed. Check the request [debug log](https://github.com/jonnnnyw/php-phantomjs/blob/master/doc/debugging.rst) for more detailed information about what may have gone wrong.
-
-Screen Captures
----------------
-
-You can save screen captures of a page to your local disk by creating a screen capture request and setting the path you wish to save the file to:
-
-```php
-
-    use JonnyW\PhantomJs\Client;
-    
-    $client = Client::getInstance();
-    
-    $request  = $client->getMessageFactory()->createCaptureRequest('http://google.com');
-    $response = $client->getMessageFactory()->createResponse();
-    
-    $file = '/path/to/save/your/screen/capture/file.jpg';
-    
-    $request->setCaptureFile($file);
-    
-    $client->send($request, $response);
-```
-
-You will need to make sure the directory that you are saving the file to exists and is writable by your application.
-
-You can also set the width, height, x and y axis for your screen capture:
-
-```php
-
-    use JonnyW\PhantomJs\Client;
-    
-    $client = Client::getInstance();
-    
-    $request  = $client->getMessageFactory()->createCaptureRequest('http://google.com');
-    $response = $client->getMessageFactory()->createResponse();
-    
-    $file = '/path/to/save/your/screen/capture/file.jpg';
-    
-    $top    = 10;
-    $left   = 10;
-    $width  = 200;
-    $height = 400;
-    
-    $request->setCaptureFile($file);
-    $request->setCaptureDimensions($width, $height, $top, $left);
-    
-    $client->send($request, $response);
-```
-
-Custom Timeout
---------------
-
-By default, each request will timeout after 5 seconds. You can set a custom timeout period (in milliseconds) for each request:
-
-```php
-
-    use JonnyW\PhantomJs\Client;
-    
-    $client = Client::getInstance();
-    
-    $request  = $client->getMessageFactory()->createRequest('http://google.com');
-    $response = $client->getMessageFactory()->createResponse();
-    
-    $timeout = 10000; // 10 seconds
-    
-    $request->setTimeout($timeout);
-    
-    $client->send($request, $response);
-```
-
-Delay Page Render
------------------
-
-Sometimes when taking screen captures you may want to wait until the page is completely loaded before saving the capture. In this instance you can set a page render delay (in seconds) for the request:
-
-```php
-
-    use JonnyW\PhantomJs\Client;
-    
-    $client = Client::getInstance();
-    
-    $request  = $client->getMessageFactory()->createCaptureRequest('http://google.com');
-    $response = $client->getMessageFactory()->createResponse();
-    
-    $delay = 5; // 5 seconds
-    
-    $request->setDelay($delay);
-    
-    $client->send($request, $response);
-```
-
-You can set a page render delay for standard requests also.
-
-
-Custom Run Options
-------------------
-
-The PhantomJS API contains a range of command line options that can be passed when executing the PhantomJS executable. These can also be passed in via the client before a request:
-
-```php
-
-    use JonnyW\PhantomJs\Client;
-    
-    $client = Client::getInstance();
-    $client->addOption('--load-images=true');
-    $client->addOption('--ignore-ssl-errors=true');
-    
-    $request  = $client->getMessageFactory()->createRequest('http://google.com');
-    $response = $client->getMessageFactory()->createResponse();
-
-    $client->send($request, $response);
-```
-
-You can also set a path to a JSON configuration file that contains multiple PhantomJS options:
-
-```php
-
-    use JonnyW\PhantomJs\Client;
-    
-    $client = Client::getInstance();
-    $client->addOption('--config=/path/to/config.json');
-    
-    $request  = $client->getMessageFactory()->createRequest('http://google.com');
-    $response = $client->getMessageFactory()->createResponse();
-
-    $client->send($request, $response);
-```
-
-See the [PhantomJS Documentation](http://phantomjs.org/api/command-line.html) for a full list of command line options.

+ 0 - 10
_site/page2/index.html

@@ -46,10 +46,6 @@
 			
 			
 			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
 			
 			-->
 			
@@ -112,12 +108,6 @@
 		
 		
 		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
 	</ul>
 	<ul id="contact-list-secondary" class="list-unstyled list-inline">
 		

+ 0 - 10
_site/page3/index.html

@@ -46,10 +46,6 @@
 			
 			
 			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
 			
 			-->
 			
@@ -112,12 +108,6 @@
 		
 		
 		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
 	</ul>
 	<ul id="contact-list-secondary" class="list-unstyled list-inline">
 		

+ 0 - 10
_site/page4/index.html

@@ -46,10 +46,6 @@
 			
 			
 			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
 			
 			-->
 			
@@ -112,12 +108,6 @@
 		
 		
 		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
 	</ul>
 	<ul id="contact-list-secondary" class="list-unstyled list-inline">
 		

+ 0 - 10
_site/page5/index.html

@@ -46,10 +46,6 @@
 			
 			
 			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
 			
 			-->
 			
@@ -112,12 +108,6 @@
 		
 		
 		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
 	</ul>
 	<ul id="contact-list-secondary" class="list-unstyled list-inline">
 		

+ 0 - 10
_site/page6/index.html

@@ -46,10 +46,6 @@
 			
 			
 			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
 			
 			-->
 			
@@ -112,12 +108,6 @@
 		
 		
 		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
 	</ul>
 	<ul id="contact-list-secondary" class="list-unstyled list-inline">
 		

+ 0 - 171
_site/tags.html

@@ -1,171 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-	<meta charset="utf-8">
-	<title>Tags</title>
-	
-	<meta name="author" content="Jonny W">
-
-	<!-- Enable responsive viewport -->
-	<meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-	<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
-	<!--[if lt IE 9]>
-	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
-	<![endif]-->
-
-	<!-- Le styles -->
-	<link href="/assets/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
-	<link href="/assets/resources/font-awesome/css/font-awesome.min.css" rel="stylesheet">
-	<link href="/assets/resources/syntax/syntax.css" rel="stylesheet">
-	<link href="/assets/css/style.css" rel="stylesheet">
-
-	<!-- Le fav and touch icons -->
-	<!-- Update these with your own images
-	<link rel="shortcut icon" href="images/favicon.ico">
-	<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
-	<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
-	<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
-	-->
-
-	<link rel="alternate" type="application/rss+xml" title="" href="/feed.xml">
-</head>
-
-<body>
-	<nav class="navbar navbar-default visible-xs" role="navigation">
-		<!-- Brand and toggle get grouped for better mobile display -->
-		<div class="navbar-header">
-			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
-				<span class="sr-only">Toggle navigation</span>
-				<span class="icon-bar"></span>
-				<span class="icon-bar"></span>
-				<span class="icon-bar"></span>
-			</button>
-			
-			<!--
-			
-			
-			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
-			
-			-->
-			
-			<a class="navbar-brand" href="/">
-				<img src="/assets/media/phantomjs-small.png" class="img-circle" />
-				PHP PhantomJs
-			</a>
-		</div>
-
-		<!-- Collect the nav links, forms, and other content for toggling -->
-		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
-			<ul class="nav navbar-nav">
-				<li class="active"><a href="/">Home</a></li>
-				<li><a href="/installation.html">Installation</a></li>
-				<li><a href="/usage.html">Usage</a></li>
-				<li><a href="/advanced.html">Advanced</a></li>
-				<li><a href="/debugging.html">Debugging</a></li>
-				<li><a href="/troubleshooting.html">Troubleshooting</a></li>
-			</ul>
-		</div><!-- /.navbar-collapse -->
-	</nav>
-
-	<!-- nav-menu-dropdown -->
-	<div class="btn-group hidden-xs" id="nav-menu">
-		<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
-			<i class="fa fa-bars"></i>
-		</button>
-		<ul class="dropdown-menu" role="menu">
-		    <li><a href="/"><i class="fa fa-home"></i>Home</a></li>
-			<li><a href="/installation.html"><i class="fa fa-folder"></i>Installation</a></li>
-			<li><a href="/usage.html"><i class="fa fa-folder"></i>Usage</a></li>
-			<li><a href="/advanced.html"><i class="fa fa-folder"></i>Advanced</a></li>
-			<li><a href="/debugging.html"><i class="fa fa-folder"></i>Debugging</a></li>
-			<li><a href="/troubleshooting.html"><i class="fa fa-folder"></i>Troubleshooting</a></li>
-			<li class="divider"></li>
-			<li><a href="#"><i class="fa fa-arrow-up"></i>Top of Page</a></li>
-		</ul>
-	</div>
-
-	<div class="col-sm-3 sidebar hidden-xs">
-		<! -- sidebar.html -->
-<header class="sidebar-header" role="banner">
-	<a href="/">
-		<img src="/assets/media/phantomjs.png" class="img-circle" />
-	</a>
-	<h3 class="title">
-        <a href="/">PHP PhantomJs</a>
-    </h3>
-</header>
-
-
-<div id="bio" class="text-center">
-	Run PhantomJS scripts through PHP
-</div>
-
-
-<div id="contact-list" class="text-center">
-<!--
-	<ul class="list-unstyled list-inline">
-		
-		
-		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
-	</ul>
-	<ul id="contact-list-secondary" class="list-unstyled list-inline">
-		
-		
-		<li>
-			<a class="btn btn-default btn-sm" href="/feed.xml">
-				<i class="fa fa-rss fa-lg"></i>
-			</a>
-		</li>
-	</ul>
--->
-</div>
-<! -- sidebar.html end -->
-
-	</div>
-
-	<div class="col-sm-9 col-sm-offset-3">
-		
-
-
-
-
-<div class="col-sm-3 col-xs-6">
-    <ul class="nav nav-tabs-vertical">
-    
-   </ul>
-</div>
-<!-- Tab panes -->
-<div class="tab-content col-sm-9 col-xs-6">
-  
-</div>
-
-<div class="clearfix"></div>
-
-
-
-
-		<footer>
-			<hr/>
-			<p>
-				&copy; 2014 PHP PhantomJs. Theme: Modified <a href="https://github.com/dbtek/dbyll">dbyll</a> by dbtek.
-			</p>
-		</footer>
-	</div>
-
-	<script type="text/javascript" src="/assets/resources/jquery/jquery.min.js"></script>
-	<script type="text/javascript" src="/assets/resources/bootstrap/js/bootstrap.min.js"></script>
-	<script type="text/javascript" src="/assets/js/app.js"></script>
-</body>
-</html>
-

+ 0 - 10
_site/troubleshooting.html

@@ -46,10 +46,6 @@
 			
 			
 			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
 			
 			-->
 			
@@ -112,12 +108,6 @@
 		
 		
 		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
 	</ul>
 	<ul id="contact-list-secondary" class="list-unstyled list-inline">
 		

+ 0 - 10
_site/usage.html

@@ -46,10 +46,6 @@
 			
 			
 			
-			<a type="button" class="navbar-toggle nav-link" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope"></i>
-			</a>
-			
 			
 			-->
 			
@@ -112,12 +108,6 @@
 		
 		
 		
-		<li>
-			<a class="btn btn-default btn-sm" href="mailto:contact@jonnyw.me">
-				<i class="fa fa-envelope fa-lg"></i>
-			</a>
-		</li>
-		
 	</ul>
 	<ul id="contact-list-secondary" class="list-unstyled list-inline">
 		

+ 0 - 10
assets/css/style.css

@@ -108,16 +108,6 @@ article {
 article img { max-width: 100%; }
 
 h1,h2,h3,h4,h5,h6 { font-family: 'Ubuntu', sans-serif; }
-article.home h1,
-article.home h2,
-article.home h3,
-article.home h4,
-article.home h5,
-article.home h6 {
-	font-family: 'Ubuntu', sans-serif;
-	color: #f2756a;
-}
-
 article.home h1 a,
 article.home h2 a,
 article.home h3 a,