2017 © Pedro PelĆ”ez
 

library seocore

seo-core library for php

image

seotracker/seocore

seo-core library for php

  • Friday, November 3, 2017
  • by mickaelandrieu
  • Repository
  • 1 Watchers
  • 16 Stars
  • 62 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Seo-core library

Seo-core library was extracted from Seo-Tracker platform. This is a common way to deal with websites, search engines and scrappers., (*1)

Build Status SensioLabsInsight, (*2)

## Websites

Website is an object representation of a real website. A website MUST have a HTML content., (*3)

A website object can return useful data for SEO like:, (*4)

  • Website title
  • Website metadata & rich contents
  • Website keywords occurrences and proportions (Not implemented)
  • Website location url

See WebsiteInterface for more information about it., (*5)

## SearchEngines

SearchEngine is an object representation of a real search engine. A search engine SHOULD USE a scrapper to get information from internet network., (*6)

A search engine can return useful datas for SEO like:, (*7)

  • All websites for a needle (aka a "keyword")
  • Website position in the concerned search engine for a needle
  • All backlinks for a website in this search engine

See SearchEngineInterface for more information about it., (*8)

## Scrappers

A scrapper is an object used to get HTML from internet network., (*9)

As this object have only 1 job to do, the only method to implement is get which accept at least 1 argument: an url location., (*10)

See ScrapperInterface and implementations in Adapter\Scrapper folder, (*11)

## Crawlers

A crawler is an object used to query and manipulate HTML DOM., (*12)

Seo-core offers an interface and his Symfony2-Component based implementation., (*13)

See CrawlerInterface and implementation in Adapter\Crawler folder., (*14)

## Example

<?php
use SeoTracker\SeoCore\Adapter\Crawler\SymfonyCrawler;
use SeoTracker\SeoCore\Adapter\Scrapper\CurlScrapper;
use SeoTracker\SeoCore\Model\GoogleFranceEngine;

$crawler   = new SymfonyCrawler();
$scrapper = new CurlScrapper();
$googleEngine = new GoogleFranceEngine($scrapper, $crawler);

$website = $googleEngine->getWebsite('http://seo-tracker.net');

// position of website in Google
$position = $googleEngine->getPosition('seo tools online platform', $website); // 1

// title of website
$title = $website->getTitle(); // 'SeoTracker : A SEO tools suite'

// metas of website
$metas = $googleEngine->getMetas();
// ['description' => 'Seo Tracker est une plateforme de suivi et d'optimisation [..]']

// microdatas of website
$microDatas = $googleEngine->getMicroDatas();
/**
 * [0 =>
 *     'type' =>
 *         [0 => 'http://www.schema.org/CreativeWork']
 *     ,
 *     'properties' => [...]]
 * ],
 * [ 1 => [..] ]
 **/

// backlinks of website location in search engine
$backlinks = $googleEngine->getBacklinks($website);
/**
 * [
 *     0 => 'http://seo-core.com',
 *     1 => 'http://otherwebsite.backlink'
 * ]
 **/

The Versions

03/11 2017

dev-master

9999999-dev

seo-core library for php

  Sources   Download

MIT

The Requires

 

The Development Requires

google crawler seo website search engine scrapper

03/11 2017

1.0.3

1.0.3.0

seo-core library for php

  Sources   Download

MIT

The Requires

 

The Development Requires

google crawler seo website search engine scrapper

11/03 2016

1.0.2

1.0.2.0

seo-core library for php

  Sources   Download

MIT

The Requires

 

google crawler seo website search engine scrapper

24/09 2014

1.0.1

1.0.1.0

seo-core library for php

  Sources   Download

MIT

The Requires

 

google crawler seo website search engine scrapper

23/09 2014

1.0

1.0.0.0

seo-core library for php

  Sources   Download

MIT

The Requires

 

google crawler seo website search engine scrapper