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(""));//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 : 1365  

Related Posts

    7 Step Guide to Writing for SEO

    SEO optimization is constantly evolving, and it doesn’t include only writing and SEO-friendly blog post. Some of the requirements are a mobile-friendly website, fast loading time, and support for Google…

    10 SEO trends for 2020

    In "Ma-No" we have tried to make some predictions with our digital crystal ball and (knowing that we will be wrong about many things) about what will happen in SEO…

    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…