承接 pixlmint/nacho 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

pixlmint/nacho

最新稳定版本:1.6.17

Composer 安装命令:

composer require pixlmint/nacho

包简介

My own Lightweight PHP Framework

README 文档

README

About

This is my own little PHP Framework, slowly developed as I need functionality in my own projects.

Installation

  1. composer require pixlmint/nacho
  2. Copy public/index.php to your root directory

First Endpoint

  1. Add a config.php file under/config with the following content:
<?php
return [
    'routes' => [
        [
            "route" => "/",
            "controller" => App\Controllers\HomeController,
            "function" => "index" 
        ],
    ],
];
  1. Create a file HomeController.php under src/Controllers, add the following Content:
<?php

namespace App\Controllers;

use Nacho\Controllers\AbstractControllers;
use Nacho\Models\Request;

class HomeController extends AbstractController
{
    public function index(Request $request)
    {
        return "hello world"; 
    }
}
  1. Add .htaccess
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteRule ^(src|.vscode|content|node_modules|CHANGELOG\.md|.secret|users.json|composer\.(json|lock|phar))(/|$) index.php
    # Enable URL rewriting
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .? index.php [L]
</IfModule>

# Prevent file browsing
Options -Indexes -MultiViews

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固