PHP code example of rev / sway-expage

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

    

rev / sway-expage example snippets


use Rev\ExPage;

$exPage = new ExPage\Manager(true,[
    'dirname' => __DIR__,
    'filelog' => 'default.log',
    'template' => 'default',
    'separate' => [
        'errors' => 'errors.log',
        'exceptions' => 'exceptions.log'
    ],
    'cli_view' => [
        'error' => [
            'show_file' => true,
            'show_line' => true,
            'show_scope' => true
        ],
        'exception' => [
            'show_file' => true,
            'show_line' => true,
            'show_trace' => true
        ]
    ]
]);