定制 nice/framework 二次开发

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

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

nice/framework

最新稳定版本:1.1.0

Composer 安装命令:

composer require nice/framework

包简介

A nice PHP microframework

README 文档

README

Build Status Coverage Code Climate Latest Release

Nice is a simple microframework for PHP 5.6 and later. Nice integrates nikic's FastRoute router with the Symfony2 HttpKernel and Dependency Injection components.

Nice comes with built-in session management, simple authentication, and logging utilizing Monolog. Twig, along with Doctrine DBAL and ORM integration is also available.

<?php

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Nice\Application;
use Nice\Router\RouteCollector;

require __DIR__ . '/../vendor/autoload.php';

$app = new Application();
$app->set('routes', function (RouteCollector $r) {
    $r->map('/', 'home', function (Request $request) {
        return new Response('Hello, world');
    });
});
$app->run();

Documentation

View the online documentation, or the check out the markdown documentation source code.

统计信息

  • 总下载量: 9.59k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 30
  • 点击次数: 0
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

  • Stars: 29
  • Watchers: 6
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-16