Download the PHP package openwebx/feijaovermelho without Composer
On this page you can find all versions of the php package openwebx/feijaovermelho. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openwebx/feijaovermelho
More information about openwebx/feijaovermelho
Files in openwebx/feijaovermelho
Package feijaovermelho
Short Description ORM based on RedBeanPHP
License GPL-3.0-or-later
Informations about the package feijaovermelho
feijaoVermelho
ORM based on RedBeanPHP
naming
"feijão vermelho" simply means "red bean" in portuguese.
idea
Since i am using RedBeanPHP in about a dozen projects or so, i really love the easypeasy possibilities to put objects into databases, read them, change them... A far as you design your objects to use RedBean from ground up, no problem.
What i wanted to archieve with this little lib is to use RedBeanPHP transparantly in the background for mostly an class/object in your projects...
installation
usage
using it for easy stuff like saving objects to database, fetching objects from database or "upserting" is totally straight forward:
saving your object to database
when database is reachable and configured correctly (see configuration...) then there will be a table named "test" with at least one entry with id, int_value and string_value as fields...
loading objects from database
now lets get our object from database:
<?php
[...]
$myNewObject = new Test();
$myNewObject->intValue = 666;
$myNewObject->loadByIntValue();
echo $myNewObject->stringValue; // -> this is a test
All versions of feijaovermelho with dependencies
ext-json Version *
vlucas/phpdotenv Version ^5.1
phpfastcache/phpfastcache Version ^8.0
ext-igbinary Version *
gabordemooij/redbean Version ^5.6
webmozart/assert Version ^1.9
cocur/slugify Version ^4.0
openwebx/strings Version dev-main
openwebx/opentraits Version dev-main
openwebx/opencache Version ^1.0