85 Commits

Author SHA1 Message Date
yoh
99c0702f14
Perf. improvement on Router.php (#60)
Co-authored-by: yoh <j.gaulupeau@thais-soft.com>
2024-09-14 15:47:54 +01:00
Jamie Barton
6687353c15
feat: static files (#58)
* feat(dumbo): add static files

* always serve index.html

* update readme

* simplify
2024-09-13 13:15:56 +01:00
Jamie Barton
ffa86b21f0 feat(helpers): JWT 2024-09-13 11:46:27 +01:00
renovate[bot]
15a665ad90
chore(deps): update dependency phpunit/phpunit to v11.3.5 (#57)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-13 10:47:33 +01:00
Jamie Barton
55abb81e45 update discord url 2024-09-12 18:24:31 +01:00
renovate[bot]
2f396fd95d
fix(deps): update dependency psr/log to v3.0.2 (#55)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-12 08:31:34 +01:00
Levy A.
85236f7efc
use new libsql php sdk (#54)
* refactor: use new libsql php sdk

* rename example

---------

Co-authored-by: Jamie Barton <jamie@notrab.dev>
2024-09-12 08:31:24 +01:00
renovate[bot]
d735d79f2a
chore(deps): update dependency phpunit/phpunit to v11.3.4 (#52)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-10 08:37:00 +01:00
Jamie Barton
6d39995257 feat(examples): add cookie-jwt-auth 2024-09-09 10:10:44 +01:00
Jamie Barton
50e23ce53f add all route handler 2024-09-08 13:48:52 +01:00
Ray Blair
7a83a58e91
feat: Render View (#48) 2024-09-08 13:44:12 +01:00
Jamie Barton
056c8b8dd7 update cache example autoload 2024-09-08 09:24:38 +01:00
Ray Blair
099da3be09
chore: use __DIR__ (#46) 2024-09-08 09:24:05 +01:00
Amano
aa6ab9934e
Add Cache API helper (#36)
* Add new CacheMiddleware cache helper + add getUri method

* Example of cache http middleware added

* remove getUri method from RequestWrapper + add generateEtag method to CacheMiddleware

* fix etag

* Standardising the http cache example

* Add better exemple for http cache

* Implement CacheMiddleware tests and refactoring

* rename example

---------

Co-authored-by: Aymane <aymane@cashflowpositifi.fr>
Co-authored-by: Jamie Barton <jamie@notrab.dev>
2024-09-08 09:23:35 +01:00
Jamie Barton
bdfc84289d add active sessions to cookie-auth example 2024-09-07 12:21:04 +01:00
Jamie Barton
420e4f1f91 feat(examples): cookie auth 2024-09-07 10:43:21 +01:00
Jamie Barton
3c866245d7 docs(examples/cookie-latte): update readme 2024-09-06 18:22:05 +01:00
Jamie Barton
541588688a docs(examples/cookie-latte): update readme 2024-09-06 17:41:30 +01:00
Jamie Barton
f259282a34 docs(examples/cookie-latte): update readme 2024-09-06 17:41:14 +01:00
Jamie Barton
3f411ae287 feat(examples): cookie auth latte 2024-09-06 17:39:46 +01:00
Jamie Barton
a9cd9881cf
feat(helpers): cookie (#45) 2024-09-06 17:16:13 +01:00
Khairul Hidayat
3dd75fce79
Add cors middleware helper and all route handler (#13)
* feat: add cors middleware helper, add `all` route handler

* revert changes

* update cors helper

---------

Co-authored-by: Jamie Barton <jamie@notrab.dev>
2024-09-06 17:16:02 +01:00
Ray Blair
0dd4c01e96
feat: Templating examples for Latte and Laravel Blade (#44) 2024-09-05 21:10:42 +01:00
Jamie Barton
f1d733c37d add setup php step 2024-09-05 11:01:59 +01:00
Jamie Barton
0a3275127e simpler phpunit tests 2024-09-05 10:58:32 +01:00
Jamie Barton
cd5eedaf59 setup php 2024-09-05 10:55:34 +01:00
Jamie Barton
3980050489
Create tests.yml 2024-09-05 10:53:44 +01:00
Jamie Barton
75a437c1fc readme: quickstart json change 2024-09-05 10:50:29 +01:00
renovate[bot]
606dd20681
chore(deps): update dependency phpunit/phpunit to v11.3.3 (#35)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-05 10:48:20 +01:00
Jamie Barton
2d77a5ee10 tidy up and examples 2024-09-05 10:04:59 +01:00
Imam Ali Mustofa
c1d8347f69
fix: app config setget (#39)
* refactor: add missing response interface

* fix: app config setter and getter

* Apply suggestions from code review

Co-authored-by: Jamie Barton <jamie@notrab.dev>

* feat: introduce HasConfig trait

* refactor: remove duplicate methods and use HasConfig trait

* changes

* revert trait for now

* add back variables

* revert examples demo

---------

Co-authored-by: Jamie Barton <jamie@notrab.dev>
2024-09-05 09:26:51 +01:00
Imam Ali Mustofa
b0e5454f6c
feat: dumbo body limit (#42)
* refactor: add missing response interface

* feat: add body limit helper

* refactor: add http error handler

* update example

* format readme

---------

Co-authored-by: Jamie Barton <jamie@notrab.dev>
2024-09-04 14:34:47 +01:00
Imam Ali Mustofa
b558a2b1ef
feat: dumbo compress helper (#38)
* refactor: add missing response interface

* feat(compress): adding compress helper

* Apply suggestions from code review

Co-authored-by: Jamie Barton <jamie@notrab.dev>

* refactor: add brotli compress suggestion

* revert brotli for now

---------

Co-authored-by: Jamie Barton <jamie@notrab.dev>
2024-09-04 14:16:46 +01:00
Ray Blair
038db48f75
feat: Docker FrankenPHP and Nginx examples (#40) 2024-09-04 08:15:54 +01:00
Jamie Barton
db3ff52223 docs(examples/turso-http): update readme 2024-09-02 17:55:20 +01:00
Imam Ali Mustofa
c597cf4a68
refactor: also fix turso-http to turso-client-http and fix api usage (#30)
* fix(examples): turso client http

* chore: delete http file
2024-09-02 17:54:55 +01:00
Jamie Barton
b58d91e845
fix: remove unreachable code (#34) 2024-09-02 11:33:29 +01:00
Lucas Coutinho
643aa4f90d
feat: add logger helper (#32)
refact: remove monolog/monolog and use psr/log
2024-09-02 11:29:17 +01:00
Jamie Barton
a24f90eabb
fast route (#27)
* test fast route

* fix trailing slash urls

* fix request wrapper parse body

* update readme
2024-08-30 10:25:52 +01:00
Abdullah Al Noman Prince
3f7bf80329
Doc Improvement: Rename variable c/ctx with context (#26) 2024-08-29 17:22:08 +01:00
Jamie Barton
9389fdd0ab docs: rename context variable 2024-08-29 16:09:38 +01:00
Jamie Barton
d5184f6642 docs(readme): use context intead of c/ctx 2024-08-29 13:08:21 +01:00
Jamie Barton
5b331e42f5 add request-id helper 2024-08-29 13:06:57 +01:00
Jamie Barton
339c9a8a16 add turso http example 2024-08-29 12:18:03 +01:00
Joseph Ajibodu
94edb1a5b9
reorganize the examples folder to support multiple examples (#21)
Updated the examples directory structure to accommodate additional examples.
Moved the existing example into a `simple` subdirectory under `examples/`
2024-08-29 12:12:50 +01:00
Jamie Barton
9983278ba7 add discord link 2024-08-29 09:51:28 +01:00
Abdullah Al Noman Prince
811e8be124
Fixed: index.php inside the examples folder throwing error while accessing '/error' route. (#25) 2024-08-29 09:23:51 +01:00
Abdullah Al Noman Prince
1c2ead3c3d
Improvement & Update: Added Basic Auth Multiple Users example and updated the dumbo main README.md (#23) 2024-08-29 06:00:25 +01:00
Jamie Barton
4cb83c8419 Add missing BearerAuthTests 2024-08-28 15:03:47 +01:00
Jamie Barton
9a5361b297 Add missing BasicAuthTests 2024-08-28 14:38:57 +01:00