定制 webdoors/martivia 二次开发

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

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

webdoors/martivia

最新稳定版本:v1.0

Composer 安装命令:

composer require webdoors/martivia

包简介

PHP Framework

README 文档

README

Build Status Total Downloads Latest Stable Version License

About Martivia

Martivia is a cross platform (Php,Python,Node.js,c#,java and etc.) web application framework. The simplicity and the novelty of the paradigm used in this framework enables web applications to load much faster and use as little resources as possible in the process.

Documentation https://martivia.readme.io/

Installation

Official installation method is via composer and its packagist package webdoors/martivia.

(Recommendation: Download XAMPP for php apache engine and mysql database, use xampp htdocs folder for localhost)

$ composer create-project webdoors/martivia example-app

Or

$ git clone https://github.com/Webdoors/Martivia
$ cd Martivia
$ docker-compose build 
$ docker compose up -d 

Or

1.Just download.

2.Create database admin_martivia.

3.Upload files in your Directory.

4.Import admin_martivia.sql to Database.

5.Delete admin_martivia.sql file from root folder.

4.configure .env file.

How it works

  1. Every http request is directed to index.php if the file or folder does not exists.
  2. open the website and change header.php,footer.php and files in pages/ folder for changing contents behaviour.
  3. for beautiful url we chunck Request_URI as $p1,$p2,$p3,$p4 for the parts of the url /$p1/$p2/$p3 ...

Martivia depends on jquery and has it's main.js file where we have created universal Ajax function called "func" which accepts two optional parameters: a) Function Name; b) Parameters object, Example {key:value};

In this Framework every function or a class is a file that is included through func.php

Every xhr jquery ajax call is posted to func.php that includes the file by the function name sent as the first argument of func(a,b) function , For example func("login"); sends request to /func/func.php that includes login.php by the logic of {Function Name}.php .

a - Function Name

b - Parameters Object {key:value,key:value};

See func function from main.js

Documentation

Martivia consists of css,func,js,view folders and index.php, db_open.php, db_close.php. View folder consists of inc and pages folders.

The page routing is driven by $_GET method or by redirecting all request to index.php and chunking url by "/" parts for beautiful url.

For Example: https://example.com?page=login or https://example.com/login

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: GPL-2.0-only
  • 更新时间: 2022-11-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固