<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
use Symfony\Component\DomCrawler\Crawler;
$client = new Client();
$response = $client -> request('GET', 'https://www.alura.com.br/cursos-online-programacao/php');
$html = $response -> getBody();
$crawler = new Crawler();
$crawler -> addHtmlContent($html);
$cursos = $crawler -> filter('span.card-curso__nome');
foreach ($cursos as $curso) {
echo $curso -> textContent . PHP_EOL;
}
Quando executo o código dá o seguinte 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\super\OneDrive\Documentos\alura\alura-front-end\aluracurso-php-composer\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:211