fadrian06
fdf1a31d03
Bump version v2.0.2
1 year ago
fadrian06
42ec161d8a
Added code format
1 year ago
fadrian06
ba0c6bda33
Improved documentation
1 year ago
fadrian06
fbcc9108c2
DocBlocks improved
1 year ago
fadrian06
cce78f18a3
PHPStan installation
1 year ago
Sascha Nos
c929626fc6
fix wrong type return
1 year ago
Mike Cao
2df64f37ea
Bump version v2.0.01
3 years ago
Mike Cao
a130231646
Merge pull request #456 from jamalo/master
...
PHP 8.1: Type declare length as int
3 years ago
Mike Cao
fc43bfb4ea
Update flight/net/Request.php
...
Co-authored-by: Michal Hybner <76526074+mu1f407@users.noreply.github.com>
3 years ago
Mike Cao
c5649791c0
Merge pull request #457 from mu1f407/master
...
[2.x] Fix JSON request with empty body
3 years ago
Michal Hybner
21a0c55375
Fix JSON request with empty body
3 years ago
Jamal
d2a92aa808
Fix PHP 8.1: Assign string to int propety
...
TypeError: Cannot assign string to property flight\net\Request::$length of type int
3 years ago
Mike Cao
85b5b97cf9
Bump version v2.0.0.
3 years ago
Mike Cao
212490ff61
Merge branch 'master' of https://github.com/mikecao/flight
3 years ago
Mike Cao
0ae1f9f484
Merge pull request #439 from masroore/master
...
PHP 7.4/8.0/8.1 compatibility
3 years ago
Masroor Ehsan
c0f83495cc
updated README
3 years ago
Masroor Ehsan
83fd1e75a2
Added ReturnTypeWillChange attribute to Collection class methods
3 years ago
Masroor Ehsan
dd73a61c32
FIX: Typed property flight\net\Response::$body must not be accessed before initialization
3 years ago
Masroor Ehsan
e18765f7d5
updated package description
3 years ago
Max Ehsan
45e93a6740
Update README.md
3 years ago
Masroor Ehsan
b7abb4945f
check for valid json input
3 years ago
Masroor Ehsan
132657ab58
updated PHP requirements
4 years ago
Masroor Ehsan
8b513516cb
updated readme
4 years ago
Mike Cao
aa55b97093
Merge pull request #445 from saschanos/dev-json-check
...
check for valid json input
4 years ago
Sascha Nos
f8dd98523c
check for valid json input
4 years ago
Masroor Ehsan
a2c5dd5ede
minor refactorings
4 years ago
Masroor Ehsan
5b8e743e3d
refactorings
4 years ago
Masroor Ehsan
ff852c19e3
updated phpunit and tests
4 years ago
Masroor Ehsan
d3feb77ce9
fixed parameter types
4 years ago
Masroor Ehsan
04e471bf46
PHP ^7.4|^8.0 compatibility
4 years ago
Mike Cao
6e9768503a
Merge pull request #434 from ThomasOrlita/patch-1
...
Add info about regex groups with named parameters
4 years ago
Mike Cao
ca155d5394
Bump version.
4 years ago
Thomas Orlita
6f9cd0c195
Add info about regex groups with named parameters
...
I think this should be mentioned in the docs, see #277 and #324
4 years ago
Mike Cao
bc5e03ca59
Merge pull request #395 from merkuriy/JsonSerializableCollection
...
Added JsonSerializable for util/Collection
4 years ago
Mike Cao
b6429d2a3c
Merge pull request #433 from juneszh/master
...
add content_length configuration
4 years ago
juneszh
ed9bbed287
add content_length configuration
4 years ago
juneszh
c649964d95
add content_length configuration
4 years ago
Mike Cao
b3120f8db2
Merge pull request #409 from pluveto/patch-1
...
Trim url
5 years ago
Mike Cao
b4842fc021
Merge pull request #405 from digital-codes/master
...
Enable DELETE method to receive request body
5 years ago
pluveto
ddb806a604
Trim url pattern
...
This helps support whitespaces between METHOD and URL:
```php
Flight::route('GET /auth/nonce', array($apiAuth, 'getNonce')); // `GET[space][space]/auth/nonce`
Flight::route('POST /auth/login/email', array($apiAuth, 'loginByEmail'));
```
5 years ago
Andreas Kugel
0145f629d3
Enable DELETE method to receive request body
...
Delete for CRUD needs request data in body
5 years ago
Mike Cao
e459a54017
Bump version.
6 years ago
Mike Cao
da8eaefc63
Merge pull request #398 from hlidotbe/feature/request-host
...
Add host to request
6 years ago
Mike Cao
d7c3489ba2
Merge pull request #397 from hlidotbe/fix/request-scheme
...
Fix request scheme
6 years ago
Hugues Lismonde
b4c9c42b00
Add host to request
...
The requested host can be useful to build an url or route request based
on which host was used.
6 years ago
Hugues Lismonde
e0dfb7406d
Fix request schem
...
As mentionned in #396 , the request scheme was not as documented,
returning SERVER_PROTOCOL instead.
The `getScheme` function is now used to handle common cases (HTTPS,
FORWATED_PROTO, ...).
`request->secure` is also based on the scheme now as `$_SERVER['HTTPS']`
is unreliable for this purpose.
6 years ago
Uriy @MerkUriy Efremochkin
ceb1b5bb89
Added JsonSerializable for util/Collection and added LegacyJsonSerializable for PHP <5.4.0.
...
Closed mikecao/flight#394 .
6 years ago
Mike Cao
c57ee8cb8d
Merge pull request #384 from spytheman/master
...
Allow easy routing of URLs containing Cyrillic letters.
6 years ago
Delyan Angelov
0daa3f81b5
Allow cyrillic letters in the routes, by matching the result of urldecode over the URL .
6 years ago
Delyan Angelov
406be00436
Add a failing test for routing URLs containing Cyrillic letters.
6 years ago