Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plinker-rpc/redbean
RedBeanPHP component which will enable you to directly manage databases on remote sites.
https://github.com/plinker-rpc/redbean
Last synced: 27 days ago
JSON representation
RedBeanPHP component which will enable you to directly manage databases on remote sites.
- Host: GitHub
- URL: https://github.com/plinker-rpc/redbean
- Owner: plinker-rpc
- License: mit
- Created: 2017-09-18T22:27:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-11T16:20:42.000Z (over 6 years ago)
- Last Synced: 2024-12-12T02:50:01.777Z (about 1 month ago)
- Language: PHP
- Homepage:
- Size: 116 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING
- License: LICENSE
Awesome Lists containing this project
README
**Plinker-RPC - RedBeanPHP**
=========PlinkerRPC 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.
RedBeanPHP component which will enable you to directly manage databases on remote sites.
**Composer**
{
"require": {
"plinker/redbean": ">=v0.1"
}
}Making a remote call.
--------------------[
'endpoint' => 'http://127.0.0.1/examples/redbean/server.php',
'public_key' => 'makeSomethingUp',
'private_key' => 'againMakeSomethingUp'
],
// database connection
'database' => [
'dsn' => 'sqlite:./.plinker/database.db',
'host' => '',
'name' => '',
'username' => '',
'password' => '',
'freeze' => false,
'debug' => false,
]
];
// init plinker endpoint client
$rdb = new \Plinker\Core\Client(
// where is the plinker server
$config['plinker']['endpoint'],
// component namespace to interface to
'Redbean\Redbean',
// keys
$config['plinker']['public_key'],
$config['plinker']['private_key'],
// construct values which you pass to the component
$config['database']
);
//..
} catch (\Exception $e) {
exit(get_class($e).': '.$e->getMessage());
}**then the server part...**
execute());
}
See the [organisations page](https://github.com/plinker-rpc) for additional components.