PHP code example of dleno / hyperf-env-multi
1. Go to this page and download the library: Download dleno/hyperf-env-multi library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dleno / hyperf-env-multi example snippets
bash
$ export APP_ENV=production && php bin/hyperf.php start
xml
<phpunit>
<!--其他配置-->
<php>
<env name="APP_ENV" value="testing"/>
</php>
</phpunit>