OSDN Git Service

php-libraries/Router.git
8 years agoMerge pull request #57 from malukenho/bug/url-match
Jefersson Nathan [Thu, 13 Aug 2015 03:43:27 +0000 (00:43 -0300)]
Merge pull request #57 from malukenho/bug/url-match

Bug to match router using basePath config

8 years agoTrim slash on url, solve bug
Jefersson Nathan [Sun, 12 Jul 2015 12:49:04 +0000 (09:49 -0300)]
Trim slash on url, solve bug

8 years agoRemove old test
Jefersson Nathan [Fri, 10 Jul 2015 12:48:25 +0000 (09:48 -0300)]
Remove old test

8 years agoTransport new tests
Jefersson Nathan [Thu, 9 Jul 2015 12:46:57 +0000 (09:46 -0300)]
Transport new tests

8 years agoReorganize tests
Jefersson Nathan [Mon, 10 Aug 2015 12:40:01 +0000 (09:40 -0300)]
Reorganize tests

8 years agoAdded tests for router match using basepath
Jefersson Nathan [Sun, 2 Aug 2015 12:33:08 +0000 (09:33 -0300)]
Added tests for router match using basepath

8 years agoAdded tests for router match using basepath
Jefersson Nathan [Sat, 1 Aug 2015 12:27:30 +0000 (09:27 -0300)]
Added tests for router match using basepath

8 years agoRemove php keyword
Jefersson Nathan [Mon, 27 Apr 2015 14:58:55 +0000 (11:58 -0300)]
Remove php keyword

8 years agoIndent composer.json with 2 spaces
Jefersson Nathan [Sun, 26 Apr 2015 14:57:58 +0000 (11:57 -0300)]
Indent composer.json with 2 spaces

8 years agoDelete old tests files
Jefersson Nathan [Thu, 7 May 2015 14:53:50 +0000 (11:53 -0300)]
Delete old tests files

8 years agoChange namespaces of tests to not conflict with real namespaces
Jefersson Nathan [Tue, 2 Jun 2015 14:52:50 +0000 (11:52 -0300)]
Change namespaces of tests to not conflict with real namespaces

8 years agoAdded PHPUnit as a composer dev dependency
Jefersson Nathan [Mon, 25 May 2015 14:48:38 +0000 (11:48 -0300)]
Added PHPUnit as a composer dev dependency

8 years agoRemove old internal variable docummentor
Jefersson Nathan [Sat, 9 May 2015 20:35:42 +0000 (17:35 -0300)]
Remove old internal variable docummentor

8 years agoAdd IDE hint
Jefersson Nathan [Sat, 18 Jul 2015 20:26:44 +0000 (17:26 -0300)]
Add IDE hint

8 years agoWrite docummentation block
Jefersson Nathan [Mon, 20 Jul 2015 20:23:43 +0000 (17:23 -0300)]
Write docummentation block

8 years agoFix code standard
Jefersson Nathan [Fri, 10 Jul 2015 20:21:17 +0000 (17:21 -0300)]
Fix code standard

8 years agoUpdate license date
Jefersson Nathan [Fri, 24 Apr 2015 20:16:58 +0000 (17:16 -0300)]
Update license date

8 years agoAdded authors to Readme
Jefersson Nathan [Wed, 22 Apr 2015 20:14:46 +0000 (17:14 -0300)]
Added authors to Readme

8 years agoRemove trim $requestUrl
Jefersson Nathan [Sat, 25 Apr 2015 14:25:23 +0000 (11:25 -0300)]
Remove trim $requestUrl

8 years agoMake possible to use PHPRouter on a subpath folder as `localhost/app/web`
Jefersson Nathan [Wed, 6 May 2015 13:42:36 +0000 (10:42 -0300)]
Make possible to use PHPRouter on a subpath folder as `localhost/app/web`

8 years agoDocblocks align
Jefersson Nathan [Tue, 28 Apr 2015 13:40:04 +0000 (10:40 -0300)]
Docblocks align

8 years ago #56 - Fix array short syntax
Jefersson Nathan [Wed, 10 Jun 2015 13:34:40 +0000 (10:34 -0300)]
 #56 - Fix array short syntax

8 years ago #56 - Create tests for dynamic router
Jefersson Nathan [Tue, 9 Jun 2015 13:33:52 +0000 (10:33 -0300)]
 #56 - Create tests for dynamic router

8 years ago #56 - Add fixture method to test dynamic router using filter
Jefersson Nathan [Fri, 5 Jun 2015 13:31:45 +0000 (10:31 -0300)]
 #56 - Add fixture method to test dynamic router using filter

8 years ago #56 - Fix use filter on named parameters
Jefersson Nathan [Sat, 13 Jun 2015 13:09:16 +0000 (10:09 -0300)]
 #56 - Fix use filter on named parameters

8 years agoAdd throws doc
Jefersson Nathan [Fri, 17 Apr 2015 11:55:24 +0000 (08:55 -0300)]
Add throws doc

8 years agoReplay same structure for tests stuff and close #42
Jefersson Nathan [Sat, 11 Apr 2015 11:46:37 +0000 (08:46 -0300)]
Replay same structure for tests stuff and close #42

8 years agoFix IDE hint
Jefersson Nathan [Fri, 1 May 2015 11:41:52 +0000 (08:41 -0300)]
Fix IDE hint

8 years agoConvert array syntax to traditional, this broken on php 5.3
Jefersson Nathan [Wed, 29 Apr 2015 11:40:39 +0000 (08:40 -0300)]
Convert array syntax to traditional, this broken on php 5.3

8 years agoTest parameters properly, thanks for @Antoine-Pous
Jefersson Nathan [Thu, 11 Jun 2015 11:30:34 +0000 (08:30 -0300)]
Test parameters properly, thanks for @Antoine-Pous

8 years agoAvoid printing things on screen
Jefersson Nathan [Wed, 20 May 2015 11:28:52 +0000 (08:28 -0300)]
Avoid printing things on screen

8 years agoFix params tags types
Jefersson Nathan [Mon, 20 Apr 2015 11:10:45 +0000 (08:10 -0300)]
Fix params tags types

8 years agoAdd dockblock return tags
Jefersson Nathan [Mon, 23 Mar 2015 11:09:40 +0000 (08:09 -0300)]
Add dockblock return tags

8 years agoAdd dockblock params declaration
Jefersson Nathan [Sun, 22 Mar 2015 11:04:59 +0000 (08:04 -0300)]
Add dockblock params declaration

8 years agoMerge pull request #54 from Antoine-Pous/master
Jefersson Nathan [Mon, 15 Jun 2015 10:54:41 +0000 (07:54 -0300)]
Merge pull request #54 from Antoine-Pous/master

Added parameters by name

8 years agoMerge remote-tracking branch 'jarednova/fix_psr_0'
Jefersson Nathan [Mon, 15 Jun 2015 10:45:46 +0000 (07:45 -0300)]
Merge remote-tracking branch 'jarednova/fix_psr_0'

Conflicts:
composer.json

9 years agoUpdate RouterTest.php
Antoine pous [Thu, 9 Apr 2015 15:01:50 +0000 (17:01 +0200)]
Update RouterTest.php

9 years agoUpdate SomeController.php
Antoine pous [Thu, 9 Apr 2015 15:01:19 +0000 (17:01 +0200)]
Update SomeController.php

9 years agoAdded parameters by name
Antoine pous [Tue, 7 Apr 2015 16:23:42 +0000 (18:23 +0200)]
Added parameters by name

Parameters by name add simple way to get named parameters into the controller method.
This optionnal argument, set to false by default, is available from setFilters method and can be used individually for each route.

Route :
```PHP
$route = new Route('/:page_id',     ['_controller' => 'App\Controller\someController::method', 'methods' => 'GET' ]);
$route->setFilters([':page_id' => '([a-zA-Z]+)'], true);
```

Controller :
```PHP
class someController
{
  public function myMethod() {
    var_dump(func_get_args());
    // display : array(1) { [0]=> array(1) { ["page_id"]=> string(5) "mySuperPage" } }
  }
}
```

9 years agoMerge pull request #53 from palicao/doc-fix
Jefersson Nathan [Thu, 26 Mar 2015 04:33:09 +0000 (01:33 -0300)]
Merge pull request #53 from palicao/doc-fix

Update documentation with the new function name

9 years agoUpdate documentation with the new function name
Alessandro Balasco [Thu, 12 Mar 2015 08:22:29 +0000 (09:22 +0100)]
Update documentation with the new function name

$collection->attach becomes $collection->attachRoute

9 years agoMerge pull request #52 from palicao/syntax-fixes
Jefersson Nathan [Mon, 9 Mar 2015 20:51:24 +0000 (17:51 -0300)]
Merge pull request #52 from palicao/syntax-fixes

Small syntax fixes to avoid PHP notices and to pass tests

9 years agoModified method name also for config loading
palicao [Sun, 8 Mar 2015 16:40:44 +0000 (17:40 +0100)]
Modified method name also for config loading

9 years agoModified test to comply with the new syntax
palicao [Sun, 8 Mar 2015 16:26:56 +0000 (17:26 +0100)]
Modified test to comply with the new syntax

9 years agoChanged method name to avoid Strict Standards: Declaration of PHPRouter\RouteCollecti...
palicao [Sun, 8 Mar 2015 16:23:56 +0000 (17:23 +0100)]
Changed method name to avoid Strict Standards: Declaration of PHPRouter\RouteCollection::attach() should be compatible with SplObjectStorage::attach error

9 years agoSmall syntax fixes to avoid PHP notices and to pass tests
palicao [Sun, 8 Mar 2015 16:06:42 +0000 (17:06 +0100)]
Small syntax fixes to avoid PHP notices and to pass tests

9 years agofixed typo in PHProuter ==> PHPRouter
Jared Novack [Tue, 17 Feb 2015 05:33:21 +0000 (21:33 -0800)]
fixed typo in PHProuter ==> PHPRouter

9 years agoMerge pull request #49 from malukenho/hotfix/declare-missing-property
Jefersson Nathan [Tue, 3 Feb 2015 11:21:58 +0000 (08:21 -0300)]
Merge pull request #49 from malukenho/hotfix/declare-missing-property

Declare dynamic created Router#_config and rename it to Router#config

9 years agoBack port array long syntax
malukenho [Thu, 18 Dec 2014 11:20:43 +0000 (08:20 -0300)]
Back port array long syntax

9 years agoFix align of equals on constructor method
malukenho [Thu, 25 Dec 2014 11:20:05 +0000 (08:20 -0300)]
Fix align of equals on constructor method

9 years agoDeclare dynamic created Router#_config and rename it to Router#config
malukenho [Wed, 31 Dec 2014 11:15:45 +0000 (08:15 -0300)]
Declare dynamic created Router#_config and rename it to Router#config

9 years agoMerge pull request #48 from malukenho/feature/refactor 1.1.0-alpha
Jefersson Nathan [Sat, 31 Jan 2015 10:44:28 +0000 (07:44 -0300)]
Merge pull request #48 from malukenho/feature/refactor

[WIP] Major refactor on PHPRouter

9 years agoPut php docblock for the class
malukenho [Sun, 25 Oct 2015 10:41:44 +0000 (07:41 -0300)]
Put php docblock for the class

9 years agoSubscribe `attach` method to do TypeHinting
malukenho [Mon, 26 Oct 2015 10:40:25 +0000 (07:40 -0300)]
Subscribe `attach` method to do TypeHinting

9 years agoModify local variable names
malukenho [Wed, 28 Oct 2015 10:38:09 +0000 (07:38 -0300)]
Modify local variable names

9 years agoFix CS on Router.php
malukenho [Thu, 29 Oct 2015 10:31:33 +0000 (07:31 -0300)]
Fix CS on Router.php

9 years agoBe more specifcly at return types
malukenho [Fri, 30 Oct 2015 10:30:10 +0000 (07:30 -0300)]
Be more specifcly at return types

9 years agoFix minor CS on RouteCollection.php
malukenho [Sun, 1 Nov 2015 10:29:17 +0000 (07:29 -0300)]
Fix minor CS on RouteCollection.php

9 years agoFix Code Standard
malukenho [Mon, 23 Nov 2015 10:27:57 +0000 (07:27 -0300)]
Fix Code Standard

9 years agoFix CS on Route.php
malukenho [Tue, 24 Nov 2015 10:21:17 +0000 (07:21 -0300)]
Fix CS on Route.php

9 years agoCreate makefile to turn life ease
malukenho [Wed, 25 Nov 2015 10:17:47 +0000 (07:17 -0300)]
Create makefile to turn life ease

9 years agoAdd PHP Code sniffer to composer.json require-dev dependencies
malukenho [Fri, 27 Nov 2015 10:16:24 +0000 (07:16 -0300)]
Add PHP Code sniffer to composer.json require-dev dependencies

9 years agoCS fix
malukenho [Sun, 29 Nov 2015 10:13:19 +0000 (07:13 -0300)]
CS fix

9 years agoRename properties, not follow the old conversion names starting with underscore
malukenho [Fri, 18 Dec 2015 10:08:58 +0000 (07:08 -0300)]
Rename properties, not follow the old conversion names starting with underscore

9 years agoRemove debug thing
malukenho [Fri, 25 Dec 2015 10:04:58 +0000 (07:04 -0300)]
Remove debug thing

9 years agoUnit tests for config file
malukenho [Thu, 1 Jan 2015 10:02:42 +0000 (07:02 -0300)]
Unit tests for config file

9 years agoRefactor Config file
malukenho [Thu, 31 Dec 2015 09:48:21 +0000 (06:48 -0300)]
Refactor Config file

9 years agoRefactor Config file
malukenho [Thu, 31 Dec 2015 09:48:21 +0000 (06:48 -0300)]
Refactor Config file

9 years agoDocument Config class
malukenho [Sat, 10 Jan 2015 09:35:13 +0000 (06:35 -0300)]
Document Config class

9 years agoMark Fixture class as final
malukenho [Sat, 17 Jan 2015 09:27:25 +0000 (06:27 -0300)]
Mark Fixture class as final

9 years agoPut MIT License on top of the files
malukenho [Fri, 16 Jan 2015 09:26:37 +0000 (06:26 -0300)]
Put MIT License on top of the files

9 years agoFix EOL EOF on Route class
malukenho [Sun, 4 Jan 2015 09:24:17 +0000 (06:24 -0300)]
Fix EOL EOF on Route class

9 years agoFix EOL EOF on Router class
malukenho [Sat, 24 Jan 2015 09:23:29 +0000 (06:23 -0300)]
Fix EOL EOF on Router class

9 years agoFix EOL EOF on Config
malukenho [Fri, 23 Jan 2015 09:21:33 +0000 (06:21 -0300)]
Fix EOL EOF on Config

9 years agoUse autoload PSR-4 compliant
malukenho [Thu, 22 Jan 2015 09:18:57 +0000 (06:18 -0300)]
Use autoload PSR-4 compliant

9 years agoFix EOL EOF on composer.json
malukenho [Sun, 11 Jan 2015 09:16:32 +0000 (06:16 -0300)]
Fix EOL EOF on composer.json

9 years agoUpdate PHPUnit version
malukenho [Fri, 30 Jan 2015 09:13:54 +0000 (06:13 -0300)]
Update PHPUnit version

9 years agoRename phpunit.xml -> phpunit.xml.dist
malukenho [Tue, 27 Jan 2015 09:09:21 +0000 (06:09 -0300)]
Rename phpunit.xml -> phpunit.xml.dist

9 years agoMerge pull request #43 from fredlawl/patch-1
Jefersson Nathan [Mon, 8 Sep 2014 12:55:26 +0000 (09:55 -0300)]
Merge pull request #43 from fredlawl/patch-1

Allowed passing of parameters

9 years agoAllowed passing of parameters
Frederick [Sun, 7 Sep 2014 15:28:42 +0000 (10:28 -0500)]
Allowed passing of parameters

Allowed the passing of parameters into the controllers instance method.

9 years agoMerge pull request #1 from dannyvankooten/master
Jefersson Nathan [Tue, 26 Aug 2014 13:33:17 +0000 (10:33 -0300)]
Merge pull request #1 from dannyvankooten/master

Move all testes

9 years agoMerge pull request #40 from matsu911/master
Jefersson Nathan [Sat, 23 Aug 2014 15:56:39 +0000 (12:56 -0300)]
Merge pull request #40 from matsu911/master

Separate one class by file

9 years agoMerge pull request #41 from malukenho/master
Jefersson Nathan [Tue, 19 Aug 2014 14:53:08 +0000 (11:53 -0300)]
Merge pull request #41 from malukenho/master

Add .htaccess do documentation

9 years agoAdd .htaccess do documentation
Jefersson Nathan [Mon, 18 Aug 2014 13:24:26 +0000 (10:24 -0300)]
Add .htaccess do documentation

9 years agoDelete .htaccess in favor README.md
Jefersson Nathan [Mon, 18 Aug 2014 13:21:30 +0000 (10:21 -0300)]
Delete .htaccess in favor README.md

9 years agonamespace
Shigeaki Matsumura [Sat, 16 Aug 2014 12:22:38 +0000 (21:22 +0900)]
namespace

9 years agoMerge pull request #39 from malukenho/master
Jefersson Nathan [Thu, 14 Aug 2014 09:20:46 +0000 (06:20 -0300)]
Merge pull request #39 from malukenho/master

Remove example.php file in favor of documentation README

9 years agoone class in one file
Shigeaki Matsumura [Wed, 13 Aug 2014 22:00:04 +0000 (07:00 +0900)]
one class in one file

9 years agoRemove example.php file in favor of documentation README
Jefersson Nathan [Wed, 13 Aug 2014 15:18:19 +0000 (12:18 -0300)]
Remove example.php file in favor of documentation README

9 years agoMerge pull request #38 from matsu911/master
Jefersson Nathan [Wed, 13 Aug 2014 15:04:08 +0000 (12:04 -0300)]
Merge pull request #38 from matsu911/master

Added simple testcase and fix to Router::setBasePath

9 years agoignore *~
Shigeaki Matsumura [Wed, 13 Aug 2014 06:35:58 +0000 (15:35 +0900)]
ignore *~

9 years agoadded phpunit.xml
Shigeaki Matsumura [Wed, 13 Aug 2014 06:35:23 +0000 (15:35 +0900)]
added phpunit.xml

9 years agocall setBasePath only once
Shigeaki Matsumura [Wed, 13 Aug 2014 06:34:14 +0000 (15:34 +0900)]
call setBasePath only once

9 years agomake $_basePath non static
Shigeaki Matsumura [Wed, 13 Aug 2014 06:33:28 +0000 (15:33 +0900)]
make $_basePath non static

9 years agouse dataProvider
Shigeaki Matsumura [Tue, 12 Aug 2014 21:58:21 +0000 (06:58 +0900)]
use dataProvider

9 years agoignore vendor
Shigeaki Matsumura [Tue, 12 Aug 2014 00:44:59 +0000 (09:44 +0900)]
ignore vendor

9 years agobugfix
Shigeaki Matsumura [Tue, 12 Aug 2014 00:44:32 +0000 (09:44 +0900)]
bugfix

9 years agoadded test case for Router::match
Shigeaki Matsumura [Tue, 12 Aug 2014 00:43:57 +0000 (09:43 +0900)]
added test case for Router::match

9 years agoMerge pull request #37 from matsu911/master
Jefersson Nathan [Sun, 10 Aug 2014 14:51:00 +0000 (11:51 -0300)]
Merge pull request #37 from matsu911/master

handle URL encoded path properly

9 years agohandle URL encoded path properly
MatsumuraShigeaki [Fri, 8 Aug 2014 03:08:22 +0000 (12:08 +0900)]
handle URL encoded path properly