Yes, you can run PHP from the command line. If you are using the CGI version then you are ready to go, if not then you will need to recompile for a CGI binary (it won't affect current install if you do not "make install" it.
After that you would create a cron job to run each evening that would execute the php script.
For example:
Would run this php script once per minute.
See man crontab for more info on setting up your crontabs.
Jack