V
V
vism2017-04-06 00:19:59
PHP
vism, 2017-04-06 00:19:59

Is there a template for REST API client in PHP?

Often there are tasks to make a rest client for something.
Previously govnokodil it and well.
I want to make beautiful clients according to a template, with data models, a factory.
Today I spent 6 hours and deleted everything that I had coded, because. shit happened.
Ideally, I see the initialization class, the ability to change clients (gazzl by default), convenient maintainability, data models for describing requests and responses, setting up entities.
I couldn't code it myself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dmitriy, 2017-04-06
@dmitriylanets

there is swagger, it allows you to generate a client for rest api, among which there is a php option.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question