Remove api and use from composer