add api.php to composer.json