PHPackages                             seotracker/seocore - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. seotracker/seocore

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

seotracker/seocore
==================

seo-core library for php

1.0.3(8y ago)17732MITHTMLPHP &gt;=5.6

Since Sep 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/seotracker/seo-core)[ Packagist](https://packagist.org/packages/seotracker/seocore)[ RSS](/packages/seotracker-seocore/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (4)Versions (5)Used By (0)

Seo-core library
================

[](#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.

[![Build Status](https://camo.githubusercontent.com/f608f83e3dbd31e594bb78b354c0d122eaa29a6e2e59c917cf63236792b3c144/68747470733a2f2f6170692e7472617669732d63692e6f72672f73656f747261636b65722f73656f2d636f72652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/seotracker/seo-core)[![SensioLabsInsight](https://camo.githubusercontent.com/a190e93e93716d9d24b6cdc737765de989d182af377871f5d8d5a37128bde01d/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32633434303438312d336632372d346231352d613633352d6537643730316163316165342f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/2c440481-3f27-4b15-a635-e7d701ac1ae4)

Websites
--------

[](#websites)

---

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

A website object can return useful data for SEO like:

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

See `WebsiteInterface` for more information about it.

SearchEngines
-------------

[](#searchengines)

---

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

A search engine can return useful datas for SEO like:

- 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.

Scrappers
---------

[](#scrappers)

---

A scrapper is an object used to get HTML from internet network.

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.

See `ScrapperInterface` and implementations in `Adapter\Scrapper` folder

Crawlers
--------

[](#crawlers)

---

A crawler is an object used to query and manipulate HTML DOM.

Seo-core offers an interface and his Symfony2-Component based implementation.

See `CrawlerInterface` and implementation in `Adapter\Crawler` folder.

Example
-------

[](#example)

---

```
