ulole framework
1.0.0
Ulole-Framework
<?php
namespace app controller ;
class WelcomeController {
/**
* Hello world page
*
* @return string
*/
public static function about () {
return " Hello world! " ;
}
} This is just the development version. If we are ready soon there is a new version! :D
wget --no-cache https://raw.githubusercontent.com/interaapps/uppm/master/uppm -O uppm
php uppm init:fast
php uppm install ulole-framework或者
bash <( wget -qO- https://pastefy.ga/3dBl06Hs/raw )更新軟件包:
php uppm update您不想使用作曲家或NPM嗎?您不想使用webpack嗎?您不需要! Ulole-Framework不需要任何額外的PackageManager。信息:NPM和作曲家是原始化的,您可以簡單地將其刪除。 PS。 Ulole建立在Uloleppackagemanager(UPPM)上。但是您不需要使用它!
我們有一些有用工具的選擇。我們可以替代WebPack ulolelecompile。這是一個簡單的捆綁器(和模板引擎),它將JS代碼串成一個文件,將CSS插入一個文件中。 (更多文檔)我們也有UloLemodules。這是在文檔中為Uloleframework製作的軟件包經理)
php cli generate database testtablephp cli generate migration testtable <?php
namespace app controller ;
class AboutController {
/**
* Hello world page
*
* @return string
*/
public static function about () {
return " Hello world! " ;
}
} <?php
namespace databases ;
use modules uloleorm Table ;
class UserTable extends Table {
public $ id ,
$ username ,
$ password ;
public function database () {
$ this -> _table_name_ = " user " ;
$ this -> __database__ = " main " ;
}
} <?php
namespace databases migrate ;
use modules uloleorm migrate Migrate ;
class UserTable extends Migrate {
public function database () {
$ this -> create ( ' user ' , function ( $ table ) {
$ table -> int ( " id " )-> ai ();
$ table -> string ( " username " );
$ table -> string ( " password " , 155 );
});
}
}