PHP + AGI + Asterisk

Please kindly advise, is it possible to setup PHP with AGI without using PHPAGI.
Just using raw PHP + AGI + Asterisk.
Please advise.

Yes, you can use whatever you want.

Ok ,this means i can actually do my own scripting and not use an AGI Scripting framework ?

http://asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/AGI.html

PHPAGI class make your like easier, but you are not limited to use it you can use PHP + Asterisk and no clasess needed

#!/usr/bin/php -q

<?php

echo "ANSWER";

echo "\n";

echo  "EXEC saydigits $argv[1]";

echo "\n";

echo "EXEC  read   d,demo-thanks,1";

echo "\n";

?>

Thanks , i will use the class then to simply my life.