PHP Classes

PHP Website SEO Tools: Analyses a given page to evaluate SEO aspects

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 300 All time: 7,419 This week: 50Up
Version License PHP version Categories
seoreport 1.0.0GNU General Publi...5.6HTML, PHP 5, Parsers
Description 

Author

This class can analyses a given page to evaluate SEO aspects.

It can take a given URL and retrieves the page HTML to perform several types of analysis to show in report Web page or save as PDF file. Currently it can determine:

- If your site page exists or not
- Number of JS and CSS in your page
- If it uses HTTP or HTTPS
- Page load and server response time
- Page information from the HEAD section like the title, meta tags for description and keywords
- Images and their alt tags
- Broken links URLs and count
- Text keyword frequency

Picture of Kishor Mali
  Performance   Level  
Innovation award
Innovation award
Nominee: 3x

 

Example

<?php

require_once "SeoReport.php";

if(isset(
$_POST["url"])){
   
   
$url = $_POST["url"];
   
   
$report = new SeoReport($url);
   
   
$reqHTML = $report->getSeoReport();
}

?>
<DOCTYPE html>
<html>
<head>
<title>SEO Report Demo</title>
</head>
<body>
<h1>SEO Report Demo</h1>
<br><br><br>
<form action="index.php" method="post">
URL : <input type="text" name="url" />
<p>You must enter valid url</p>
<br><br>
<input type="submit" value="submit" />
</form>
<br>
<br>
<br>
<?php

if(isset($reqHTML)){
    echo
$reqHTML;
}
?>

</body>
</html>


Details

Simple-SEO-Report-Generation-Class-using-PHP

This class is used to get the Simple SEO report of the website using PHP

Lot of things I refer from following gist.

https://gist.github.com/neo22s/3393820

Thanks @neo22s


  Files folder image Files (5)  
File Role Description
Files folder imagedemo (2 files)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Data Read me
Plain text file SeoReport.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:300
This week:0
All time:7,419
This week:50Up