Playing with the PHP YAR PECL extension.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
composer.json
hosts.php
index.php
machine-id
server.php

README.md

PHP RPC Client/Server Example

Author: @lcherone

What does it do?

It was originally just an experiment with the YAR PECL extension, to see what can do an how it compares with my own RPC project Plinker. Having worked on it for a few hours it slowly mutated into a remote server database CRUD, with the ability to manage tables, columns and rows. By default a new /tmp/database.db sqlite file will be used, to manage other tables you simply need only change the R::setup('...') dsn in the server.php file.

Unlike Plinker, there is absolutely no security implemented into the extension, so this is only useful for non sensitive data.

Uses:

To install the extension:

sudo apt-get install php5-dev libcurl4-gnutls-dev
sudo pecl install yar

Then create a new extension apache config file for yar.so

echo "extension=yar.so" > /etc/php5/apache2/conf.d/yar.ini

Restart apache...

Screenshots:

1.png 2.png 3.png 4.png 5.png