Property names must be strings. This means that non-string objects cannot be used as keys in the object. Any non-string object, including a number, is typecasted into a string via the toString method.
require_once 'path/to/vendor/autoload.php';
use RedBean_Facade as R;