承接 line/line 相关项目开发

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

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固