Download the PHP package wallrio/deskdb without Composer
On this page you can find all versions of the php package wallrio/deskdb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wallrio/deskdb
More information about wallrio/deskdb
Files in wallrio/deskdb
Package deskdb
Short Description A small embedded database, based on JSON format.
License MIT
Informations about the package deskdb
DeskDB
A small embedded database, based on JSON format.
Installation
It's recommended that you use Composer to install Directly.
Instantiate a collection class
- Example
JSON, is the class responsible for effectively carrying out operations.
JSON, if the contractor's value is omitted, then the system's temporary directory will be used.
Create a document
Another examples
Search all documents in the collection
Search for a document
- KEY: can be any document key
- VALUE: can be any document value, partial or whole
- OPERATOR: reference value to perform the search
- ==: search for a similar value
- !=: search for different value
- ===: search by identical value
- !==: look for exactly different value
- like: look for a similar value (type soundex)
- !like: search for unlike value (type soundex)
- contain: search by value part
- !contain: search for part of non-existent value
Search for the first document occurrence
Delete document
the value delete accepts an array of results
Update document
the put value accepts an array of results
Recomendations
It is explicitly recommended to use the code below to block the viewing of your JSON directories and documents.
Below example of script for blocking
APACHE
Create an .htaccess file in your application's main directory
NGINX
Insert the excerpt below into your server's nginx.conf file.
License
The DeskDB is licensed under the MIT license. See License File for more information.