Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
68ee7c8
Add 451 error code
vermakhushboo Jan 31, 2024
b1423ca
Merge pull request #121 from utopia-php/add-451-error-code
abnegate Jan 31, 2024
87525cb
Wildcard host validator
Meldiron Jan 4, 2024
893d602
refactor(validator): simplify return
stnguyen90 Mar 11, 2024
18fd859
chore: test default param with function
christyjacob4 Mar 7, 2024
d74b9c3
chore: update test
christyjacob4 Mar 7, 2024
7009952
chore: linter
christyjacob4 Mar 7, 2024
5bcb735
chore: update test
christyjacob4 Mar 7, 2024
6ee2e93
Merge pull request #127 from utopia-php/feat-default-param-callable
christyjacob4 Mar 19, 2024
9dd7242
fix: remove tests from autoload
stnguyen90 Mar 21, 2024
3068acc
chore: fix default param
christyjacob4 Mar 21, 2024
f11f6d5
chore: add test for callable params
christyjacob4 Mar 21, 2024
d333880
chore: linter
christyjacob4 Mar 21, 2024
dfe411b
Merge pull request #129 from utopia-php/fix-test-path
christyjacob4 Mar 21, 2024
8fe57da
Merge pull request #128 from utopia-php/fix-default-param
christyjacob4 Mar 21, 2024
9f07728
Added AnyOf Validator
vermakhushboo Aug 1, 2024
bfe39bd
Re-add multiple test
vermakhushboo Aug 1, 2024
78d293d
Merge pull request #137 from utopia-php/feat-anyof-validator
christyjacob4 Aug 1, 2024
7b5a7a8
Add getValidatosr to AnyOf
Meldiron Aug 15, 2024
3cf34e0
Fix CI/CD
Meldiron Aug 15, 2024
a7f5775
Merge pull request #138 from utopia-php/feat-multiple-validator-export
christyjacob4 Aug 15, 2024
9644b0c
feat: compression
loks0n Oct 23, 2024
eaebc95
test: enable compression
loks0n Oct 23, 2024
f7dfee2
fix: lint
loks0n Oct 23, 2024
f4f83a3
chore: fmt
loks0n Oct 29, 2024
10036b0
chore: remove extra file
loks0n Oct 29, 2024
9112676
feat: supported compression algorithms
loks0n Oct 31, 2024
a501a56
fix: define compression supported
loks0n Nov 1, 2024
72239fb
debug: compression
loks0n Nov 7, 2024
238c9c2
fix: send headers after
loks0n Nov 8, 2024
c91b576
chore: fmt
loks0n Nov 8, 2024
58851dc
chore: composer update
loks0n Nov 8, 2024
82c7252
Merge pull request #147 from utopia-php/feat-compression-0.33.x
christyjacob4 Nov 8, 2024
16b26aa
chore: bump compression
loks0n Nov 8, 2024
247b934
Merge pull request #149 from utopia-php/chore-update-compression
loks0n Nov 8, 2024
00ce83d
feat: add header
loks0n Nov 8, 2024
7c9e441
chore: update to true
loks0n Nov 8, 2024
354ff0d
Merge pull request #150 from utopia-php/feat-add-compression-header
christyjacob4 Nov 8, 2024
9d4b8f2
feat: telemetry support
basert Nov 11, 2024
3f46ad8
chore: review feedback
basert Nov 13, 2024
438f50d
chore: use telemetry 0.1.0, php 8.1
basert Nov 13, 2024
bfb7812
Merge pull request #151 from utopia-php/PLA-1854
basert Nov 13, 2024
15f5dd1
fix: keep original matched route for metrics
basert Nov 15, 2024
4ecab88
Merge pull request #152 from utopia-php/PLA-1854
basert Nov 15, 2024
090fbab
Ensure swoole knows content length when compressed
Meldiron Nov 20, 2024
9138535
CI/CD fix
Meldiron Nov 20, 2024
45a5a2d
Merge pull request #154 from utopia-php/fix-site-compressiong
Meldiron Nov 20, 2024
e454f24
fix: duplicate compression
loks0n Dec 2, 2024
0d535f3
Apply suggestions from code review
Meldiron Dec 2, 2024
80106e3
fix: catch error handler
loks0n Dec 10, 2024
4d36d9a
fix: spacing
loks0n Dec 10, 2024
b887c60
test: error handler scenerios
loks0n Dec 10, 2024
c087eb0
chore: fmt
loks0n Dec 10, 2024
f642cee
fix: codeql
loks0n Dec 10, 2024
68f5fb3
fix: bench
loks0n Dec 10, 2024
83b0628
Merge pull request #156 from utopia-php/fix-catch-error-handler
loks0n Dec 10, 2024
0d18cf4
feat: compress for types
loks0n Jan 16, 2025
e91d4c5
Merge pull request #162 from utopia-php/feat-compress-more-types
christyjacob4 Jan 16, 2025
193e15f
Merge remote-tracking branch 'origin/0.33.x' into fix-prevent-duplica…
Meldiron Feb 3, 2025
a1efe3e
Fix formatting
Meldiron Feb 3, 2025
81f4a3f
Merge pull request #155 from utopia-php/fix-prevent-duplicate-compres…
Meldiron Feb 24, 2025
2d29fbd
Fix actions running after response in init
Meldiron Feb 24, 2025
73fac6f
Merge pull request #164 from utopia-php/fix-actions-after-response
Meldiron Feb 24, 2025
e332b1c
Proof of content, error in alias
Meldiron Mar 4, 2025
5771262
Fix edge-case
Meldiron Mar 4, 2025
1a51546
Fix new edge case
Meldiron Mar 4, 2025
1d31f75
Fix another edge case
Meldiron Mar 4, 2025
c42db6d
Apply suggestions from code review
Meldiron Mar 6, 2025
897e9e8
Apply suggestions from code review
Meldiron Mar 6, 2025
00b3743
Merge pull request #165 from utopia-php/fix-alias-params
Meldiron Mar 6, 2025
f1f293c
Avoid breaking change
Meldiron Mar 6, 2025
3ee429f
Update dependencies
Meldiron Mar 6, 2025
71d7e75
Revert "Avoid breaking change"
Meldiron Mar 6, 2025
719b5dc
Reapply "Avoid breaking change"
Meldiron Mar 6, 2025
916424c
quality fix
Meldiron Mar 6, 2025
64c7b7b
Merge pull request #167 from utopia-php/fix-breaking-change
Meldiron Mar 6, 2025
26f6c5a
deprecated params
Meldiron May 18, 2025
e1c7ab4
Merge pull request #169 from utopia-php/feat-deprecated-params
eldadfux May 18, 2025
d3e1230
fix: add missing status codes
loks0n May 22, 2025
3e8733e
ci: fix docker-compose
loks0n May 22, 2025
35839e9
fix: duplicate
loks0n May 22, 2025
0057b76
Fix: handle null path, default to `/`
lohanidamodar Jun 30, 2025
f69f100
Tests
lohanidamodar Jun 30, 2025
13d59cb
update app test
lohanidamodar Jun 30, 2025
804be9e
Fix codeql
lohanidamodar Jun 30, 2025
2cad921
fix: prevent callable strings
loks0n Jun 30, 2025
349d403
Merge pull request #172 from utopia-php/fix-prevent-callable-strings
loks0n Jul 2, 2025
c2203e8
Merge pull request #171 from utopia-php/fix-null-path
lohanidamodar Jul 6, 2025
08186e6
Improve domain validator; add double slash tests
Meldiron Aug 19, 2025
eb0e82e
Merge pull request #175 from utopia-php/fix-domains-validator
Meldiron Aug 19, 2025
569d423
trigger ci/cd checks
Meldiron Aug 21, 2025
f23a6e7
Make CI/CD checks pass
Meldiron Aug 21, 2025
9d62aad
Add cookies header support for swoole
Meldiron Aug 21, 2025
9e8cd49
Merge pull request #178 from utopia-php/fix-cookie-headers
Meldiron Aug 21, 2025
51343ac
Implement domain restrictions
Meldiron Aug 26, 2025
4a029c1
PR review improvements
Meldiron Aug 26, 2025
c01a815
Merge pull request #179 from utopia-php/feat-domain-restrictions
Meldiron Aug 26, 2025
4700d38
Improve cookie handling
Meldiron Sep 2, 2025
abe3304
Logical fixes & new tests
Meldiron Sep 2, 2025
be935b1
Merge pull request #180 from utopia-php/feat-improve-cookie-handling
Meldiron Sep 2, 2025
5a4d186
Add support for 422
abnegate Sep 3, 2025
88e8002
Merge pull request #181 from utopia-php/feat-422
abnegate Sep 3, 2025
d19da13
Allow array for headers
Meldiron Sep 3, 2025
334b99d
Merge pull request #182 from utopia-php/feat-array-headers
Meldiron Sep 3, 2025
94af4fc
feat: add example to params
ChiragAgg5k Sep 4, 2025
5112b10
Merge pull request #183 from utopia-php/feat-example-params
ChiragAgg5k Sep 4, 2025
e745e7b
Add array-like headers; sync partially with 0.34.x
Meldiron Sep 7, 2025
a772a75
more sync with 0.34.x
Meldiron Sep 7, 2025
3ef6341
Fix tests
Meldiron Sep 7, 2025
70ecf88
Merge pull request #184 from utopia-php/feat-array-headers-0.33.x
Meldiron Sep 7, 2025
190d2d2
Fix header override
Meldiron Sep 7, 2025
f055a71
Fix header case sensitivity
Meldiron Sep 7, 2025
5bba671
Merge pull request #185 from utopia-php/fix-header-override
Meldiron Sep 7, 2025
f8e8a9d
Fix override default (backwards compatibility)
Meldiron Sep 7, 2025
d9d10a8
Merge pull request #186 from utopia-php/fix-override-backwards-compat…
Meldiron Sep 7, 2025
812c69f
chore: update error handler had an error to print stacktrace
ChiragAgg5k Sep 25, 2025
69d1452
Trigger Build
ChiragAgg5k Sep 25, 2025
5aaa94d
Merge pull request #188 from utopia-php/update-error-handler-add-stac…
ChiragAgg5k Sep 25, 2025
d5b8f85
Merge remote-tracking branch 'origin/0.33.x' into feat-sync-with-33-34
lohanidamodar Oct 12, 2025
f7d4d16
fix merge
lohanidamodar Oct 12, 2025
7120fd9
fix typo
lohanidamodar Oct 12, 2025
ce5136a
Merge remote-tracking branch 'origin/0.34.x' into feat-sync-with-33-34
lohanidamodar Oct 12, 2025
aedf29b
Fix codeql issues
lohanidamodar Oct 12, 2025
6487fab
keep original server
lohanidamodar Oct 13, 2025
d1bbdac
format
lohanidamodar Oct 13, 2025
3ee6a78
Fix tests usage
lohanidamodar Oct 13, 2025
0c62db7
Fix fpm cookie tests
lohanidamodar Oct 13, 2025
7bfc6c9
update tests separation using groups
lohanidamodar Oct 13, 2025
fc0cea5
test suite
lohanidamodar Oct 13, 2025
b6f497b
upgrade docker
lohanidamodar Oct 13, 2025
ff286ba
Update tests/UtopiaFPMRequestTest.php
lohanidamodar Oct 13, 2025
b5601ea
add return type
lohanidamodar Oct 13, 2025
ca257c1
fix malformed cookie
lohanidamodar Oct 14, 2025
6250ab5
fixes
lohanidamodar Oct 14, 2025
0f3b1f4
fix telemetry matching
lohanidamodar Oct 14, 2025
2cc1ac6
fix route get from context
lohanidamodar Oct 14, 2025
383cfc7
Fix route for telementry
lohanidamodar Oct 14, 2025
5ed7634
fix: remove duplicate matching
lohanidamodar Oct 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:

- name: Run Linter
run: |
docker run --rm -v $PWD:/app composer sh -c \
docker run --rm -v $PWD:/app composer:2.6 sh -c \
"composer install --profile --ignore-platform-reqs && git config --global --add safe.directory /app && composer bench -- --progress=plain"
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:

- name: Run CodeQL
run: |
docker run --rm -v $PWD:/app composer sh -c \
docker run --rm -v $PWD:/app composer:2.8 sh -c \
"composer install --profile --ignore-platform-reqs && composer check"

9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ jobs:
- name: Wait for Server to be ready
run: sleep 10

- name: Run unit Tests
run: docker compose exec swoole vendor/bin/phpunit --configuration phpunit.xml --testsuite=unit

- name: Run FPM Tests
run: docker compose exec fpm vendor/bin/phpunit --configuration phpunit.xml
run: docker compose exec fpm vendor/bin/phpunit --configuration phpunit.xml --group=fpm

- name: Run Swoole Tests
run: docker compose exec swoole vendor/bin/phpunit --configuration phpunit.xml
run: docker compose exec swoole vendor/bin/phpunit --configuration phpunit.xml --group=swoole

- name: Run Swoole Corotuine Tests
run: docker compose exec swoole-coroutine vendor/bin/phpunit --configuration phpunit.xml
run: docker compose exec swoole-coroutine vendor/bin/phpunit --configuration phpunit.xml --group=swoole-coroutine
6 changes: 3 additions & 3 deletions Dockerfile.fpm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM composer:2.0 AS step0
FROM composer:2.8 AS step0


ARG TESTING=true
Expand All @@ -13,11 +13,11 @@ RUN composer install --ignore-platform-reqs --optimize-autoloader \
--no-plugins --no-scripts --prefer-dist \
`if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi`

FROM php:8.0-cli-alpine as final
FROM php:8.3-cli-alpine AS final
LABEL maintainer="team@appwrite.io"

ENV DEBIAN_FRONTEND=noninteractive \
PHP_VERSION=8
PHP_VERSION=82

RUN \
apk add --no-cache --virtual .deps \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.swoole
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM composer:2.0 AS step0
FROM composer:2.8 AS step0

ARG TESTING=true
ARG DEBUG=false
Expand All @@ -14,7 +14,7 @@ RUN composer install --ignore-platform-reqs --optimize-autoloader \
--no-plugins --no-scripts --prefer-dist \
`if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi`

FROM appwrite/base:0.9.0 as final
FROM appwrite/base:0.11.3 AS final

ARG TESTING=true
ARG DEBUG=false
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.swoole_coroutines
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM composer:2.0 AS step0
FROM composer:2.8 AS step0

ARG TESTING=true
ARG DEBUG=false
Expand All @@ -14,7 +14,7 @@ RUN composer install --ignore-platform-reqs --optimize-autoloader \
--no-plugins --no-scripts --prefer-dist \
`if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi`

FROM appwrite/base:0.9.0 as final
FROM appwrite/base:0.11.3 AS final

ARG TESTING=true
ARG DEBUG=false
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ To learn more about architecture and features for this library, check out more i

## System Requirements

Utopia HTTP requires PHP 8.1 or later. We recommend using the latest PHP version whenever possible.
Utopia Framework requires PHP 8.1 or later. We recommend using the latest PHP version whenever possible.

## More from Utopia

Expand Down
20 changes: 14 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,29 @@
"scripts": {
"lint": "vendor/bin/pint --test",
"format": "vendor/bin/pint",
"check": "vendor/bin/phpstan analyse -c phpstan.neon --memory-limit=256M",
"check": "vendor/bin/phpstan analyse -c phpstan.neon --memory-limit 512M",
"test": "vendor/bin/phpunit --configuration phpunit.xml",
"bench": "vendor/bin/phpbench run --report=benchmark"
},
"require": {
"php": ">=8.0",
"php": ">=8.1",
"ext-swoole": "*",
"utopia-php/servers": "0.1.*"
"utopia-php/servers": "0.1.*",
"utopia-php/compression": "0.1.*",
"utopia-php/telemetry": "0.1.*"
},
"require-dev": {
"ext-xdebug": "*",
"phpunit/phpunit": "^9.5.25",
"swoole/ide-helper": "4.8.3",
"phpbench/phpbench": "^1.2",
"laravel/pint": "1.*",
"phpstan/phpstan": "1.*"
"laravel/pint": "^1.2",
"phpstan/phpstan": "1.*",
"phpbench/phpbench": "^1.2"
},
"config": {
"allow-plugins": {
"php-http/discovery": false,
"tbachert/spi": false
}
}
}
Loading