{"id":23479507,"url":"https://github.com/plinker-rpc/redbean","last_synced_at":"2025-04-13T17:59:23.232Z","repository":{"id":57042724,"uuid":"103998403","full_name":"plinker-rpc/redbean","owner":"plinker-rpc","description":"RedBeanPHP component which will enable you to directly manage databases on remote sites.","archived":false,"fork":false,"pushed_at":"2018-05-11T16:20:42.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T08:15:55.225Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/plinker-rpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-18T22:27:16.000Z","updated_at":"2018-05-11T16:20:24.000Z","dependencies_parsed_at":"2022-08-24T00:50:49.695Z","dependency_job_id":null,"html_url":"https://github.com/plinker-rpc/redbean","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plinker-rpc%2Fredbean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plinker-rpc%2Fredbean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plinker-rpc%2Fredbean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plinker-rpc%2Fredbean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plinker-rpc","download_url":"https://codeload.github.com/plinker-rpc/redbean/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248758435,"owners_count":21156957,"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":[],"created_at":"2024-12-24T19:29:56.813Z","updated_at":"2025-04-13T17:59:23.211Z","avatar_url":"https://github.com/plinker-rpc.png","language":"PHP","readme":"**Plinker-RPC - RedBeanPHP**\n=========\n\nPlinkerRPC PHP client/server makes it really easy to link and execute PHP component classes on remote systems, while maintaining the feel of a local method call.\n\nRedBeanPHP component which will enable you to directly manage databases on remote sites.\n\n**Composer**\n\n    {\n    \t\"require\": {\n    \t\t\"plinker/redbean\": \"\u003e=v0.1\"\n    \t}\n    }\n\n\n\n\nMaking a remote call.\n--------------------\n\n    \u003c?php\n    require 'vendor/autoload.php';\n    \n    try {\n        \n        /**\n         * Plinker Config\n         */\n        $config = [\n            // plinker connection | using tasks as to write in the correct .sqlite file\n            'plinker' =\u003e [\n                'endpoint' =\u003e 'http://127.0.0.1/examples/redbean/server.php',\n                'public_key'  =\u003e 'makeSomethingUp',\n                'private_key' =\u003e 'againMakeSomethingUp'\n            ],\n        \n            // database connection\n            'database' =\u003e [\n                'dsn'      =\u003e 'sqlite:./.plinker/database.db',\n                'host'     =\u003e '',\n                'name'     =\u003e '',\n                'username' =\u003e '',\n                'password' =\u003e '',\n                'freeze'   =\u003e false,\n                'debug'    =\u003e false,\n            ]\n        ];\n        \n        // init plinker endpoint client\n        $rdb = new \\Plinker\\Core\\Client(\n            // where is the plinker server\n            $config['plinker']['endpoint'],\n        \n            // component namespace to interface to\n            'Redbean\\Redbean',\n        \n            // keys\n            $config['plinker']['public_key'],\n            $config['plinker']['private_key'],\n        \n            // construct values which you pass to the component\n            $config['database']\n        );\n    \n        //..\n        \n    } catch (\\Exception $e) {\n        exit(get_class($e).': '.$e-\u003egetMessage());\n    }\n\n\n\n**then the server part...**\n\n    \u003c?php\n    require 'vendor/autoload.php';\n\n    /**\n     * POST Server Part\n     */\n    if ($_SERVER['REQUEST_METHOD'] == 'POST') {\n        $server = new Plinker\\Core\\Server(\n            $_POST,\n            'username',\n            'password'\n        );\n        exit($server-\u003eexecute());\n    }\n    \n\nSee the [organisations page](https://github.com/plinker-rpc) for additional components.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplinker-rpc%2Fredbean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplinker-rpc%2Fredbean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplinker-rpc%2Fredbean/lists"}