Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/hoaproject/Router

The Hoa\Router library.
https://github.com/hoaproject/Router

Fix ports print.

Default port is set at construction.
Ports are printed if different of standard ports.

07700f353db960e75c0592fa4aa3e0631c800e24 authored over 11 years ago by Ivan Enderlin <[email protected]>
Update API documentation.

5afddbd35db0f697def54d85c88c6d873bfd79e0 authored over 11 years ago by Ivan Enderlin <[email protected]>
Add the (set|get)DefaultPort() methods.

Because the default ports are not always 80 and 443.

366fc04d5d538ca73282db046368662866fb5fba authored over 11 years ago by Ivan Enderlin <[email protected]>
Allow to redefine subdomain suffix as we want.

Before, it was required to call the setSubdomainSuffix() method before
declaring the rules. Now ...

6fb7ea9584fe513b58241b0182c7e28eb0817722 authored over 11 years ago by Ivan Enderlin <[email protected]>
Some methods become static.

The following methods become static:
• getURI;
• getQuery;
• getDomain;
• getPor...

97de6ed3b83e1fccbd1c2bdebc6f7bb79d21674e authored over 11 years ago by Ivan Enderlin <[email protected]>
isSecure() method does no longer use port number.

491683603f1c691c96c7809750d408321c11788c authored over 11 years ago by Ivan Enderlin <[email protected]>
Format code. #mania

da3b3d88e0fc84a82d055c7defa7711d897b7e98 authored over 11 years ago by Ivan Enderlin <[email protected]>
Update API documentation.

71f0907ba5c485c354436126f92d054878b42b4f authored over 11 years ago by Ivan Enderlin <[email protected]>
Reorder method declarations.

62eaaba194cf4437b63f58e3bf1cc291c51eb314 authored over 11 years ago by Ivan Enderlin <[email protected]>
Allow to unroute more complex PCRE patterns.

If a capture has a repetition operator, such as: ?, * or + (in greedy,
possesive or lazy mode), ...

9b4dee9a68a978f1edd24212d656ea470d435cfa authored over 11 years ago by Ivan Enderlin <[email protected]>
Use references instead of copies for call/able.

526fd3027638b4ecc42988ac7d4d2b785f693c36 authored over 11 years ago by Ivan Enderlin <[email protected]>
Create a generic router.

And HTTP and CLI routers extend the generic one.

34bc457d21c8e9aec64cf937f07c51e3b563dc25 authored over 11 years ago by Ivan Enderlin <[email protected]>
ID is given before methods when adding a rule.

5e50774911a746080908665e8dd9af9059b62a58 authored over 11 years ago by Ivan Enderlin <[email protected]>
Add some existing methods in the interface.

Introduce addRule(), addPrivateRule() and removeRule() in the router
interface.

9a0647707fb18dc11b69ea5a8f1c5c13639743db authored over 11 years ago by Ivan Enderlin <[email protected]>
Ease rolling-release.

34fafa6e725f7edb1a5bc507ffb3118cd9f18770 authored over 11 years ago by Ivan Enderlin <[email protected]>
Add the removeRule() method.

be5016eff454e2dfd392599622daeadfa113739e authored over 11 years ago by Ivan Enderlin <[email protected]>
Early draft.

6c9cb976683523ca29905e322e01918ba089fbae authored over 11 years ago by Ivan Enderlin <[email protected]>
Format code. #mania

756f4847582c36ddff67c73b7def05486254f9ba authored over 11 years ago by Ivan Enderlin <[email protected]>
Remove prefix when unrouting a URI with a scheme.

a36c02cf8b8b363b05d1862a7b8c067b383a4f31 authored over 11 years ago by Ivan Enderlin <[email protected]>
Update API documentation.

99efe00f4d108041f906e3b787b8e97883b8cc0d authored almost 12 years ago by Ivan Enderlin <[email protected]>
Prevent error when the domain is empty.

8b38dbf38315aa9ff61fae2b6c2186e042b4823f authored almost 12 years ago by Ivan Enderlin <[email protected]>
Fix previous commit…

6439a354fff528dd10868d1899afc7f7616ec32b authored almost 12 years ago by Ivan Enderlin <[email protected]>
empty('0') === true, yes! Fix this.

f2fde1f608721fb1ed15899c67be885bf35ea10e authored almost 12 years ago by Ivan Enderlin <[email protected]>
Make getURI() pure regarding $_SERVER.

50d08fda1e46f897d5eaa2d4990acc5aac80282a authored almost 12 years ago by Ivan Enderlin <[email protected]>
Happy new year \o/.

0186cbd03717c481b95171eeb41647b647ef1650 authored about 12 years ago by Ivan Enderlin <[email protected]>
Update link to Hoa's logo.

49076aabb426bab8117510378870b07a5429064c authored about 12 years ago by Ivan Enderlin <[email protected]>
_subdomain accepts keywords.

_subdomain accepts 3 keywords:
* __root__ to go back to the root (with the smallest subdomai...

81686dbc473f2d47edd0ce2147e4020bd57312ca authored about 12 years ago by Ivan Enderlin <[email protected]>
Fix a method call case.

c56af7cc41da4d838db745353d758977d2c07c24 authored about 12 years ago by Ivan Enderlin <[email protected]>
_subdomain have priority on @.

_subdomain is computed before @. Moreover, _subdomain is now considering
subdomain suffix.

b9546daa25fb68b5513a546e51f755efa727d31a authored about 12 years ago by Ivan Enderlin <[email protected]>
Empty variables are forbidden in subdomain.

When unrouting a subdomain, if a variable is empty or undefined, an
exception will be thrown.

ced9c1e045aa04ab8e3f04d6b4237a3814ca988a authored about 12 years ago by Ivan Enderlin <[email protected]>
Fix a bad logic expression.

6d49423850e2376dcfa0684109a566425cddbbef authored about 12 years ago by Ivan Enderlin <[email protected]>
Throw an exception if REQUEST_URI is not found.

2d8dcec54bf73566ce0d516abcde4d0ec2d77bee authored about 12 years ago by Ivan Enderlin <[email protected]>
Fix getURI() in CLI.

0546976bcb4adbe7b2e2d9cae94d77e215470b4c authored about 12 years ago by Ivan Enderlin <[email protected]>
mod_rewrite ruins QUERY_STRING, fix this.

bb4fffab4f1f59cac1b3e89c612ccf01a29d0570 authored about 12 years ago by Ivan Enderlin <[email protected]>
Add the getQuery() method.

17b3df5088373f33e8049bce0442ed745252c3f2 authored about 12 years ago by Ivan Enderlin <[email protected]>
getURI() removes query path.

5edad2656e4c45bfe1c0868018c6a5451e77b12d authored about 12 years ago by Ivan Enderlin <[email protected]>
Add retro-compatibility for PHP<5.4 (or 5.5-dev).

Method signature has changed: reference is no more considered. So, be
compatible with previous P...

9b81c93f5981079cc586a666c5cbb408ae3b68b2 authored over 12 years ago by Ivan Enderlin <[email protected]>
getTheRule() returns a reference.

The getTheRule() method now returns a reference. This allows deep hacks, for
example, adding var...

388002bd236b2febe78b5ccb0e81bcadda51c56d authored over 12 years ago by Ivan Enderlin <[email protected]>
Fix a typo.

acbf985724d223793d53d19a5edf8a4a4ef8c254 authored over 12 years ago by Ivan Enderlin <[email protected]>
Add composer.json and write README.md.

f0d873b2269414fa7764f9e7ab40a4355ef3cdb8 authored over 12 years ago by Ivan Enderlin <[email protected]>
Libification (split from Central).

205755124f99b61922a1d8191e2c3d83dc5d952c authored over 12 years ago by Ivan Enderlin <[email protected]>
s/base/prefix. #semantics

0176987c11a2090f5f795ad2c1c4d712fdfd1179 authored over 12 years ago by Ivan Enderlin <[email protected]>
Fix base logic and fix unconventional unsecured ports.

c44924355ee621e678bb5b8f48ca4a9cc9963a4a authored over 12 years ago by Ivan Enderlin <[email protected]>
Format code. #mani

e66c502d9f0ed6866612aec09ea92b1c82f775a5 authored over 12 years ago by Ivan Enderlin <[email protected]>
s/_anchor/_fragment/ to respect the vocabulary of the RFC2396: “Uniform Resource Identifier (URI): Generic Syntax”.

8ea1cd68d05b50c8b7c3b7d019026360fe1f6c9a authored over 12 years ago by Ivan Enderlin <[email protected]>
Add the special variable “_anchor” in the Hoa\Router\Http::unroute() method to

add an anchor (#anAnchor) to the URI.
Update the API documentation to precise all special variables.

a44b82f60d0c5f33d44046e01ffde17babf6afa6 authored over 12 years ago by Ivan Enderlin <[email protected]>
Add the $secured argument to Hoa\Router\Http::unroute() to force the use of

HTTPS.

0684a58cd4548b2862bf7e1cf4091256aa596cab authored over 12 years ago by Ivan Enderlin <[email protected]>
Consider the PATCH method (please, see changeset #2166).

57cdb2718527a8a82a25c9fecaea0c63f68fd9c0 authored over 12 years ago by Ivan Enderlin <[email protected]>
Save memory.

6f15bf2a973db7e16712dfd2ffa8247ffb421aea authored almost 13 years ago by Ivan Enderlin <[email protected]>
#merge

3d7c645ca1859db302bca87ef027c1096888256d authored almost 13 years ago by Ivan Enderlin <[email protected]>
Merge.

bce25ba66073bbce15dc6f681abe091cd1c908ea authored almost 13 years ago by Ivan Enderlin <[email protected]>
Add the ruleExists() method on interface Hoa\Router.

e78445c1ad598ba3e952c6decce747fcfcc73c22 authored almost 13 years ago by Ivan Enderlin <[email protected]>
Remove bootstrap computing in the route() method. Not needed anymore.

786352a19ba2ab50d7653cc95741e7468cce29d2 authored almost 13 years ago by Ivan Enderlin <[email protected]>
s/2007-2011/2007-2012/

c6c44c5d4f1a144f28eb2e68e47fb2b16199e17c authored almost 13 years ago by Ivan Enderlin <[email protected]>
Repeat the operation on $_GET.

cb8daec49ce10b9762bdcabbb63e80f371fbaf80 authored almost 13 years ago by Ivan Enderlin <[email protected]>
Remove URI from $_REQUEST.

265e4798e64054ed0e81c6de654ee0aca4cbc663 authored almost 13 years ago by Ivan Enderlin <[email protected]>
#merge

18e9a0866157e23c10622b4b0c6c51cdd981abba authored about 13 years ago by Ivan Enderlin <[email protected]>
Merge (but why?).

c2d1f03525bad77b393dd062dec29886d74aaeff authored about 13 years ago by Ivan Enderlin <[email protected]>
Add concept of subdomain suffix.

c720e33a5599d87647f5dbae52374dd3dc8f834d authored about 13 years ago by Ivan Enderlin <[email protected]>
Forget to get a default subdomain.

217d67edde1e61d1ab5125b9a8e5c6bbeb5524ae authored about 13 years ago by Ivan Enderlin <[email protected]>
Now, we can force a subdomain in the URI of route().

fd0f7ffe3dfd88250f64d5d5bcc780b1bbdfb994 authored about 13 years ago by Ivan Enderlin <[email protected]>
In unroute(), variables keys are not case-sensitive.

bfac807d7c83cdaa3a495d9a621677c19a6d385d authored about 13 years ago by Ivan Enderlin <[email protected]>
Remove left / on URI when we manually route a URI (more consistent).

abec9a4523fde0b041e3a315947724f1b77ae904 authored about 13 years ago by Ivan Enderlin <[email protected]>
Change index by the dedicated constant.

13e48fe9756d24f7740f59462af6a754b805dfae authored about 13 years ago by Ivan Enderlin <[email protected]>
Hoa\Router::route() now returns the current instance instead of the found rule.

cd49ff79543a09587a0cb6d15ec461f3ecdd501e authored about 13 years ago by Ivan Enderlin <[email protected]>
We are not using PHP5.4 here ;-).

607934c97cb3b68a7a8afacb1ebe393015ca01ca authored about 13 years ago by Ivan Enderlin <[email protected]>
Change exception message (more explicit compared to the next exception message).

623b6feaf44bc55613767fd7e95d920f175ff8a7 authored about 13 years ago by Ivan Enderlin <[email protected]>
Consider subdomain as static or dynamic.

d06a014b718880850d5ee199fe3c548734f27aea authored about 13 years ago by Ivan Enderlin <[email protected]>
Add an exception when no rule is selected for a specific route.

1737b25a335ac4cbc857613921105c9a590a1549 authored about 13 years ago by Ivan Enderlin <[email protected]>
Call the getSubdomain() method will return null if the domain is an IP.

144089509dad6ecddccf7dc64a2e43f4bb5584b1 authored over 13 years ago by Ivan Enderlin <[email protected]>
Update variables assignment algorithm.

If a variable has a default value, we set its value if and only if its value is
not empty. Else,...

ffe8199e433de9f045a331320e6f37359174a530 authored over 13 years ago by Ivan Enderlin <[email protected]>
Welcome the Cli router :-).

1a5e02e409c91a36027e66798521b9e7c1239d34 authored over 13 years ago by Ivan Enderlin <[email protected]>
Edit API documentation. #mania

3d08eca0d3f1b3fd675371dceed3421e464d2e1a authored over 13 years ago by Ivan Enderlin <[email protected]>
The $call parameter is now optional for the addRule() method.

9b4b44ffa2b20342d05530ef3f4cd23c7f8eef41 authored over 13 years ago by Ivan Enderlin <[email protected]>
Update parameter system.

It's now more simple. We have one interface: Hoa\Core\Parameter\Parameterizable
and one method: g...

3676a57a7d3b71e8a54fbef502f4b7106c51e806 authored over 13 years ago by Ivan Enderlin <[email protected]>
Add parameters.

153dce97503a9d74a2bc096ef66c9a9d0afd72f7 authored over 13 years ago by Ivan Enderlin <[email protected]>
If a rule does not have a pattern to match a subdomain, the unroute() method was

not producing a complete URI, only the query part, what was totally logical. But
if we want to ch...

96e5fb5bcd1208ca948647d57eb4d5100eefaa64 authored over 13 years ago by Ivan Enderlin <[email protected]>
Add the isSecure() and getPort() methods. The getDomain() method does no longer return the port. Finally, the unroute() method writes http:// or https://, with the port (if needed), when unrouting a rule with a subdomain constraint.

a7675e504be63dfea687b61aa0f11173e4536786 authored over 13 years ago by Ivan Enderlin <[email protected]>
Add _request to rule's variables.

3a3b0252f44ab7b4201fa98b0301a157fe9f0db1 authored over 13 years ago by Ivan Enderlin <[email protected]>
$call could be optional in a private rule.

38fda4bde43710f0703867514f35af0d46966fe4 authored over 13 years ago by Ivan Enderlin <[email protected]>
Update exceptions' number.

826c9a7147218ae92e9c18f67467509fb23dc7fa authored over 13 years ago by Ivan Enderlin <[email protected]>
Router is now more abstract. All routers will manipulate rule as buckets. We add

isAsynchronous() method and getMethod() moves up.

6ef2bde735206506a176cc02054b34cd67654237 authored over 13 years ago by Ivan Enderlin <[email protected]>
Welcome to \Hoa\Router \o/ ! A dedicated packager for router. First of them,

\Hoa\Router\Http (that support REST design, subdomain, domain, request etc.).

a70e14d41a70270573adbf447d72f0ea71e58a17 authored over 13 years ago by Ivan Enderlin <[email protected]>
Resolve conflict.

1b7f278829f5c55b25d3d91ec2363a183408800d authored almost 14 years ago by Ivan Enderlin <[email protected]>
Merge.

daabf30ad3a20cff8b4ad902b44a34e002015848 authored almost 14 years ago by Ivan Enderlin <[email protected]>
Foobar

d1f53d2b769b6af567c60a62184f3c698649ced6 authored almost 14 years ago by Ivan Enderlin <[email protected]>
New repository layout (again).

087f4c466aba9aee909dfe79bb126fc44f0ba494 authored about 16 years ago by hywan <devnull@localhost>