Connection between two applications - REST API

Hi, Everyone!

I have to make a connection between to Yii applications - let’s say: app A and app B.

I know, I have to use a REST API. With help of this article I implemented a REST API in my applications, but I have no idea, how to connect them.

Can you give me some advices, please?

Both apps are working on my localhost, is that not a problem?

you need to use some socket/CURL functions, or just use an extension for example this one: