GENDER API PHP-LEGACY

First install our library with composer:

See full client documentation here:

https://github.com/markus-perl/gender-api-client

functiongetGender($firstname){$myKey='insert your server key here';$data=json_decode(file_get_contents('https://gender-api.com/get?key='.$myKey.'&name='.urlencode($firstname)));return$data->gender;}echogetGender('markus');//Output: male

First install our library with npm:

See full client documentation here:

https://github.com/markus-perl/gender-api-client-npm

First install our library with npm:

See full client documentation here:

https://github.com/markus-perl/gender-api-client-npm

Chat
close