PHP code example of the-usual / greet
1. Go to this page and download the library: Download the-usual/greet library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
the-usual / greet example snippets
bash
php artisan vendor:publish --provider="TheUsual\Greet\ServiceProvider"
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use TheUsual\Greet\Greet;
class HomeController extends Controller
{
public function greet()
{
echo Greet::hello('John Doe');
}
}