PHP Class Arcanedev\SeoHelper\SeoHelper

Author: ARCANEDEV ([email protected])
Inheritance: implements Arcanedev\SeoHelper\Contracts\SeoHelper
Mostrar archivo Open project: ARCANEDEV/SEO-Helper

Public Methods

Method Description
__construct ( Arcanedev\SeoHelper\Contracts\SeoMeta $seoMeta, Arcanedev\SeoHelper\Contracts\SeoOpenGraph $seoOpenGraph, Arcanedev\SeoHelper\Contracts\SeoTwitter $seoTwitter ) Make SeoHelper instance.
__toString ( ) : string Render the tag.
disableOpenGraph ( ) : SeoHelper Disable the OpenGraph.
disableTwitter ( ) : SeoHelper Disable the Twitter Card.
enableOpenGraph ( ) : SeoHelper Enable the OpenGraph.
enableTwitter ( ) : SeoHelper Enable the Twitter Card.
meta ( ) : Arcanedev\SeoHelper\Contracts\SeoMeta Get SeoMeta instance.
og ( ) : Arcanedev\SeoHelper\Contracts\SeoOpenGraph Get SeoOpenGraph instance (alias).
openGraph ( ) : Arcanedev\SeoHelper\Contracts\SeoOpenGraph Get SeoOpenGraph instance.
render ( ) : string Render all seo tags.
renderHtml ( ) : Illuminate\Support\HtmlString Render all seo tags with HtmlString object.
setDescription ( string $description ) : Arcanedev\SeoHelper\Contracts\SeoHelper Set description.
setKeywords ( array | string $keywords ) : SeoHelper Set keywords.
setSeoMeta ( Arcanedev\SeoHelper\Contracts\SeoMeta $seoMeta ) : SeoHelper Set SeoMeta instance.
setSeoOpenGraph ( Arcanedev\SeoHelper\Contracts\SeoOpenGraph $seoOpenGraph ) : SeoHelper Get SeoOpenGraph instance.
setSeoTwitter ( Arcanedev\SeoHelper\Contracts\SeoTwitter $seoTwitter ) : SeoHelper Set SeoTwitter instance.
setSiteName ( string $siteName ) : self Set the site name.
setTitle ( string $title, string | null $siteName = null, string | null $separator = null ) : SeoHelper Set title.
twitter ( ) : Arcanedev\SeoHelper\Contracts\SeoTwitter Get SeoTwitter instance.

Method Details

__construct() public method

Make SeoHelper instance.
public __construct ( Arcanedev\SeoHelper\Contracts\SeoMeta $seoMeta, Arcanedev\SeoHelper\Contracts\SeoOpenGraph $seoOpenGraph, Arcanedev\SeoHelper\Contracts\SeoTwitter $seoTwitter )
$seoMeta Arcanedev\SeoHelper\Contracts\SeoMeta
$seoOpenGraph Arcanedev\SeoHelper\Contracts\SeoOpenGraph
$seoTwitter Arcanedev\SeoHelper\Contracts\SeoTwitter

__toString() public method

Render the tag.
public __toString ( ) : string
return string

disableOpenGraph() public method

Disable the OpenGraph.
public disableOpenGraph ( ) : SeoHelper
return SeoHelper

disableTwitter() public method

Disable the Twitter Card.
public disableTwitter ( ) : SeoHelper
return SeoHelper

enableOpenGraph() public method

Enable the OpenGraph.
public enableOpenGraph ( ) : SeoHelper
return SeoHelper

enableTwitter() public method

Enable the Twitter Card.
public enableTwitter ( ) : SeoHelper
return SeoHelper

meta() public method

Get SeoMeta instance.
public meta ( ) : Arcanedev\SeoHelper\Contracts\SeoMeta
return Arcanedev\SeoHelper\Contracts\SeoMeta

og() public method

Get SeoOpenGraph instance (alias).
See also: openGraph()
public og ( ) : Arcanedev\SeoHelper\Contracts\SeoOpenGraph
return Arcanedev\SeoHelper\Contracts\SeoOpenGraph

openGraph() public method

Get SeoOpenGraph instance.
public openGraph ( ) : Arcanedev\SeoHelper\Contracts\SeoOpenGraph
return Arcanedev\SeoHelper\Contracts\SeoOpenGraph

render() public method

Render all seo tags.
public render ( ) : string
return string

renderHtml() public method

Render all seo tags with HtmlString object.
public renderHtml ( ) : Illuminate\Support\HtmlString
return Illuminate\Support\HtmlString

setDescription() public method

Set description.
public setDescription ( string $description ) : Arcanedev\SeoHelper\Contracts\SeoHelper
$description string
return Arcanedev\SeoHelper\Contracts\SeoHelper

setKeywords() public method

Set keywords.
public setKeywords ( array | string $keywords ) : SeoHelper
$keywords array | string
return SeoHelper

setSeoMeta() public method

Set SeoMeta instance.
public setSeoMeta ( Arcanedev\SeoHelper\Contracts\SeoMeta $seoMeta ) : SeoHelper
$seoMeta Arcanedev\SeoHelper\Contracts\SeoMeta
return SeoHelper

setSeoOpenGraph() public method

Get SeoOpenGraph instance.
public setSeoOpenGraph ( Arcanedev\SeoHelper\Contracts\SeoOpenGraph $seoOpenGraph ) : SeoHelper
$seoOpenGraph Arcanedev\SeoHelper\Contracts\SeoOpenGraph
return SeoHelper

setSeoTwitter() public method

Set SeoTwitter instance.
public setSeoTwitter ( Arcanedev\SeoHelper\Contracts\SeoTwitter $seoTwitter ) : SeoHelper
$seoTwitter Arcanedev\SeoHelper\Contracts\SeoTwitter
return SeoHelper

setSiteName() public method

Set the site name.
public setSiteName ( string $siteName ) : self
$siteName string
return self

setTitle() public method

Set title.
public setTitle ( string $title, string | null $siteName = null, string | null $separator = null ) : SeoHelper
$title string
$siteName string | null
$separator string | null
return SeoHelper

twitter() public method

Get SeoTwitter instance.
public twitter ( ) : Arcanedev\SeoHelper\Contracts\SeoTwitter
return Arcanedev\SeoHelper\Contracts\SeoTwitter