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-frameworkatau
bash <( wget -qO- https://pastefy.ga/3dBl06Hs/raw )Paket Perbarui:
php uppm updateAnda tidak ingin menggunakan komposer atau npm? Anda tidak ingin menggunakan Webpack? Anda tidak perlu! Ulole-Framework tidak memerlukan Packagemanager tambahan. Informasi: NPM dan Komposer diprioritaskan, Anda dapat menghapusnya. Ps. Ulole dibangun di atas Ulolephppackagemanager (UPPM). Tapi Anda tidak perlu menggunakannya!
Kami punya beberapa alternatif untuk alat yang berguna. Kami memiliki alternatif untuk kompilasi webpack. Ini adalah bundler sederhana (dan mesin template) yang menggabungkan kode JS menjadi satu file dan CSS menjadi satu file. (Lebih lanjut dalam dokumen) Kami juga punya ulolemodul. Ini adalah manajer paket yang dibuat untuk uloleframework lebih banyak di dokumen)
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 );
});
}
}