PHP library for different apis