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 );
});
}
}