the-usual/greet

v1.1.1 2021-10-12 01:42 UTC

This package is auto-updated.

Last update: 2024-10-21 09:05:05 UTC


README

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.