Can you define the required operating system in the composer?

0

I built a PHP package for composer deployment, however, it only works on Windows machines. Can composer.json be specified in this constraint?

    
asked by anonymous 16.11.2016 / 18:48

1 answer

0

Searching did not find anything limiting the installation on machines with SO's incompatible. But it is strange to me that a package that only serves in an SO since PHP is an interpreted language and not compiled.

But I think it's impossible to make such a limitation, since Composer is for managing dependencies, I think the most you can do is set a version for PHP , already that Composer is a PHP package manager.

    
16.11.2016 / 18:59