定制 debva/nix 二次开发

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

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

debva/nix

最新稳定版本:v1.5.0

Composer 安装命令:

composer require debva/nix

包简介

PHP Framework

README 文档

README

Total Downloads Issues Forks Stars License

NIX PHP Framework is a lightweight, secure, and versatile PHP framework designed to work seamlessly across various PHP versions. It prioritizes performance, security, and ease of use, making it an ideal choice for developing web applications of all kinds.

Installation

Install with composer

composer require debva/nix

Structure

  • public/: This folder contains files that can be accessed publicly through the web server. It includes the .htaccess file and index.php.

  • app/: This folder houses the server-side components of the project.

    • middleware/: This folder contains middleware used in the project.
    • routes/: This folder contains the code for the project's route.
    • services/: This folder contains services used in the project.

Feel free to adapt this folder structure template to your project.

Usage

public/.htaccess

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]

public/index.php

<?php

require_once(join(DIRECTORY_SEPARATOR, [__DIR__, '..', 'vendor', 'autoload.php']));

$app = new Debva\Nix\App;
$app();

Serve from public/index.php

php -S 0.0.0.0:80

See result

http://localhost

Available Method

Method Parameter Description
$this->request()
$this->validate()
$this->response()
$this->route()
$this->db()
$this->query()
$this->transaction()
$this->datatable()
$this->env()
$this->telegram()
$this->loadtime()
$this->dd()

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-09