1. Go to this page and download the library: Download rekamy/generator 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/ */
rekamy / generator example snippets
// Setup your application name here(For Swagger Use).
'app_name' => env('APP_NAME'),
// Which file would you like to generate. Set the value to false you don't want to generate.
'generate' => [
// ...
],
// Database configuration. Set your database name here or from .env and exclude any tables you don't want to generate
'database' => [
// Database name
'name' => env('DB_DATABASE'),
// Exclude table name
'exclude_tables' => [
// ...
]
],
// Path is where you want the generator to generate.
'path' => [
// ...
],
// Namespace for the generated files.
'namespace' => [
// ...
],
// options is an add on you can disable these options by setting the value to false
'options' => [
// ...
]