承接 newclass/via 相关项目开发

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

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

newclass/via

Composer 安装命令:

composer require newclass/via

包简介

The Php router.

README 文档

README

license PHP 5.4+

What is Via?

Via is a PHP router. Support for http request, cli and a lot more. Create own rule is very simple by implements interfaces.

Via can be used to develop all kind of websites and scripts.

Installation

The best way to install is to use the composer by command:

composer require newclass/via

composer install

Use example

use Via\Action\HTTPAction;
use Via\Action\HTTPRequest;
use Via\Router;

$router=new Router();

$router->addAction(new HTTPAction('/users','get'),new YourDispatcher('users')); //YourDispatcher create by implements Via\Dispatcher interface
$router->addAction(new HTTPAction('/users/{id}.json','post'),new YourDispatcher());

try{    
    $dispatcher=$router->createDispatcher(new HTTPRequest('/users/1232.json','post'));
    $dispatcher->execute();
} catch(RouteNotFoundException $e){
    header("HTTP/1.0 404 Not Found");
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固