定制 nigaphp/niga 二次开发

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

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

nigaphp/niga

最新稳定版本:v1.6.6

Composer 安装命令:

composer create-project nigaphp/niga

包简介

Niga framework

README 文档

README

NigaPHP is a lightweight PHP web application framework designed to simplify and accelerate the development process for PHP developers. Initially created by Abass Dev, it is now maintained and contributed to by a community of developers.

Badges

Packagist Version License Pull Requests Issues

Niga Logo

Prerequisites

  • PHP >= 8.0
  • Composer >= 2.0
  • PDO
  • XML
  • ZIP
  • MBSTRING

Note: The Niga framework is not yet production-ready.

Documentation

View Documentation Website

Getting Started

Installation

composer create-project nigaphp/niga site_name

Development Server

Change to your new website directory:

cd my-website
niga run:dev

Default values:

  • HOST: localhost
  • PORT: 8000
  • PUBLIC_PATH: public

Modify these in %APP_ROOT%/config/app.json

Access your site at http://localhost:8000/

Creating a Controller

niga make:controller HomeController

This creates:

  1. src/Controller/HomeController.php
<?php
namespace App\Controller;

use Niga\Framework\Controller\AbstractController;
use Niga\Framework\Attributes\Route;

class HomeController extends AbstractController
{
    #[Route('/home', name:'home', method:'get')]
    public function home() {
        return $this->render("home", [
            "name" => "home"
        ]);
    }
}
  1. views/home.php
<?php if ($cName && $cPath) : ?>
    <h3>Hello <span class='be-color-py be-code'><?= $cName ?></span></h3>
    <p>Your <span class='be-color-py be-code'><?= $cName ?></span> class is located at <span class='be-color-py be-code'><?= $cPath ?></span>!</p>
<?php endif ?>

Contact

For contributions or bug reports, contact:

License

[View License](https://github.com/nigaphp/niga/blob/master/LICENSE

统计信息

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

GitHub 信息

  • Stars: 28
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固