PHP code example of codelayer / bubblewrap

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

    

codelayer / bubblewrap example snippets


$bwrap = new \Codelayer\Bubblewrap\Bubblewrap();

$bwrap
    ->readOnlyBind('/usr') // If src equals dest only one parameter is s default location for devtmpfs
    ->unsharePid()
    ->exec(['bash']);