PHP code example of qbhy / hyperf-multi-env
1. Go to this page and download the library: Download qbhy/hyperf-multi-env 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/ */
qbhy / hyperf-multi-env example snippets
bash
$ export APP_ENV=production && php bin/hyperf.php start
xml
<phpunit>
<!--其他配置-->
<php>
<env name="APP_ENV" value="testing"/>
</php>
</phpunit>