定制 bookfrank/viaduct 二次开发

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

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

bookfrank/viaduct

Composer 安装命令:

composer require bookfrank/viaduct

包简介

Viaduct is a very simple php router, hope to be able to help the php-framework beginners to understand the principle of router better

README 文档

README

Viaduct is a simple but quick PHP router.

Viaduct is a very simple php router, hope to be able to help the php-framework beginners to understand the principle of router better.

Features

  • Simple
  • One-file (only 6 functions)
  • Laravel-like routes

Installation

  1. You can directly run composer require to install in your project.
composer require bookfrank/viaduct
  1. Also you can get the viaduct simply require it in your composer.json file.
"bookfrank/viaduct": "dev-master"

You will then need to run composer install to download it and have the autoloader updated.

Usage

First, create the routes.php file.

<?php
use \Bookfrank\Viaduct\Router;

Router::get('hello', function(){
	echo "Hello viaduct";
});

Router::get('profile/{uid}', function($uid){
	echo "Present userid is ".$uid;
});

Router::get('blog/{id}', "\Foo\Bar\FooController@bar");

Router::dispatch();
<?php
class FooController{
	public function bar($id){
    	echo "id is ".$id;
    }
}

Contact me

Author: Frank 李扬

Email: bookfrank@foxmail.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固