line/line 问题修复 & 功能扩展

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

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

line/line

最新稳定版本:1.1.0

Composer 安装命令:

composer require line/line

包简介

Very lightweight PHP Micro-Framework

README 文档

README

Line is a very lightweight PHP Micro-Framework. It has the following features:

  • Very easy to use.
  • You can extend and replace ALL components.
  • Flexible Controller definition.
  • It only does what it needs (If you need more, just extend it).

Install via Composer

Run composer require line/line.

Example Usage

// match URLs to their Controller
$routes = [
    '/' => [
        'name' => 'index',
        'controller' => 'SomeController:index',
    ],
    '/article/<id>' => [
        'name' => 'article',
        'controller' => function ($id) {
            // show article
        },
    ],
];

// define Controller for error page (optional but recommended)
$errorController = 'ErrorController:showError';

// create App object
$router = new \Line\Routing\Router($routes, $errorController);
$app = new \Line\App($router);

// show backtrace on errors
$app->debug = true;

// run application
$app->run();

See docs for more information.

License

The MIT license.

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-29