tuhin18003 / the-greet
Greeting based on time and with option to add name at the end of the line
v1.0.1
2023-01-03 08:48 UTC
Requires
- php: >=7.2.5
This package is auto-updated.
Last update: 2025-03-29 01:16:51 UTC
README
Greeting based on time and with option to add name at the end of the line.
Install
Via Composer
$ composer require tuhin18003/the-greet
Usage
require './vendor/autoload.php';
It takes 2 parameters. First one is person name Jon Doe
and second one is date format l F j, Y
. Skip the second parameter to un-publish date.
$Greet->hello('Jon Doe', 'l F j, Y' )
use Tuhin18003\Greet\Greet;
$Greet= new Greet();
echo $Greet->hello('Jon Doe', 'l F j, Y' );
Output
Good morning Jon Doe. Today is Tuesday January 3, 2023
Credentials
- Created by - M.Tuhin