Seo From Php With Phpseo Class in Php

SEO from Php with PhpSEO class in PHP
by Janeth Kent 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 Janeth Kent Date: 29-05-2013 seo php class hits : 1797  
 
Janeth Kent

Janeth Kent

Licenciada en Bellas Artes y programadora por pasión. Cuando tengo un rato retoco fotos, edito vídeos y diseño cosas. El resto del tiempo escribo en MA-NO WEB DESIGN END DEVELOPMENT.

 
 
 

Related Posts

How to Deal with Unnatural Inbound Links

A website that has a good rank on search engines, especially Google is a big task. Backlinks or Inbound links are one of the best ways to achieve this ranking.…

HTTP Cookies: how they work and how to use them

Today we are going to write about the way to store data in a browser, why websites use cookies and how they work in detail. Continue reading to find out how…

SEO in Google News: How to appear in Google News

Google News is a tool, from Google, that spreads current, reliable and truthful content from different websites or portals dedicated exclusively to news. The sites that appear in Google News…

How to comply with Google's quality guidelines in 2020

Google provides a set of guidelines on what your website's content should look like in order to appear in search results. There are several categories within the Google guidelines: Webmaster Guidelines. General guidelines. Content-specific…

5 Remote Careers You Can Start Online in 2020

In 2020, life has moved indoors. School, shopping, entertainment, and work have all moved online to keep up with the fight against COVID-19. And with it came an enormous demand…

The most popular Array Sorting Algorithms In PHP

There are many ways to sort an array in PHP, the easiest being to use the sort() function built into PHP. This sort function is quick but has it's limitations,…

Get ready for the future: What Does The Future Of SEO Look Like?

How will SEO change in 2030? There are various positions and assumptions that we can make about this so that you can think about the strategies to take when the…

MySQL 8.0 is now fully supported in PHP 7.4

MySQL and PHP is a love story that started long time ago. However the love story with MySQL 8.0 was a bit slower to start… but don’t worry it rules…

SEO Mistakes that Need to Be Avoided

Search Engine Optimization is the need of the hour, especially for people who have businesses and want to make something big out of it. You need to put in your…

How to Take Your Small Ecommerce Business to the Next Level

Running an ecommerce business can be both exciting and financially rewarding. However, as you increase your customer base, it might seem difficult to successfully scale your operations. If your site is…

Seo: How Search Behavior Has Changed During COVID-19 Pandemic

Google positioning is experiencing a before and after with the coronavirus crisis. The way we search in Google has changed; The way Google the search engine gives us the results has changed…

What is Google My Business and how does it help my local business?

Google My Business is increasingly present in the digital marketing strategies of companies, and this Google tool provides us with various options to better position our business in the search…

We use our own and third-party cookies to improve our services, compile statistical information and analyze your browsing habits. This allows us to personalize the content we offer and to show you advertisements related to your preferences. By clicking "Accept all" you agree to the storage of cookies on your device to improve website navigation, analyse traffic and assist our marketing activities. You can also select "System Cookies Only" to accept only the cookies required for the website to function, or you can select the cookies you wish to activate by clicking on "settings".

Accept All Only sistem cookies Configuration