reactphp / reactphp

Event-driven, non-blocking I/O with PHP.

Home Page:https://reactphp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use without composer

opened this issue · comments

Hi,
I'm using PHP 7.2.3 x64 on Windows 10 (IIS 10).
Since I can't install composer on windows (installer or manual install not working).
Tried it for couple of days without luck.
Any chance I can use it without composer?

Thanks

This project highly recommends using Composer because it's the only sane way to manage our dependencies. That being said, it doesn't strictly require Composer for installation (neither do most other PHP projects). Manual installation requires some (significant) effort and is not really related to this project at all. I would suggest using some platform like Stackoverflow to figure out what's going on with your installation issues or asking for possible alternatives there.

I hope this helps 👍

Solved:

  • Install ubuntu on virtual machine
  • Install php 7.2 with dependencies
  • Install composer
  • Install react (full) with composer
  • zip the whole vendor directory
  • copy to development windows machine and extract it
  • simple include_once "vendor/autoload.php"; vill solve everything then

but again, there should be a simple solution...

Happy to hear you've got this solved one way or another! 👍

There are a number of solutions to this particular problem – neither of which is related to this project. I'd say this is a decent approach if it works for your use case 👍

@mlhkr you can install composer on windows. Please refer https://getcomposer.org/download/ for more information.

maybe you've not included php.exe to PATH variables.

SET PATH=%PATH%;C:\your\php\executable\path