3 ms·
I deal mostly in PHP and never thought that making API requests was hard. Am I lost? The hard part is dealing with the fact that APIs are not standardized, eve
by mtnGoat 5y ago
I deal mostly in PHP and never thought that making API requests was hard. Am I lost?
The hard part is dealing with the fact that APIs are not standardized, even within the same company.
- deweller 5y agoIt is not difficult but it can end up being more hard-coded than it should be. The author of this package is attempting to help Laravel users standardize their API client code and centralize those hard-coded bits in one place. It isn't groundbreaking, but it could be useful in larger projects or across several projects.
- 9dev 5y agoMy feeling is the opposite- this is just overengineering, adding more code to test and maintain. The simple solution is what countless others have suggested - build a simple client, configure it using standard Laravel mechanisms and dependency injection. An API Call is just a method on the service class.