Boa tarde, Não estou conseguindo executar o código está dando um erro, segue abaixo o código e o erro:
buscar-cursos.php
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
use Symfony\Component\DomCrawler\Crawler;
$client = new Client();
$resposta = $client->request('GET','https://www.alura.com.br/cursos-online-programacao/php');
$html = $resposta->getBody();
$crawler = new Crawler();
$crawler-> addHtmlContent($html);
$cursos = $crawler->filter('span.card-curso__nome');
foreach ($cursos as $curso) {
echo $curso->textContent . PHP_EOL;
}
O erro. PHP Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.alura.com.br/cursos-online-programacao/php in C:\Users\felip\00-composer\buscador-cursos-alura\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:211 Stack trace:
#0 C:\Users\felip\00-composer\buscador-cursos-alura\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(158): GuzzleHttp\Handler\CurlFactory::createRejection()
#1 C:\Users\felip\00-composer\buscador-cursos-alura\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(110): GuzzleHttp\Handler\CurlFactory::finishError()
#2 C:\Users\felip\00-composer\buscador-cursos-alura\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(47): GuzzleHttp\Handler\CurlFactory::finish()
#3 C:\Users\felip\00-composer\buscador-cursos-alura\vendor\guzzlehttp\guzzle\src\Handler\Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke()
#4 C:\Users\felip\00-composer\buscador-curs in C:\Users\felip\00-composer\buscador-cursos-alura\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 211