PHP code example of mathsgod / puxt-vx

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

    

mathsgod / puxt-vx example snippets




//
header("Access-Control-Allow-Origin: http://localhost:3000");
header("Access-Control-Allow-Credentials: true");
header("Access-Control-Allow-Headers: Content-Type, Authorization");
header("Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, PATCH, HEAD, DELETE");
header("Access-Control-Expose-Headers: location, Content-Location");


$app = new PUXT\App();
$app->pipe(VX::class);
$app->run();

$fs=$vx->getFileSystem(1); // use file manager 1
ini
VX_FILE_MANAGER_0=local
VX_FILE_MANAGER_0_PATH=/var/www/html/uploads
ini
VX_DEBUG=1