dotenv-org / phpdotenv-vault

Load environment variables from encrypted .env.vault files
https://www.dotenv.org/docs/languages/php
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

Why npx? #12

Closed abmmhasan closed 7 months ago

abmmhasan commented 7 months ago

Writing a library for PHP but requiring Node.Js (The NPX)? Why not using PHP's in built system?

motdotla commented 7 months ago

because the cli library is different than the PHP lib. The PHP lib does decryption and injection of .env.vault only. the cli library - which is built with node and distributed via npx - contains all the api coordination with vault.dotenv.org.

motdotla commented 7 months ago

that said, if using PHP you might also prefer dotenvx