Skip to content

A simple JSON-based document storage library for PHP, based on Lawnchair

Notifications You must be signed in to change notification settings

funkatron/barstool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Barstool

Barstool is a simple JSON-based document storage library. It's an implementation of Lawnchair in PHP.

Barstool provides an alternative to mucking around with database schemas and ORM layers. If you just need to store and retrieve data, Barstool lets you do that -- without requiring you to install a "noSQL" system like CouchDB. This means it should work well on shared hosting systems.

Requirements

PHP 5.2 or greater.

Backends supported

Differences from Lawnchair

  • Lawnchair uses asynchronous connections for almost all its supported backends. This means most method require a callback function to do anything useful – they won't return data form the method call itself. PHP data connections are almost always synchronous, so Barstool methods return results and don't rely on callbacks for the most part. Callbacks are supported fully, though, including anonymous functions and closures (PHP > 5.3 only).
  • PHP supports associative arrays, so Barstool converts any associative arrays to stdClass objects before storage. If you save() an associative array, it will come back as an object when you get() it.

About

A simple JSON-based document storage library for PHP, based on Lawnchair

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages