定制 starlit/app 二次开发

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

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

starlit/app

Composer 安装命令:

composer require starlit/app

包简介

A lightweight MVC style microframework.

README 文档

README

Build Status Code Coverage

A lightweight MVC style microframework that's basically just a wiring of Symfony's HttpFoundation and Routing components.

Installation

Add the package as a requirement to your composer.json:

$ composer require starlit/app

Usage example

<?php
// In public index.php file
$app = new BaseApp();
$request = Symfony\Component\HttpFoundation\Request::createFromGlobals();
$response = $app->handle($request);
$response->send();

// IndexController.php
class IndexController extends AbstractController
{
    public function indexAction()
    {
        $this->view->headline = 'Hello, world!"
    }
}

// index.html.php
?>
<h1><?=$this->getEscaped('headline')?></h1>

Requirements

  • Requires PHP 5.6 or above.

License

This software is licensed under the BSD 3-Clause License - see the LICENSE file for details.

Credits

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-03-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固