PHP code example of codegaf / crudviewgenerator

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

    

codegaf / crudviewgenerator example snippets

 php
'form' => [
   'name' => [
       'input' => 'text',
       'id' => 'name',
       'label' => 'global.name'
   ],

   'surname' => [
       'input' => 'text',
       'id' => 'surname',
       'label' => 'global.surname'
   ],

   'email' => [
       'input' => 'email',
       'id' => 'email',
       'label' => 'global.email'
   ],

   'phone' => [
       'input' => 'text',
       'id' => 'phone',
       'label' => 'global.phone'
   ],

   'born_date' => [
       'input' => 'date',
       'id' => 'born_date',
       'label' => 'global.born_date'
   ],

],