PHP code example of zachleigh / pronounce-php

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

    

zachleigh / pronounce-php example snippets


composer 

pronounce-php command [argument]  [options]

pronounce-php all --destination=file --file=my_file.txt

./pronounce-php all --fields=word,ipa,spelling


Lines in file will look like this:
accepting / æksɛ'ptɪŋ / akse'pting /

pronounce-php hyphenate words_to_hyphenate --destination=file

pronounce-php hyphenate words_to_hyphenate --destination=file --file=my_file.txt

pronounce-php hyphenate words_to_hyphenate --symbol=/

./pronounce-php hyphenate reading,eating,shopping --destination=file --file=hyphen.txt


Successfully wrote to hyphen.txt

pronounce-php lookup words_to_lookup --destination=file --file=my_file.txt