1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-08-06 16:36:43 +02:00

155 Commits

Author SHA1 Message Date
Francesco
1303c3a0af Typo in example
My IDE is going crazy about this :D
2014-03-11 14:36:05 +01:00
Danny van Kooten
4f8836e179 updated basic example to match new folder structure 2014-03-10 12:09:57 +01:00
niahoo osef
c3c166bd76 Merge pull request #59 from koenpunt/examples
Added examples directory and moved index.php example
2014-03-08 16:34:47 +01:00
Koen Punt
cace1a6f97 Moved example 2014-03-08 11:47:18 +01:00
Danny van Kooten
0290dc5073 Merge pull request #47 from koenpunt/match-type-fixup
Minor changes for matchTypes
v1.0.1
2014-01-08 05:47:24 -08:00
Koen Punt
00a216d1b8 Updated README to include addMatchTypes 2014-01-08 14:41:44 +01:00
Koen Punt
7c53090c1e Use instance methods to set basePath and matchTypes
renamed addMatchType to addMatchTypes
2014-01-08 14:39:18 +01:00
Danny van Kooten
59c41a4990 Merge pull request #45 from osadi/master
Added method for setting new and modifying existing named match types.
2014-01-08 03:39:11 -08:00
Oskar Adin
8a19056553 Added method for setting new and modifying existing named match types.
It's also possible to set these from the constructor.

$router->generate() is now possible with custom regex matches.
2014-01-08 12:28:13 +01:00
Danny van Kooten
d878579e02 Merge pull request #44 from sergey-nagaytsev/patch-1
Create routes and set basePath from constructor call. Thank you Sergey.
2014-01-07 03:14:36 -08:00
sergey-nagaytsev
93e4e4f07e CHG: no Hungarian notation, $arRoute -> $routes 2014-01-07 13:15:53 +03:00
sergey-nagaytsev
62e1d6fa75 ADD: AltoRouter::__construct
Can create in one call from config
2014-01-05 16:08:34 +03:00
Danny van Kooten
8fe62d2883 Updated readme.md to include contributors and a custom regex example 2013-11-11 10:29:28 +01:00
Danny van Kooten
01258d15ef Stripping basePath from route url, only adding it when appropriate. Fixes #38 and #20.
Fixes #38 and #20.
2013-11-08 15:58:39 +01:00
Danny van Kooten
77e77de9fa Changes position of Travis build status 2013-10-09 16:16:50 +02:00
Danny van Kooten
6fd8d8f394 Added travis build status icon to readme 2013-10-09 16:14:56 +02:00
Danny van Kooten
d01067bb28 Merge pull request #36 from koenpunt/php-5
Added PHP 5.5 to Travis config.
2013-10-08 13:43:32 -07:00
Koen Punt
c10205b349 added php 5.5 2013-10-08 10:18:00 +02:00
John Long
78633c2f33 Remove duplicate license statement in composer.json 2013-10-08 00:19:49 -05:00
John Long
2121925965 Merge pull request #33 from Adduc/master
Change autoload from file- to classmap- based for efficiency
2013-10-07 11:47:36 -07:00
Koen Punt
401aa2b311 Merge pull request #35 from koenpunt/fix-tests
fix tests by treating . as part separator (Thank you @joegreen88, closing #26.)
2013-10-07 09:07:51 -07:00
Koen Punt
4d0f9afa24 fix tests by treating . as part separator (Thank you @joegreen88, closing #26) 2013-10-07 18:06:32 +02:00
John Long
9b2a8c179f Change autoload from file- to classmap- based for efficiency 2013-10-07 10:18:57 -05:00
Koen Punt
6342b5f9e5 Merge pull request #32 from koenpunt/add-license
added license for packagist
v1.0.0
2013-10-07 08:06:25 -07:00
Danny van Kooten
550c7faff0 Updated composer.json to include license 2013-10-07 17:05:50 +02:00
Koen Punt
aaf5f4b356 added license for packagist 2013-10-07 17:05:11 +02:00
Koen Punt
0772956fe1 Merge pull request #29 from fetch/update-composer
Updated package name and authors
2013-10-07 04:53:59 -07:00
Koen Punt
5ce57a5b51 Updated package name and authors 2013-10-07 13:37:29 +02:00
Danny van Kooten
f8a92a9695 Merge pull request #20 from Adduc/patch-7
Don't add base path when route is '*' , fixes #18 . Thank you @Adduc !
2013-09-12 12:04:58 -07:00
Danny van Kooten
b8f9944c78 Merge pull request #14 from Adduc/patch-2
Update Copyright in README.md
2013-09-12 12:00:54 -07:00
Danny van Kooten
8d13b59ea7 Merge pull request #22 from fetch/added-test
Added unit tests , thanks @koenpunt
2013-09-12 11:58:09 -07:00
Koen Punt
77dba7b120 Fixed issue with optional params
added tests
2013-07-14 23:36:51 +02:00
John Long
750864290f Don't add base path when route is '*' 2013-05-23 00:07:59 -05:00
John Long
7020ab1a19 Update Copyright in README.md 2013-04-12 15:44:43 -05:00
Danny van Kooten
a0ecc77b0c Merge pull request #8 from niahoo/master
Strip the wrong way
2013-04-10 22:34:15 -07:00
niahoo
8724fc28cb bugifx stripping the query string 2013-03-26 19:38:53 +01:00
Danny van Kooten
b2794396d2 fixes #4 2013-03-19 11:35:50 +07:00
Danny van Kooten
533c426c6b Removal of strstr usage, for older PHP versions. 2013-03-19 11:31:26 +07:00
Danny van Kooten
be3d35f937 Merge branch 'master' of https://github.com/dannyvankooten/AltoRouter 2013-03-19 11:29:26 +07:00
Danny van Kooten
b9c79f1d0d fix for older PHP versions 2013-03-19 11:29:19 +07:00
Danny van Kooten
1fb2f87a57 Merge pull request #3 from koenpunt/fix-indentation
fixed indentation on comment blocks
2013-03-18 21:26:35 -07:00
Danny van Kooten
bf2e1643d8 Merge pull request #6 from niahoo/master
Composer compatibility - thanks niahoo.
2013-03-18 06:57:52 -07:00
niahoo
bf439f0c94 change composer package name to niahoo/altorouter 2013-03-17 20:34:37 +01:00
niahoo
fe4d390f0c added composer.json and newlines in end of files 2013-03-06 11:09:46 +01:00
Koen Punt
5328b4d73f fixed indentation on comment blocks (they need 1 space to be nicely aligned) 2012-09-07 21:40:41 +02:00
Danny van Kooten
ad87a4ae3a Merge pull request #2 from koenpunt/fix-indentation
Fixed indentation, all tabs now
2012-09-07 11:43:45 -07:00
Koen Punt
65933f5a4d Fixed indentation, all tabs now 2012-09-07 20:38:52 +02:00
Danny van Kooten
68d9d2a4af Merge pull request #1 from Deebster/master
Fixed generate() replacing leaving [s, made empty optional parameters blank
2012-08-16 08:58:46 -07:00
dansmith
2125019ed3 Fixed generate() replacing leaving [s, made empty optional parameters blank 2012-08-16 11:56:13 +01:00
Danny van Kooten
4d8dedb9f5 Updated readme, added more inline documentation. 2012-08-01 11:05:42 +02:00