定制 osynapsy/osynapsy-core 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固