OSDN Git Service

php-libraries/Router.git
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 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

9 years agoFix bud of base_path unseted #36
malukenho [Tue, 8 Jul 2014 01:39:14 +0000 (22:39 -0300)]
Fix bud of base_path unseted #36

- Modify Router to mathc and set base_path correctly of a yaml file or
  array.
- Modify Route object to dispatch() action setted for he.

9 years agoFix the parameters for `attach` method of SplObjectStorage class
Jefersson Nathan [Wed, 25 Jun 2014 16:33:12 +0000 (13:33 -0300)]
Fix the parameters for `attach` method of SplObjectStorage class

9 years agoFix the error on load routers from a Yaml file #33
Jefersson Nathan [Wed, 25 Jun 2014 16:24:37 +0000 (13:24 -0300)]
Fix the error on load routers from a Yaml file #33

- Fix indentation on RouteCollection
- Fix load from yaml described routers

9 years agoModify RouterCollection to use `SplObjectStorage`
Jefersson Nathan [Tue, 17 Jun 2014 13:20:23 +0000 (10:20 -0300)]
Modify RouterCollection to use `SplObjectStorage`

- This make the RouterCollection class more simple and clean.
- More fast, because SplObjectStorage is implemented in C

10 years agoMerge pull request #30 from gpgautier/master
Jefersson Nathan [Tue, 29 Apr 2014 11:44:15 +0000 (08:44 -0300)]
Merge pull request #30 from gpgautier/master

Filename is not printed on screen when loading config from file.

10 years agoFilename is not printed on screen when loading config from file.
Guido Gautier [Tue, 29 Apr 2014 10:05:18 +0000 (12:05 +0200)]
Filename is not printed on screen when loading config from file.

10 years agoMerge branch 'master' of https://github.com/malukenho/PHP-Router into malukenho-master
malukenho [Mon, 3 Mar 2014 18:33:32 +0000 (15:33 -0300)]
Merge branch 'master' of https://github.com/malukenho/PHP-Router into malukenho-master

10 years agoCreating routes from YAML files. Closed #25
malukenho [Mon, 3 Mar 2014 18:23:38 +0000 (15:23 -0300)]
Creating routes from YAML files. Closed #25

- Now you can create a yaml file do describe routes for your application
  and load this by PHP-Router

10 years agoMerge pull request #26 from malukenho/master
Jefersson Nathan [Mon, 17 Feb 2014 16:23:02 +0000 (14:23 -0200)]
Merge pull request #26 from malukenho/master

Create .configeditor to standardization of editors

10 years agoCreate .configeditor to standardization of editors
Jefersson Nathan [Sun, 16 Feb 2014 16:32:42 +0000 (14:32 -0200)]
Create .configeditor to standardization of editors

The EditorConfig helps set and maintain consistent styles of code among several editors. It is a simple file that stores the settings of coding style, your favorite editor reads these settings and understands exactly what setting to use for each file format.

More info: http://editorconfig.org

10 years agoMerge branch 'master' of https://github.com/malukenho/PHP-Router into malukenho-master
Jefersson Nathan [Fri, 14 Feb 2014 11:43:55 +0000 (09:43 -0200)]
Merge branch 'master' of https://github.com/malukenho/PHP-Router into malukenho-master

10 years agoReplace tabs to space on identation
Jefersson Nathan [Thu, 13 Feb 2014 11:20:13 +0000 (09:20 -0200)]
Replace tabs to space on identation

- Remove file not used and triling lines and tabs of files

10 years agoRemove method map() of PHPRouter\Router
Jefersson Nathan [Wed, 12 Feb 2014 18:35:02 +0000 (16:35 -0200)]
Remove method map() of PHPRouter\Router

10 years agoSeparate responsabilities of Classes
Jefersson Nathan [Wed, 12 Feb 2014 18:11:19 +0000 (16:11 -0200)]
Separate responsabilities of Classes

- Refactor on PHPRouter\Route and PHPRouter\Router to accept a collection of routers. That is now more flexible and simple to manager yours routers.
- Update README.md with new form to create Routers
- Add "type" and PHPUnit like "require-dev" on composer.json file
- Update example.php file with new syntax

10 years agofix psr-0 compliance 1.0.0-alpha
Danny van Kooten [Wed, 12 Feb 2014 12:10:38 +0000 (13:10 +0100)]
fix psr-0 compliance

10 years agoPSR-0 compliance
Jefersson Nathan [Wed, 12 Feb 2014 11:54:10 +0000 (09:54 -0200)]
PSR-0 compliance

- Add namespaces for classes Router and Route. Now it is PHPRouter\Router and PHPRouter\Router.
- Add autoload by PSR-0 compliance
- Make small refactors on classes

10 years agofix uppercase name
Danny van Kooten [Wed, 12 Feb 2014 11:20:03 +0000 (12:20 +0100)]
fix uppercase name

10 years agoadd composer support, fixes #21
Danny van Kooten [Wed, 12 Feb 2014 11:19:07 +0000 (12:19 +0100)]
add composer support, fixes #21

10 years agoFixed variable name
Danny van Kooten [Thu, 12 Sep 2013 19:15:32 +0000 (21:15 +0200)]
Fixed variable name

Property name fix.

11 years agoupdated readme
Danny van Kooten [Tue, 31 Jul 2012 19:16:17 +0000 (21:16 +0200)]
updated readme

11 years agoMore examples.
Danny van Kooten [Mon, 30 Jul 2012 09:19:19 +0000 (11:19 +0200)]
More examples.

11 years agoMerge pull request #12 from niahoo/precedence
Danny van Kooten [Mon, 30 Jul 2012 09:14:24 +0000 (02:14 -0700)]
Merge pull request #12 from niahoo/precedence

same priorities for url match and generate

11 years agoFixes #10
Danny van Kooten [Tue, 19 Jun 2012 12:48:56 +0000 (14:48 +0200)]
Fixes #10

11 years agosame priorities for url match and generate
Ludovic Demblans [Tue, 19 Jun 2012 11:42:30 +0000 (13:42 +0200)]
same priorities for url match and generate

12 years agoStrips GET variables from URL before matching. Fixes #9
Danny van Kooten [Sun, 8 Apr 2012 13:47:35 +0000 (15:47 +0200)]
Strips GET variables from URL before matching. Fixes #9

12 years agoAdded LICENSE file
Danny van Kooten [Sat, 7 Apr 2012 11:38:26 +0000 (13:38 +0200)]
Added LICENSE file

12 years agoMerge branch 'master' of github.com:dannyvankooten/PHP-Router
Danny van Kooten [Sat, 7 Apr 2012 11:37:58 +0000 (13:37 +0200)]
Merge branch 'master' of github.com:dannyvankooten/PHP-Router

12 years agoAdded LICENSE file
Danny van Kooten [Sat, 7 Apr 2012 11:36:17 +0000 (13:36 +0200)]
Added LICENSE file

12 years agoMerge pull request #8 from laokaplow/patch-1
Danny van Kooten [Mon, 2 Apr 2012 08:10:00 +0000 (01:10 -0700)]
Merge pull request #8 from laokaplow/patch-1

Fixed minor indentation error

12 years agoFixed misleading indentation
laokaplow [Sun, 1 Apr 2012 03:08:59 +0000 (20:08 -0700)]
Fixed misleading indentation

12 years agoRemoved sublime files
Danny van Kooten [Mon, 27 Feb 2012 14:17:07 +0000 (15:17 +0100)]
Removed sublime files

12 years agoRemoved sublime files
Danny van Kooten [Mon, 27 Feb 2012 14:13:33 +0000 (15:13 +0100)]
Removed sublime files

12 years agoRemoved sublime files
Danny van Kooten [Mon, 27 Feb 2012 14:13:02 +0000 (15:13 +0100)]
Removed sublime files

12 years agoFixes #5
Danny van Kooten [Mon, 27 Feb 2012 14:11:50 +0000 (15:11 +0100)]
Fixes #5

12 years agoFixes #4
Danny van Kooten [Fri, 10 Feb 2012 09:21:59 +0000 (10:21 +0100)]
Fixes #4

- Forced suffixing of Route URL's with a forward slash.
- Added getters and setters for parameters.

12 years agoReadme fix
Danny van Kooten [Thu, 9 Feb 2012 20:14:32 +0000 (21:14 +0100)]
Readme fix

12 years agoUpdated readme for 1.1
Danny van Kooten [Thu, 9 Feb 2012 20:13:00 +0000 (21:13 +0100)]
Updated readme for 1.1

12 years ago1.1 changes
Danny van Kooten [Thu, 9 Feb 2012 20:09:33 +0000 (21:09 +0100)]
1.1 changes

- Better inline documentation
- More examples
- Changed the way Route targets are handled. You can now specify anything (string|array) and use your own custom method to do something with this target.
- Code clean up

12 years agoreadme fix
Danny van Kooten [Sun, 15 Jan 2012 22:06:06 +0000 (23:06 +0100)]
readme fix

12 years agoUpdated readme file for v1.1
Danny van Kooten [Sun, 15 Jan 2012 22:05:29 +0000 (23:05 +0100)]
Updated readme file for v1.1