{"id":23226608,"url":"https://github.com/ivoba/redbean-service-provider","last_synced_at":"2025-08-19T13:33:08.846Z","repository":{"id":11671592,"uuid":"14180992","full_name":"ivoba/redbean-service-provider","owner":"ivoba","description":"A RedBean ORM ServiceProvider for Silex.","archived":false,"fork":false,"pushed_at":"2017-02-24T08:59:56.000Z","size":9,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-18T09:43:39.964Z","etag":null,"topics":["redbean","silex"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivoba.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-06T18:04:02.000Z","updated_at":"2018-02-16T16:22:41.000Z","dependencies_parsed_at":"2022-07-14T02:50:35.080Z","dependency_job_id":null,"html_url":"https://github.com/ivoba/redbean-service-provider","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivoba%2Fredbean-service-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivoba%2Fredbean-service-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivoba%2Fredbean-service-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivoba%2Fredbean-service-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivoba","download_url":"https://codeload.github.com/ivoba/redbean-service-provider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230355816,"owners_count":18213540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["redbean","silex"],"created_at":"2024-12-19T00:18:33.363Z","updated_at":"2024-12-19T00:18:33.906Z","avatar_url":"https://github.com/ivoba.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RedBeanServiceProvider\n\nA [RedBean ORM](http://redbeanphp.com) ServiceProvider for [Silex](http://silex.sensiolabs.org).\n\n[![Build Status](http://img.shields.io/travis/ivoba/redbean-service-provider.svg)](https://travis-ci.org/ivoba/redbean-service-provider)\n\n\n## Usage\n\n- Define a db.options array in ```$app``` with *dsn*, *user*, *password* and *frozen* entries.  \n  Or just pass the array while registering. see below.\n- Register the Service:\n  ```$app-\u003eregister(new Ivoba\\Silex\\RedBeanServiceProvider(), array('db.options' =\u003e array(\n                                                                                            'dsn' =\u003e 'sqlite:/tmp/db.sqlite'\n                                                                                        )));```\n- Init RedBean with calling ```$app['db'];```.  \n  This you can do in your controller or more general.  \n  Then you can access your configured Facade R.  \n\n      use RedBean_Facade as R;\n      ...\n      $app['db'];\n      ...\n      $e = R::findAll('table',' ORDER BY date DESC LIMIT 2');\n\n\nHappy tight coupling ;)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivoba%2Fredbean-service-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivoba%2Fredbean-service-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivoba%2Fredbean-service-provider/lists"}