Closed gusdecool closed 7 months ago
Ah i see. So when installing amphp/http-client: v4
composer.json
"amphp/amp": "^2.6",
"amphp/http-client": "^4.6",
It actually installed AMP v2. not the v3. I only known that after explicitly requiring "amphp/amp"
Thus why I did not find the AMP/FUTURE.
Thanks @Bilge . I'm closing this ticket.
amphp/http-client
v4 is not compatible with Amp v3. You need amphp/http-client
v5.
It looks like the docs not up to date?
This is my first time using AMPHP library and I found it difficult to understand how to use this library.
When I tried the example shown in README.md like in this link https://github.com/amphp/amp?tab=readme-ov-file#await
The class
Amp\Future
not even exist. Perhaps it was renamed or removed into something else?Question
Where is the best place to look for the simplest and minimalist example to see this library in effect?
(no promises, but hopefully I can help to update the docs)