a interface for method

add interface and do a naive implementtion for test

add tests to perform and hasSuccess

add required php version

naive config for travis ci

add license(MIT)