I would like to try out Capistrano to deploy a PHP application but can't see an option for replacing tokens in config files for different environments.
I'm using the Slim microframework which just uses an array in index.php for config variables like database username etc. I would like to put tokens such as %dbuser% in there which would be replaced at deploy time based on whether I am deploying to staging or production.
Is this possible in Capistrano? Or would I use something like Phing to do this?