Hook any php file into the wordpress api

You mean something like this?

<?php
require 'path/to/wordpress/wp-blog-header.php';
bloginfo('url');
?>

tech