承接 seotracker/seocore 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

seotracker/seocore

Composer 安装命令:

composer require seotracker/seocore

包简介

seo-core library for php

README 文档

README

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

Build Status SensioLabsInsight

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 & rich contents
  • Website keywords occurrences and proportions (Not implemented)
  • Website location url

See WebsiteInterface for more information about it.

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

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

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

<?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'
 * ]
 **/

统计信息

  • 总下载量: 73
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 18
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 17
  • Watchers: 1
  • Forks: 2
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-09-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固