tgrj / tweb_adapter_rb
RedBeans implementation into tweb framework
v3.2.0
2026-04-23 21:56 UTC
Requires
- php: ^7.0|^8.0
- gabordemooij/redbean: ^5.7
- tgrj/tweb_config: ^2.0
Requires (Dev)
- phpunit/phpunit: ^12.0
README
RedBeans implementation into tweb framework
About
Since with my microframework tweb I did not want to stick to a specific database system on core level, I created this modul, which will basically somehow implement RedBeans into a project.
Maybe this is not the best way (not a best praxis), but it is a way, that works for me and my projects.
Usage
These functions are available:
- tweb_get_db_version()
- tweb_get_wanted_db_version()
- tweb_rb_change_id_increment()
- tweb_set_db_version()
- tweb_verify_db_version()
You have to set the constant TWEB_DB_VERSION early (e.g. directly after the composer autoloader) for this modul to function regarding the function sfor validating or returning the database version!