Answer the question
In order to leave comments, you need to log in
Facade over API requests. How to collect objects, their information and pack them into one request?
There is an API wrapper for requests. They are built in such a way that in one http request you can send another batch inside for fetching, changing, creating data, etc.
I wanted to make a static facade, like this:
Users::find($user_id);
Users::create(['name' => 'foobar']);
$s = new Service($id);
$s->field = 'FooBar';
$s->update();
Reference::findByType(Type::ORGS);
Answer the question
In order to leave comments, you need to log in
Why mix everything up? Such scripts are usually built on the REST architecture.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question