50 Commits

Author SHA1 Message Date
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
Jamie Barton
61892adc06 fix nested route middleware 2024-08-26 20:11:20 +01:00
Jamie Barton
c2d6c9e83a add bearer auth 2024-08-26 19:54:49 +01:00
Jamie Barton
12813172a2 phpdoc and refactoring 2024-07-17 09:34:05 +01:00
Jamie Barton
350ab516e5 use the platform 2024-07-16 22:50:59 +01:00
Jamie Barton
d401b1dbb0 feat: handle redirects 2024-07-16 13:03:59 +01:00
Jamie Barton
f96cfaf1db feat: context variables 2024-07-16 12:44:34 +01:00
Jamie Barton
b44f3ebc90 server interface 2024-07-16 12:19:37 +01:00
Jamie Barton
e1b0e8df27 abstract server into interface 2024-07-15 21:09:07 +01:00
Jamie Barton
4f49187515 update example to use array of users 2024-07-15 19:11:45 +01:00
Jamie Barton
101c05d02b query params and body parsing 2024-07-15 18:59:04 +01:00
Jamie Barton
66d75d3017 chore: cleanup 2024-07-15 17:51:56 +01:00
Jamie Barton
c051d71d94 docs: add setHeader example 2024-07-15 16:42:42 +01:00
Jamie Barton
330a999c0e update example quickstart 2024-07-15 16:24:38 +01:00
Jamie Barton
7b97c32a61 routing improvements 2024-07-15 16:18:47 +01:00
Jamie Barton
f9637d7e9f initial commit 2024-07-15 14:27:57 +01:00