65 Commits

Author SHA1 Message Date
Jamie Barton
dfccd34c54 refactor Cookie method names 2024-10-19 11:13:36 +01:00
Jamie Barton
425a61ed43 feat(Helpers): DateHelper 2024-10-19 10:58:30 +01:00
Jamie Barton
b950572124
feat(Dumbo): error handler (#64)
* feat(Dumbo): error handler

* add example for dev mode
2024-10-18 17:47:51 +01:00
Jamie Barton
be08adb353 docs(examples/turso-vector): update readme 2024-10-18 09:28:05 +01:00
Jamie Barton
c9fba6adf2 docs(examples): turso-vector 2024-10-18 09:25:54 +01:00
Jamie Barton
6d93a415e7 examples(turso): use new Database constructor 2024-10-10 09:17:43 +01:00
Jamie Barton
f4e9a42eb9 examples(htmx-blade): use new Database constructor 2024-10-10 09:17:07 +01:00
Ray Blair
23da60956e
feat: Modified dockerfiles for frankenphp and nginx to work with fly.io (#62) 2024-10-02 07:29:25 +01:00
Amano
531aba3a21
CSRF Protection middleware (#56) 2024-09-24 04:15:21 -07:00
Jamie Barton
92610a2235 txt files lol 2024-09-22 11:00:47 -07:00
Jamie Barton
1427f386fb examples(benchmarks): update readme 2024-09-15 09:44:50 +01:00
Jamie Barton
0139f94e8c example benchmark 2024-09-15 09:44:19 +01:00
Jamie Barton
1a26d9656e update readme 2024-09-15 08:51:25 +01:00
Jamie Barton
cd9aaed770 add htmx blade example 2024-09-15 08:48:42 +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
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
Jamie Barton
6d39995257 feat(examples): add cookie-jwt-auth 2024-09-09 10:10:44 +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
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
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
9389fdd0ab docs: rename context variable 2024-08-29 16:09:38 +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
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
Abdullah Al Noman Prince
9d6a680c13
Feature: basicAuth Helper is added (#17)
* Feature: basicAuth Helper is added

* refactor BasicAuth + examples

* update readme

* add custom basic auth example

---------

Co-authored-by: Jamie Barton <jamie@notrab.dev>
2024-08-28 14:29:13 +01:00
Jamie Barton
0d4de65db0 fix nested middleware 2024-08-28 13:47:59 +01:00
Jamie Barton
f6f3a5401f root bearer-auth example 2024-08-28 13:33:52 +01:00
Jamie Barton
4395365106 update bearerauth 2024-08-28 10:24:23 +01:00
Jamie Barton
2bcb9eb490
feat: exception handler (#16) 2024-08-28 10:08:30 +01:00