PHP code example of rafael-lassance / buscador-cursos

1. Go to this page and download the library: Download rafael-lassance/buscador-cursos 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/ */

    

rafael-lassance / buscador-cursos example snippets





use Alura\BuscadorDeCursos\Buscador;
use GuzzleHttp\Client;
use Symfony\Component\DomCrawler\Crawler;

 Buscador($client, $crawler);

$cursos = $buscador->buscar("cursos-online-programacao/php");

foreach ($cursos as $curso) {
    exibeMensagem($curso);
}