Skip to content

uekichinos/tus.greet

Repository files navigation

TUS.Greet

Run tests StyleCI Packagist

Build for Laravel, this package is all about the usual "Good ..." greeting based on time and with option to add name at the end link "Good ..., John Doe". coffee for me?

Link to Packagist

Installation

Install via composer

composer require the-usual/greet

Publish package assets

php artisan vendor:publish --provider="TheUsual\Greet\ServiceProvider"

Usage

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use TheUsual\Greet\Greet;

class HomeController extends Controller
{
    public function greet()
    {
        echo Greet::hello('John Doe');
    }
}

This package is bootstrapped with the help of melihovv/laravel-package-generator.