定制 netsells/title 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

netsells/title

最新稳定版本:3.0

Composer 安装命令:

composer require netsells/title

包简介

A simple package for building and displaying page titles.

README 文档

README

Install

Pull this package in through Composer.

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

Add the following to your config/app.php

'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

Foo | Bar | Acme Site

统计信息

  • 总下载量: 7.68k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-03-12