curl http url
composer require "yehchge/ycurl"
curl url
<?php declare(strict_types=1);
include "vendor/autoload.php";
use yehchge\ycurl\CCurl;
// sample get
$CCurl = new CCurl();
$output = $CCurl->fetch('GET', 'https://example.com/');
if(preg_match("/Example Domain/", $output)){
echo "A match was found.";
}else{
echo "A match was not found.";
}