PHP code example of pianzhou / hyperf-serve

1. Go to this page and download the library: Download pianzhou/hyperf-serve 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/ */

    

pianzhou / hyperf-serve example snippets


php ./bin/hyperf.php start

php ./bin/hyperf.php serve:reload

php ./bin/hyperf.php serve:stop

php ./bin/hyperf.php vendor:publish pianzhou/hyperf-serve
chmod +x ./bin/watcher
./bin/watcher

./bin/watcher --command="docker exec -d mydocker php /opt/www/bin/hyperf.php serve:reload"

        ...
        echo "upload_max_filesize=128M"; \
        echo "post_max_size=128M"; \
        echo "memory_limit=1G"; \
        echo "date.timezone=${TIMEZONE}"; \
        echo "opcache.enable_cli=Off"; \
        ...