PHP code example of inmanturbo / module-compiler
1. Go to this page and download the library: Download inmanturbo/module-compiler 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/ */
inmanturbo / module-compiler example snippets
// BEGIN_FILE: (app/Models/TestOne.php)
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class TestOne extends Model
{
use HasFactory;
}
// END_FILE
// BEGIN_FILE: (app/Models/TestTwo.php)
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class TestTwo extends Model
{
use HasFactory;
}
// END_FILE
bash
php artisan build test-one-two.php
bash
Created directory: /path/to/your/project/app/Models
Built file: app/Models/TestOne.php
Built file: app/Models/TestTwo.php
All modules have been built successfully.