debva/nix 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固