use Genderize;
Genderize::name(['John', 'Jane'])->get();
// or for better readability you can use the plural
Genderize::names(['John', 'Jane'])->get();
use Genderize;
Genderize::name('John')->country('US')->lang('EN')->get();
use Genderize;
$response = Genderize::names(['John', 'Jane'])->country('US')->lang('EN')->get();
foreach($response->result as $row)
{
print $row->name;
}
use Genderize;
$response = Genderize::name('Peter')->get();
print $response->meta->code; // 200 - HTTP response code
print $response->meta->limit; // 1000 - Max number of allowed requests
print $response->meta->remaining; // 950 - Number of requests left
print $response->meta->reset->diffInSeconds(); // Carbon\Carbon - time left till reset
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.