Skip to content

Commit b3a6701

Browse files
committed
some update, upgrude php version to 7.
1 parent f6b1225 commit b3a6701

16 files changed

+3204
-3140
lines changed
File renamed without changes.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# php simple router
22

3-
[![License](https://img.shields.io/packagist/l/inhere/console.svg?style=flat-square)](LICENSE.md)
4-
[![Php Version](https://img.shields.io/badge/php-%3E=5.6-brightgreen.svg?maxAge=2592000)](https://packagist.org/packages/inhere/sroute)
3+
[![License](https://img.shields.io/packagist/l/inhere/sroute.svg?style=flat-square)](LICENSE)
4+
[![Php Version](https://img.shields.io/badge/php-%3E=7.0-brightgreen.svg?maxAge=2592000)](https://packagist.org/packages/inhere/sroute)
55
[![Latest Stable Version](http://img.shields.io/packagist/v/inhere/sroute.svg)](https://packagist.org/packages/inhere/sroute)
66

77
非常轻量级的路由器。无依赖、简洁、速度快、自定义性强
@@ -19,12 +19,12 @@
1919
- 支持通过方法 `$router->dispatch($path, $method)` 手动调度一个路由
2020
- 你即使不配置任何东西, 它也能很好的工作
2121

22-
**[EN README](./README.md)**
22+
**[EN README](README_en.md)**
2323

2424
## 项目地址
2525

2626
- **github** https://github.com/inhere/php-srouter.git
27-
- **git@osc** https://gitee.com/inhere/php-srouter.git
27+
- **gitee** https://gitee.com/inhere/php-srouter.git
2828

2929
## 安装
3030

README_en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# php simple router
22

3-
[![License](https://img.shields.io/packagist/l/inhere/console.svg?style=flat-square)](LICENSE.md)
4-
[![Php Version](https://img.shields.io/badge/php-%3E=5.6-brightgreen.svg?maxAge=2592000)](https://packagist.org/packages/inhere/sroute)
3+
[![License](https://img.shields.io/packagist/l/inhere/sroute.svg?style=flat-square)](LICENSE.md)
4+
[![Php Version](https://img.shields.io/badge/php-%3E=7.0-brightgreen.svg?maxAge=2592000)](https://packagist.org/packages/inhere/sroute)
55
[![Latest Stable Version](http://img.shields.io/packagist/v/inhere/sroute.svg)](https://packagist.org/packages/inhere/sroute)
66

77
a very lightweight and fast speed router.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
],
1515
"require": {
16-
"php": ">=5.6.0"
16+
"php": ">=7.0"
1717
},
1818
"autoload": {
1919
"psr-4": {

examples/benchmark.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
" ms, For collect and parse routes.\n\n";
5252

5353
// dump caches
54-
$router->dumpCache();
54+
$router->completed();
5555

5656
/**
5757
* match first route

examples/cached.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ function dump_routes() {
8282
$router->map($route[0], $route[1], $route[2], isset($route[3]) ? $route[3] : []);
8383
}
8484

85+
$router->completed();
86+
8587
$dispatcher = new Dispatcher([
8688
'dynamicAction' => true,
8789
]);
@@ -92,7 +94,6 @@ function dump_routes() {
9294
});
9395

9496
$dispatcher->setRouter($router);
95-
$router->dumpCache();
9697

9798
// var_dump($router->getConfig(),$router);die;
9899
try {

0 commit comments

Comments
 (0)