1. Go to this page and download the library: Download hellfull/grvocative 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/ */
// Make a new class instance
$introduce = new Grvocative\Introduce();
// Get attributes separately:
$gender = $introduce->getGender(somefirstname);
// will output "female" or "male"
$title = $introduce->makeTitle(somefirstname);
// will output "ΚΥΡΙΕ" or "ΚΥΡΙΑ"
$nickName = $introduce->makeNickName(somefirstname,somelastname);
// for somefirstname = "ΤΥΧΑΙΟΣ", somelastname = "ΤΥΧΑΙΪΔΗΣ"
// will output "TYXAIE ΤΥΧΑΙΪΔΗ"
// You can get all attributes in object with
// attributes gender, title, nickName doing :
$vocatives = $introduce->vocatives(somefirstname, somelastname);
echo $vocatives->title . " " . $vocatives->nickName;
// "ΚΥΡΙΕ ΤΥΧΑΙΕ ΤΥΧΑΙΟΠΟΥΛΕ"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.