the-usual / greet
A greet
v1.1.1
2021-10-12 01:42 UTC
Requires
- php: >=7.2
- illuminate/support: ^6.0|^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^4.0|^5.0|^6.0
- phpunit/phpunit: ^8.4|^9.0
README
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.