$ composer.phar require trismegiste/wam-prolog
Open a command line interface and type :
php prolog.php
See the file test WAMService1Test.php for a real example
$wam = new WAMService();
$solve = $wam->runQuery("consult('" . __DIR__ . '/fixtures/' . "fixtures1.pro').");
$solve = $wam->runQuery("grandmother(X, luke).");