PHP code example of ejosterberg / opensalestax-quickbooks-online

1. Go to this page and download the library: Download ejosterberg/opensalestax-quickbooks-online 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/ */

    

ejosterberg / opensalestax-quickbooks-online example snippets

bash
composer create-project ejosterberg/opensalestax-quickbooks-online /opt/ost-qbo-sidecar
cd /opt/ost-qbo-sidecar
mkdir -p var
php -r "echo base64_encode(random_bytes(32)), \"\n\";"   # paste into QBO_TOKEN_ENCRYPTION_KEY
cp .env.example .env
# edit .env with your values
bash
bin/console webhook:listen
# starts PHP -S 0.0.0.0:8181 with bin/sidecar.php as the entry script