2017 © Pedro Peláez
 

project yii2-seo

Yii2 SEO compoments

image

maxodrom/yii2-seo

Yii2 SEO compoments

  • Friday, June 8, 2018
  • by mercium
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Yii2 SEO components

Yii2 SEO components is a package with some useful classes which are provided with frequently used methods to work with and processing SEO texts., (*1)

SEO image, (*2)

Русская документация, (*3)

SeoText class

Provides useful methods for source text processing and gathering statistical info about processed text., (*4)

use maxodrom\yii2seo\components\SeoText;

// instantiate new SeoText object
$seoText = new SeoText($model->textField);

// get total words in our text
$totalWords =  $seoText->getWordsCount();

// get total characters count (including different spaces chars)
$totalCharacters = $seoText->getTotalCharactersCount();

// get only word's characters count
$wordCharacters = $seoText->getCharactersCount();

// get all spaces count 
$totalSpaces = $seoText->getSpacesCount();

The Versions