Download the PHP package quintype/seo without Composer
On this page you can find all versions of the php package quintype/seo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package seo
quintype-seo-php
A composer package for SEO for all quintype projects
Important : If any change is made to the package, do the following.
- Create a new release.
- Update the package in Packagist.
- To use the new version of the package in any project, change the version number in composer.json file and run
$ composer update
Note : We are making use of a package called Meta (https://github.com/quintype/meta) forked from https://github.com/RyanNielson/meta for dynamically adding the meta tags into the pages.
Instructions to include the package into a project.
In composer.json, require Meta and SEO packages.
Install or update the composer packages.
In the Laravel config/app.php file, add aliases to the packages for convenience.
Add an attribute called 'title' in config/quintype.php file as a fall-back value if it is not received from the config API.
Include both Meta and SEO classes in the necessary controllers.
Create a constructor function to initialize the Meta and SEO objects. Do not forget to pass the config(merge local config and config from API response) while initializing the Seo instance.
Prepare the data required for meta tags using these available functions.
In the function to render the view, pass the meta data.
In the \ tag of layout.twig file(or the container twig file of the project), call the function to add the meta tags.
AVAILABLE FUNCTIONS
-
home($pageType)
-
search($searchKeyword)
-
section($pageType, $sectionName, $sectionId)
-
staticPage($title)
-
story($pageType, $storyArray)
- tag($tagName)
All versions of seo with dependencies
PHP Build Version
Package Version
No informations.
The package quintype/seo contains the following files
Loading the files please wait ....