embit88/seohelper-laravel

1.0 2024-03-09 11:30 UTC

This package is auto-updated.

Last update: 2025-07-09 14:52:55 UTC


README

Laravel Logo

SeoHelper Laravel

Installation:

  • composer require embit88/seohelper-laravel

  • use SeoHelper;

META TAG:

  • SeoHelper::setTitle($title) - Set Meta Title

  • SeoHelper::setDescription($description) - Set Meta Description

  • SeoHelper::setKeyword($keyword) - Set Meta Keyword

  • SeoHelper::setMeta($title, $description, $keyword = null) - Set All Meta

  • SeoHelper::getTitle() - Get Meta Title

  • SeoHelper::getDescription() - Get Meta Description

  • SeoHelper::getKeyword() - Get Meta Keyword

  • SeoHelper::getMeta($key) - Get Meta $key

ROBOTS:

  • SeoHelper::setRobots($key) - Set Robots

  • SeoHelper::getRobots($key) - Get Robots

SOCIAL META:

  • SeoHelper::setSocialMeta($type = 'website' $image = null) - Set Social Meta

  • SeoHelper::getSocialMeta() - Get Social Meta HTML

BREADCRUMB:

  • SeoHelper::setBreadcrumb($title, $href) - Set Breadcrumb

  • SeoHelper::getBreadcrumb() - Get Breadcrumb

LINK LANGUAGES:

  • SeoHelper::setLinkLang($href, $hreflang) - Set Link languages

  • SeoHelper::getLinkLang() - Get Link languages

SEO TEXT:

  • SeoHelper::setSeoText($seo_text) - Set seo text ("<~%s~>" - replace flag)
  • SeoHelper::getSeoText($replace = '') - Get seo text ("<~%s~>" >>> var $replace)