Ai
1 Star 0 Fork 0

wfdaj/custom-php-mvc-framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gen_migration.php 407 Bytes
一键复制 编辑 原始数据 按行查看 历史
Chad Chapman 提交于 2024-08-01 07:46 +08:00 . Code organization
<?php
if (php_sapi_name() != 'cli') die('Restricted');
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));
$fileName = "Migration".time();
$ext = ".php";
$fullPath = ROOT.DS.'migrations'.DS.$fileName.$ext;
$content = '<?php
namespace Migrations;
use Core\Migration;
class '.$fileName.' extends Migration {
public function up() {
}
}
';
$resp = file_put_contents($fullPath,$content);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wfdaj/custom-php-mvc-framework.git
git@gitee.com:wfdaj/custom-php-mvc-framework.git
wfdaj
custom-php-mvc-framework
custom-php-mvc-framework
main

搜索帮助