2017 © Pedro Peláez
 

library title

Simple class for creating page titles.

image

netsells/title

Simple class for creating page titles.

  • Monday, May 16, 2016
  • by craigsansam
  • Repository
  • 1 Watchers
  • 0 Stars
  • 243 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Netsells Title

Install

Pull this package in through Composer., (*1)

{
    "require": {
    "netsells/title": "~0.5"
}

Add the following to your config/app.php, (*2)

'providers' => [
    '...',
    'Radiula\Title\TitleServiceProvider'
];

'aliases' => [
    '...',
    'Title' => 'Radiula\Title\Facades\Title',
];

Usage

Set the site title

Title::siteName('Acme Site');

Set one or more segments

Title::segment('Foo', 'Bar');

Make the title

Title::make();

Overriding the layout

Title::layout('%s - %s');

Getting all segments

Title::segments();

Overriding all segments

Title::setSegments(['Foo', 'Bar']);

Return Last Segment

Title::last();   

Running the siteName and segment methods with the above properties (and the default layout), would cause make to output the following, (*3)

Foo | Bar | Acme Site

The Versions

16/05 2016

dev-master

9999999-dev

Simple class for creating page titles.

  Sources   Download

The Requires

 

by Craig Sansam
by Sam Jordan