-
Notifications
You must be signed in to change notification settings - Fork 3
/
example.php
38 lines (34 loc) · 978 Bytes
/
example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
use itseo\Itseo;
function autoload($dir){
$files = scandir($dir);
foreach($files as $file){
if($file == "." || $file == "..")continue;
$tmp_dir = $dir.DIRECTORY_SEPARATOR.$file;
if(is_dir($tmp_dir)){
autoload($tmp_dir);
}elseif(is_readable($tmp_dir)){
require_once($tmp_dir);
}
}
}
autoload(getcwd().DIRECTORY_SEPARATOR."itseo");
$itseo = new Itseo("http://www.google.es/");
$itseo->makeTest('Dmoz');
$itseo->makeTest('Favicon');
$itseo->makeTest('Flash');
$itseo->makeTest('Frames');
$itseo->makeTest('Headings');
$itseo->makeTest('Img');
$itseo->makeTest('Links');
$itseo->makeTest('MetaTitle');
$itseo->makeTest('MetaDescription');
$itseo->makeTest('MetaKeywords');
$itseo->makeTest('Www');
$itseo->makeTest('UrlLength');
$itseo->makeTest('Title');
$itseo->makeTest('TextRatio');
$itseo->makeTest('Sitemap');
$itseo->makeTest('Robots');
$itseo->makeTest('Humans');
var_dump($itseo->tests);