Download the PHP package milankyncl/nette-seo without Composer
On this page you can find all versions of the php package milankyncl/nette-seo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download milankyncl/nette-seo
More information about milankyncl/nette-seo
Files in milankyncl/nette-seo
Package nette-seo
Short Description Nette SEO module for building SEO optimized website.
License GPL-3.0-or-later
Informations about the package nette-seo
Nette-framework SEO extension
Nette-framework SEO extension is a simple module to build head meta tags for website in simple steps.
Installation
Usage
-
Register extension in your file.
-
Set your preferences.
-
Inject SEOResolver factory and MetaTags component in your BasePresenter.
-
Create Seo Meta tags component (in BasePresenter) and in your action set title, description, or custom meta tags for your head. Use methods from documentation
- Place control macro in your .latte file.
Documentation
Configuration
site_name
Name of your site, will be showed in <title>
tag after/before page title and separator. Will set og:title
, twitter:title
, og:site_name
meta properies.
description
Description of your page, will set in description
, og:description
, twitter:description
meta properties.
type
Type of your object/content. More info about the property at ogp.me#types.
image
Preview image of your website. Will set og:image
, twitter:image
. You can specify only Url of image, or specify url
, width
and height
parameters.
separator
Separator in your <title>
element.
customTags
Custom meta tags. Key of array item will appear name
attribute and its value will appear in content
attribute.