1. Go to this page and download the library: Download elvesora/enrichment-laravel 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/ */
elvesora / enrichment-laravel example snippets
namespace App\Services;
use Elvesora\Enrichment\Laravel\Contracts\EnrichmentClientInterface;
use Elvesora\Enrichment\Laravel\EnrichmentResult;
final class EnrichAccount
{
public function __construct(
private readonly EnrichmentClientInterface $enrichment,
) {
}
public function handle(string $domain, string $jobId): EnrichmentResult
{
return $this->enrichment->enrich(
domain: $domain,
idempotencyKey: $jobId,
);
}
}