added the php files, tests, travis yml