yehchge / ycurl
curl Http get & post in wordpress
v1.0.2
2023-07-20 04:25 UTC
Requires
- php: >=5.3.0
Suggests
- ext-curl: Required for CURL handler support
This package is auto-updated.
Last update: 2024-12-20 09:13:48 UTC
README
curl http url
Installation
composer require "yehchge/ycurl"
Basic Usage
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."; }