PHP code example of err404 / table-creator

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

    

err404 / table-creator example snippets


use App\TableCreator;

$table = new TableCreator( 'mytable' );
$table->integer('id', 11, '', true );
$table->up();

$table = new TableCreator( 'mytable' );
$table->integer('id', 11, '', true );
$table->string('name' );
$table->string('description' );
$table->up();