add package.php script from trunk branch