PHP code example of nataniel / vocative

1. Go to this page and download the library: Download nataniel/vocative 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/ */

    

nataniel / vocative example snippets


use Nataniel\Vocative;
$vocative = new Vocative();

echo $vocative->invoke('Kasia');
# Kasiu

echo $vocative->invoke('Mściwój Kowalski');
# Mściwoju