osynapsy/osynapsy-core
最新稳定版本:0.9.20
Composer 安装命令:
composer require osynapsy/osynapsy-core
包简介
Osynapsy is a framework MVC for develop Rich Internet Application (RIA).
README 文档
README
Osynapsy is a MVC php framework.
##Installation It's recommended that you use Composer to install Osynapsy.
$ composer require osynapsy.net/osynapsy "^0.9.5"
This install osynapsy and all required dependencies. Osynapsy require PHP 7.2.0 or newer.
Usage
The webroot directory and index file
Create and enter in webroot directory:
mkdir webroot
cd webroot
Create an index.php file with the following contents:
<?php require '../vendor/autoload.php'; $kernel = new Osynapsy\Kernel('../etc/site.xml'); echo $kernel->run();
The etc directory and instance configuration file
Create and enter into etc directory:
mkdir etc
cd etc
Create an instance.xml config file with the following contents:
<?xml version='1.0' standalone='yes'?> <configuration> <app> <Test_App> <datasources> <db id="dba">mysql:127.0.0.1:osytest:testuser:testpassword</db> </datasources> <parameters> <parameter name="siteName" value="Test app" /> <parameter name="uploadRoot" value="/upload/" /> </parameters> </Test_App> </app> </configuration>
The configuration file parts are:
- configuration tag and app subtag.
- your own app tag (Test_App in example)
- datasources section in your app tag tell osynapsy db connection to create
- parameters section in your app tag define instance parameters for your app
统计信息
- 总下载量: 165
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-25