Download the PHP package hanneskod/yaysondb without Composer

On this page you can find all versions of the php package hanneskod/yaysondb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yaysondb

Yaysondb

Packagist Version Build Status Quality Score

Flat file db in pure php.

Why?

Partly as a learning exercise, partly since I needed a simple and PHP only DB for some cli scripts.

Features

Installation

Usage

Setup

Yaysondb works as a handler for multiple collections.

Access collection through property or collection()

Create

Transactions

Commit or rollback changes using commit(), reset() and inTransaction()

Concurrency protection

Yaysondb supports limited concurrency protection when using the flysystem engine. A hash of the backend file is calculated at each read and any write action will fail if the hash has changed.

Read

Create search documents using the Operators class.

The search document

The following operators are available when creating search documents:

Operator Description
doc(array $query) Evaluate documents and nested subdocuments
not(Expr $e) Negate expression
exists() Use to assert that a document key exists
type($type) Check if operand is of php type
in(array $list) Check if operand is included in list
regexp($reg) Check if operand matches regular expression
equals($op) Check if operands equals each other
same($op) Check if operands are the same
greaterThan($op) Check if supplied operand is greater than loaded operand
greaterThanOrEquals($op) Check if supplied operand is greater than or equals loaded operand
lessThan($op) Check if supplied operand is less than loaded operand
lessThanOrEquals($op) Check if supplied operand is less than or equals loaded operand
all(Expr ...$e) All contained expressions must evaluate to true
atLeastOne(Expr ...$e) At least one contained expressions must evaluate to true
exactly($c, Expr ...$e) Match exact number of contained expressions evaluating to true
none(Expr ...$e) No contained expressions are allowed evaluate to true
one(Expr ...$ex) Exactly one contained expressions must evaluate to true
listAll(Expr $e) Expression must evaluate to true for each list item
listAtLeastOne(Expr $e) Expression must evaluate to true for at least one list item
listExactly($c, Expr $e) Expression must evaluate to true for exact numer of items in list
listNone(Expr $e) Expression is not allowed to evaluate to true for any list item
listOne(Expr $e) Expression must evaluate to true for exactly one list item

Update

Collection::update() takes two arguments. A search document and an array of values. Documents matching the search document are updated with the supplied values.

Delete

Collection::delete() takes a search document as sole argument. Documents matching the search document are removed.


All versions of yaysondb with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
league/flysystem Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hanneskod/yaysondb contains the following files

Loading the files please wait ....