OSDN Git Service

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

12 years agoImplemented match and matchCurrentRequest methods.
Danny van Kooten [Sun, 15 Jan 2012 22:01:04 +0000 (23:01 +0100)]
Implemented match and matchCurrentRequest methods.

12 years agoMore rewriting..
Danny van Kooten [Sun, 15 Jan 2012 21:45:24 +0000 (22:45 +0100)]
More rewriting..

12 years agoFirst commit after rewriting the class. Added a Route class that holds the
Danny van Kooten [Sun, 15 Jan 2012 21:06:21 +0000 (22:06 +0100)]
First commit after rewriting the class. Added a Route class that holds the
various route information.

Improved the matching, only the essential stuff is done for every route. The
way the Router class works has been changed entirely. This comes with
various benefits including improved readability."

12 years agoUncommented some examples
Danny van Kooten [Tue, 3 Jan 2012 08:35:00 +0000 (09:35 +0100)]
Uncommented some examples

12 years agoFixes #2 - now compatible with PHP 5.2.17, did not test any lower versions.
Danny van Kooten [Tue, 3 Jan 2012 08:30:09 +0000 (09:30 +0100)]
Fixes #2 - now compatible with PHP 5.2.17, did not test any lower versions.

12 years agoFixes #1
Danny van Kooten [Mon, 2 Jan 2012 22:46:15 +0000 (23:46 +0100)]
Fixes #1

12 years agoAdded :controller and :action segments. Added regex filters for URL variables.
Danny van Kooten [Sun, 4 Dec 2011 13:36:25 +0000 (14:36 +0100)]
Added :controller and :action segments. Added regex filters for URL variables.

12 years agoUpdated example, small typo.
Danny van Kooten [Tue, 29 Nov 2011 07:40:08 +0000 (08:40 +0100)]
Updated example, small typo.

12 years agoFixed REQUEST_METHOD hack for PUT and DELETE requests.
Danny van Kooten [Sun, 27 Nov 2011 22:22:17 +0000 (23:22 +0100)]
Fixed REQUEST_METHOD hack for PUT and DELETE requests.

12 years agoRemoved var_dump, fixed trailing slash issue for resources.
Danny van Kooten [Sun, 27 Nov 2011 20:34:46 +0000 (21:34 +0100)]
Removed var_dump, fixed trailing slash issue for resources.

12 years agoFixed case sensitivity. Fixed extracting target from URL when using base_url.
Danny van Kooten [Sun, 27 Nov 2011 19:17:31 +0000 (20:17 +0100)]
Fixed case sensitivity. Fixed extracting target from URL when using base_url.

12 years agoupdated readme
Danny van Kooten [Sun, 27 Nov 2011 16:17:11 +0000 (17:17 +0100)]
updated readme

12 years agoupdated example
Danny van Kooten [Sun, 27 Nov 2011 16:10:44 +0000 (17:10 +0100)]
updated example

12 years agoMethod naming consistency. Updated readme.
Danny van Kooten [Sun, 27 Nov 2011 16:08:47 +0000 (17:08 +0100)]
Method naming consistency. Updated readme.

12 years agoAdded readme
Danny van Kooten [Sun, 27 Nov 2011 16:02:58 +0000 (17:02 +0100)]
Added readme

12 years agoFirst commit
Danny van Kooten [Sun, 27 Nov 2011 15:56:57 +0000 (16:56 +0100)]
First commit