PHP code example of czogori / rentgen

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

    

czogori / rentgen example snippets


$rentgen = new Rentgen();
$manipulation = $rentgen->createManipulationInstance();

$table = new Table('foo');
$table->addColumn(new StringColumn('bar'));
$table->addColumn(new IntegerColumn('baz', array('not_null' => true)));
$manipulation->create($table);

$info = $rentgen->createInfoInstance();
$fooTable = $info->getTable(new Table('foo'));