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 ?

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


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.