2017 © Pedro Peláez
 

library queryable-php

QueryablePHP is a PHP port of the node lib Queryable

image

rollingwolf/queryable-php

QueryablePHP is a PHP port of the node lib Queryable

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Queryable-PHP

PHP port of Queryable

This is a PHP port of QUeryable a tiny NoSQL-like database that allows structured querying of an array of objects. It stores as a JSON string., (*1)

Examples

#

$config = array(
    'dbDir' => realpath('.'),
    'dbName' => 'test.db'
);
$DB = \rollingWolf\QueryablePHP\QueryablePHP::open($config);
$DB->insert('[{president:"George Washington",took_office:1789},{president:"John Adams",took_office:1797},{president:"Thomas Jefferson",took_office:1801},{president:"James Madison",took_office:1809}]');
$DB->find('{president:"/^T/i"}');
$DB->save();

The script allows slack JSON (PHP vs javascript style) and therefore doesnt require "" around president., (*2)

The Versions

11/03 2015

dev-master

9999999-dev https://github.com/rollingwolf/queryable-php

QueryablePHP is a PHP port of the node lib Queryable

  Sources   Download

MIT

The Requires

  • php >=5.5

 

database json nosql