PHP Class Artesaos\SEOTools\SEOTools

Inheritance: implements Artesaos\SEOTools\Contracts\SEOTools
ファイルを表示 Open project: artesaos/seotools Class Usage Examples

Public Methods

Method Description
addImages ( array | string $urls ) : Artesaos\SEOTools\Contracts\SEOTools
generate ( boolean $minify = false ) : string Generate from all seo providers.
getTitle ( boolean $session = false ) : string Get current title from metatags.
metatags ( ) : Artesaos\SEOTools\Contracts\MetaTags
opengraph ( ) : Artesaos\SEOTools\Contracts\OpenGraph
setCanonical ( string $url ) : Artesaos\SEOTools\Contracts\SEOTools Sets the canonical URL.
setDescription ( $description ) : Artesaos\SEOTools\Contracts\SEOTools Setup description for all seo providers.
setTitle ( string $title ) : Artesaos\SEOTools\Contracts\SEOTools Setup title for all seo providers.
twitter ( ) : Artesaos\SEOTools\Contracts\TwitterCards

Method Details

addImages() public method

public addImages ( array | string $urls ) : Artesaos\SEOTools\Contracts\SEOTools
$urls array | string
return Artesaos\SEOTools\Contracts\SEOTools

generate() public method

Generate from all seo providers.
public generate ( boolean $minify = false ) : string
$minify boolean
return string

getTitle() public method

Get current title from metatags.
public getTitle ( boolean $session = false ) : string
$session boolean
return string

metatags() public method

public metatags ( ) : Artesaos\SEOTools\Contracts\MetaTags
return Artesaos\SEOTools\Contracts\MetaTags

opengraph() public method

public opengraph ( ) : Artesaos\SEOTools\Contracts\OpenGraph
return Artesaos\SEOTools\Contracts\OpenGraph

setCanonical() public method

Sets the canonical URL.
public setCanonical ( string $url ) : Artesaos\SEOTools\Contracts\SEOTools
$url string
return Artesaos\SEOTools\Contracts\SEOTools

setDescription() public method

Setup description for all seo providers.
public setDescription ( $description ) : Artesaos\SEOTools\Contracts\SEOTools
$description
return Artesaos\SEOTools\Contracts\SEOTools

setTitle() public method

Setup title for all seo providers.
public setTitle ( string $title ) : Artesaos\SEOTools\Contracts\SEOTools
$title string
return Artesaos\SEOTools\Contracts\SEOTools

twitter() public method

public twitter ( ) : Artesaos\SEOTools\Contracts\TwitterCards
return Artesaos\SEOTools\Contracts\TwitterCards