PHP code example of nestboxphp / nestbox

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

    

nestboxphp / nestbox example snippets


use NestboxPHP\Nestbox;

$nest = new Nestbox($dbHost, $dbUser, $dbPass, $dbName);

try {
    if( $nest->query_execute( "SELECT * FROM `users`;" )) {
        $users = $nest->results();
    }
} catch ( NestboxException $exception ) {
    die( $exception->getMessage());
}