2017 © Pedro Peláez
 

library one-page-seo

Serve static content of a one-page website to crawlers (e.g. Facebook, Google or Twitter) using PhantomJS

image

vdaguenet/one-page-seo

Serve static content of a one-page website to crawlers (e.g. Facebook, Google or Twitter) using PhantomJS

  • Tuesday, July 21, 2015
  • by vdaguenet
  • Repository
  • 1 Watchers
  • 7 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

One Page SEO

Serve static content of a one-page website to crawlers., (*1)

Installation

Via Composer

composer require vdaguenet/one-page-seo

Usage

Add the following line on top of your index.php, (*2)

include_once __DIR__ . '/OnePage-SEO/BotDetector.php';

$detector = new BotDetector();
$detector->setServerOS($detector::LINUX);
if($detector->isBot()) {
    $detector->displayStaticContent();
}

In your javascript, add the following line when you are sure your content is appended, (*3)

if(typeof window.callPhantom === 'function') window.callPhantom();

What is included ?

PhantomJS: - for mac in version 2.0.0 - for linux in version 1.9.8, (*4)

You can download other build from official reposiory, (*5)

The Versions

21/07 2015

dev-master

9999999-dev https://github.com/vdaguenet/one-page-seo

Serve static content of a one-page website to crawlers (e.g. Facebook, Google or Twitter) using PhantomJS

  Sources   Download

MIT

The Requires

  • php >=5.0.0

 

The Development Requires

bot crawler seo phantomjs one page

20/07 2015

v1.0

1.0.0.0 https://github.com/vdaguenet/one-page-seo

Serve static content of a one-page website to crawlers (e.g. Facebook, Google or Twitter) using PhantomJS

  Sources   Download

MIT

The Requires

  • php >=5.0.0

 

The Development Requires

bot crawler seo phantomjs one page