symbiotic / micro
SymbioticPHP微应用框架,支持插件和父应用程序容器的继承。
1.4.2.4
2023-07-02 13:00 UTC
Requires
- php: ^8.0
- ext-json: *
- ext-mbstring: *
- nyholm/psr7: 1.5.1
- psr/container: ^1.0|^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
- psr/simple-cache: ^1.0
- symbiotic/event: ^1.4
- symbiotic/http-cookie: ^1.4
- symbiotic/http-response-mutable: ^1.4
- symbiotic/packages-loader-filesytem: ^1.4
- symbiotic/ui_http_kernel: 1.4.*
Requires (Dev)
- symbiotic/tests-micro: 1.4.1
Suggests
- symbiotic/auth-login: Basic authorization for the framework
- symbiotic/develop: App for developers
- symbiotic/eloquent: Encapsulated Laravel Eloquent ORM for Symbiotic
- symbiotic/full: Full version of the framework
- symbiotic/settings-app: Application for editing kernel settings, file systems and application packages
README
该软件包不建议用于安装使用,它是为微应用开发者准备的!
安装
composer require symbiotic/micro
描述
框架的基本核心,组件与框架的完整版本隔离,以将应用程序编译成一个单一文件。目前,应用程序编译器尚未编写,但这种机会是计划中的。
使用完整版本:https://github.com/symbiotic-php/full/!
composer require symbiotic/full
使用方法
$basePath = dirname(__DIR__);// root folder of the project include_once $basePath. '/vendor/autoload.php'; $config = include $basePath.'/vendor/symbiotic/micro/src/config.sample.php'; //.. Redefining the configuration array // Basic construction of the Core container $core = new \Symbiotic\Core\Core($config); // Starting request processing $core->run(); // Then the initialization code and the work of another framework can go on when the symbiosis mode is enabled... // $laravel->handle();