Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.