Seo From Php With Phpseo Class in Php

by admin admin Date: 29-05-2013 seo php class


 

Here we present a class to make better SEO in your PHP.

I want to post about SEO functions and classes for PHP and this is my first post about it. Let me show a demonstration of PhpSEO.

Basic usage:

$seo = new phpSEO("some long text here");
$keywords = $seo->getKeyWords();
$desc = $seo->getMetaDescription();

Advance usage:

$seo = new phpSEO("some long text here");
$keywords = $seo->getKeyWords(5);//returns only 5 keys
$desc = $seo->getMetaDescription(100);//returns 100 chars

Expert mode:

seo = new phpSEO();
$seo->setText(file_get_contents("http://neo22s.com"));//reading content form file or url
echo $seo->getText();//prints the text
$seo->setDescriptionLen(150);//description 150 chars
echo $seo->getMetaDescription();//print description
$seo->setBannedWords("sed,non,libero");//banned words, override the existing ones for keywords
$seo->setMaxKeywords(10);//sets 10 the max keywords
$seo->setMinWordLen(5);//all the words with len less than 5 will be erased
echo $seo->getKeyWords();//returns the keys

The phpSEO class download.

 
by admin admin Date: 29-05-2013 seo php class hits : 1135  
 
 
 
 

Related Posts

    How to use to Chrome Lighthouse

    How would you like to perform a fast SEO audit with a Chrome browser-based instrument? With the Lighthouse extension, you can do that. If you're not acquainted with Lighthouse, it's an…

    Nofollow and dofollow links, How and when to use?

    Within any website the links are an element that brings dynamism to the experience of navigating through the different sections that make it up allowing us to go from one…

    A roadmap to becoming a web developer in 2019

    There are plenty of tutorials online, which won't cost you a cent. If you are sufficiently self-driven and interested, you have no difficulty training yourself. The point to learn coding…

    Crazy SEO Tips For 2019

    Are you interested in learning more about SEO in 2019? Here are the trends you need to follow to improve your search optimization skills. For those who don’t know about SEO,…

    A Guide to the new Google Search Console

    Google Search Console, before known as Webmaster Tools, is a decisive tool created to easily track the performance of your website, but also to improve its visibility and usability. Over…

    10 PHP code snippets to work with dates

    Here we have some set of Useful PHP Snippets, which are useful for PHP Developers. In this tutorial we'll show you the 10 PHP date snippets you can use on…

    8 Free PHP Books to Read in Summer 2018

    In this article, we've listed 8 free PHP books that can help you to learn new approaches to solving problems and keep your skill up to date.   Practical PHP Testing This book…

    Best Websites to Learn Coding Online

    You know and we know that it’s totally possible to learn to code for free... If you can teach yourself how to write code, you gain a competitive edge over your…

    Best SEO Tools for 2018

    Search engines are a massive source of traffic for a lot of websites, in fact it can be the primary source. Due to this, it’s important that you make use…

    Social Media Marketing or SEO?

    Want to increase traffic to your site? Driving traffic to your website is no longer a simple or straightforward task. With so much competition, disinformation and misinformation, where are we supposed…

    Increase the Number of Backlinks to Your Site the Right Way

    SEO is important, however, the algorithms used and the techniques you need to use are changing every day. RankBrain is Google’s newest invention that has once again changed the face…

    PHP and XMP format: Create a Panorama 360/VR viewer in PHP and A-Frame

    The Extensible Metadata Platform (XMP) is an ISO standard, originally created by Adobe Systems Inc., for the creation, processing and interchange of standardized and custom metadata for digital documents and…