Download the PHP package gaaarfild/laravel-title without Composer
On this page you can find all versions of the php package gaaarfild/laravel-title. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gaaarfild/laravel-title
More information about gaaarfild/laravel-title
Files in gaaarfild/laravel-title
Package laravel-title
Short Description Convenient seo-titles assembler for your web application
License MIT
Informations about the package laravel-title
Laravel Easy Seo Titles
Let your site to have nice SEO-titles on Laravel 5.
Sometimes, creating seo-titles may be tricky. Just try this package and you will be happy!
Install
Add
to your composer.json
file into require
section.
Then type in console
When update completed, add to your config/app.conf
file to providers
section
If you want to use Title
facade, add to same file at the aliases
section
Publishing configs
Type in your console:
Usage
Add segment to the end
Add segment to the beginning
Display title
Additionally, you can add parameters to this method:
- first parameter
$delimiter
sets the delimiter config manually. Ifnull
, will be used default delimiter - second parameter
$no_additions
will cancel suffix and prefix adding to rendered title. Also setson_empty
config parameter to empty string.
This method is similar to render()
method, except it will render title in reversed order.
Check if segments exist
Render custom title
Method will return title with your own params
Clear title stack
Method will empty title segments.
Get raw segments array
Get segments in JSON-object
Plans
- add variables to JS export
- additional meta-tags
Contributions
Contributions are highly appreciated.
Send your pull requests to master
branch.
License
The MIT License (MIT). Please see License File for more information.