Added initial PHP api

Signed-off-by: Edvan Macedo <edvan.macedo.jr@gmail.com>