PHP code example of zoclee / flux

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

    

zoclee / flux example snippets

bash
sudo apt update
sudo apt install -y ca-certificates composer git postgresql php-cli php-pgsql unzip
php -v
php -m | grep -E 'openssl|PDO|pdo_pgsql'
bash
cd /opt/zoclee/fluxq
sudo -u fluxq php fluxq db:status
sudo -u fluxq php fluxq migrate
bash
cd /opt/zoclee/fluxq
sudo -u fluxq php fluxq user:create app
sudo -u fluxq php fluxq user:grant-vhost app /
sudo -u fluxq php fluxq user:set-permissions app / ".*" ".*" ".*"
bash
systemctl status fluxq
cd /opt/zoclee/fluxq
sudo -u fluxq php fluxq health
sudo -u fluxq php fluxq readiness
bash
php fluxq server:start
text
FLUXQ_AMQP_ENABLED
FLUXQ_AMQP_HOST
FLUXQ_AMQP_PORT
FLUXQ_AMQP_HEARTBEAT
text
FLUXQ_AMQP_TLS_ENABLED
FLUXQ_AMQP_TLS_HOST
FLUXQ_AMQP_TLS_PORT
FLUXQ_AMQP_TLS_CERT
FLUXQ_AMQP_TLS_KEY
FLUXQ_AMQP_TLS_CA
bash
php fluxq db:status
bash
php fluxq migrate