Download the PHP package tsawler/seotools without Composer
On this page you can find all versions of the php package tsawler/seotools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package seotools
SEOTools - SEO Tools for Laravel and Lumen
SEOTools is a package for Laravel 5+ and Lumen that provides helpers for some common SEO techniques. This is forked from artesaos/seotools.
Features
- Friendly Interface
- Ease of set titles and meta tags
- Ease of set metas for twitter and opengraph
Installation
1 - Dependency
The first step is using composer to install the package and automatically update your composer.json
file, you can do this by running:
Note: If you are using Laravel 5.5 or greater, the steps 2 and 3, for providers and aliases, are unnecessary. SEOTools supports Laravel new Package Discovery.
2 - Provider
You need to update your application configuration in order to register the package so it can be loaded by Laravel, just update your config/app.php
file adding the following code at the end of your 'providers'
section:
config/app.php
Lumen
Go to /bootstrap/app.php
file and add this line:
3 - Facade
Facades are not supported in Lumen.
In order to use the SEOMeta
facade, you need to register it on the config/app.php
file, you can do that the following way:
4 Configuration
Publish config
In your terminal type
or
Lumen does not support this command, for it you should copy the file
src/resources/config/seotools.php
toconfig/seotools.php
of your project
In seotools.php
configuration file you can determine the properties of the default values and some behaviors.
seotools.php
- meta
- defaults - What values are displayed if not specified any value for the page display. If the value is
false
, nothing is displayed. - webmaster - Are the settings of tags values for major webmaster tools. If you are
null
nothing is displayed.
- defaults - What values are displayed if not specified any value for the page display. If the value is
- opengraph
- defaults - Are the properties that will always be displayed and when no other value is set instead. You can add additional tags that are not included in the original configuration file.
- twitter
- defaults - Are the properties that will always be displayed and when no other value is set instead. You can add additional tags that are not included in the original configuration file.
5 - Usage
Facades are not supported in Lumen.
Lumen Usage
Meta tags Generator
With SEOMeta you can create meta tags to the head
Opengraph tags Generator
With OpenGraph you can create opengraph tags to the head
Twitter for Twitter Cards tags Generator
With Twitter you can create opengraph tags to the head
In your controller
SEOTrait
In Your View
Pro Tip: Pass the parameter
true
to get minified code and reduce filesize.
API (SEOMeta)
API (OpenGraph)
API (TwitterCard)
API (SEO)
Facilitates access to all the SEO Providers
All versions of seotools with dependencies
illuminate/config Version 5.0.* || 5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.*
illuminate/support Version 5.0.* || 5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.*