<commit_before># Manage the Page Title in Blade views

[![Build Status](https://travis-ci.org/rephluX/laravel-pagetitle.svg?branch=master)](https://travis-ci.org/rephluX/laravel-pagetitle)
[![Latest Stable Version](https://poser.pugx.org/rephlux/pagetitle/v/stable.svg)](https://packagist.org/packages/rephlux/pagetitle)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rephluX/laravel-pagetitle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/rephluX/laravel-pagetitle/?branch=master)
[![License](https://poser.pugx.org/rephlux/pagetitle/license.svg)](https://packagist.org/packages/rephlux/pagetitle)

Often, you'll find yourself in situations, where you want to have more to control how to set a page title for your
different views. Although it is possible to yield your page title in a master view it can be a hassle to deal with
the format like a delimeter usage or to append/prepend a default page title.

This package simplifies the process.

## Installation

Begin by installing this package through Composer:

```bash
composer require rephlux/pagetitle
```

### Laravel Users

If you are a Laravel user, then there is a service provider that need to add to your `config/app.php` file.

```php
'providers' => [
    '...',
    Rephlux\PageTitle\PageTitleServiceProvider::class
];
```

This package also provides a facade, which you may also register in your `config/app.php` as well if you want to use the facade in your controllers and views:

```php
 'aliases' => [
     '...'
     'PageTitle' => Rephlux\PageTitle\Facades\PageTitle::class,
 ]
```

## Useage

 To simple add a single page title, call the appropiate `add()` method with passing a string as a parameter:

```php
public function index()
{
    \PageTitle::add('Welcome to our Homepage');

    return view('hello');
}
```

You can also make use of the global `pagetitle` helper function.

```php
public function index()
{
    pagetitle('Welcome to our Homepage');

    return view('hello');
}<commit_msg>Add note for package discovery to readme<commit_after># Manage the Page Title in Blade views

[![Build Status](https://travis-ci.org/rephluX/laravel-pagetitle.svg?branch=master)](https://travis-ci.org/rephluX/laravel-pagetitle)
[![Latest Stable Version](https://poser.pugx.org/rephlux/pagetitle/v/stable.svg)](https://packagist.org/packages/rephlux/pagetitle)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rephluX/laravel-pagetitle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/rephluX/laravel-pagetitle/?branch=master)
[![License](https://poser.pugx.org/rephlux/pagetitle/license.svg)](https://packagist.org/packages/rephlux/pagetitle)

Often, you'll find yourself in situations, where you want to have more to control how to set a page title for your
different views. Although it is possible to yield your page title in a master view it can be a hassle to deal with
the format like a delimeter usage or to append/prepend a default page title.

This package simplifies the process.

## Installation

Begin by installing this package through Composer:

```bash
composer require rephlux/pagetitle
```

### Laravel Users

If you are a Laravel user, then there is a service provider that need to add to your `config/app.php` file.

```php
'providers' => [
    '...',
    Rephlux\PageTitle\PageTitleServiceProvider::class
];
```

This package also provides a facade, which you may also register in your `config/app.php` as well if you want to use the facade in your controllers and views:

```php
 'aliases' => [
     '...'
     'PageTitle' => Rephlux\PageTitle\Facades\PageTitle::class,
 ]
```
> In Laravel 5.5, [service providers and aliases are automatically registered](https://laravel.com/docs/5.5/packages#package-discovery). If you're using Laravel 5.5, you can skip these steps.

## Useage

 To simple add a single page title, call the appropiate `add()` method with passing a string as a parameter:

```php
public function index()
{
    \PageTitle::add('Welcome to our Homepage');

    return view('hello');
}
```

You can also make use of the global `pagetitle` helper function.

```php
public function index()
{
    pagetitle('Welcome to our Homepage');

    return view('hello');
}
{'fraction_non_alphanumeric': 0.1246150201374082, 'fraction_numerical': 0.0014214641080312722, 'mean_word_length': 4.526178010471204, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 17, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5538503', 'n_tokens_mistral': 1390, 'n_tokens_neox': 1324, 'n_words': 426}