{"repo":"r0mdau/jisly","free":true,"listed":false,"github":"https://github.com/r0mdau/jisly","clone":"git clone https://github.com/r0mdau/jisly.git","description":"The smallest PHP NoSQL database library, flat file JSON.","language":"PHP","stars":26,"topics":["database","nosql","php","json","packagist","flatfile","nosql-database","file-storage","storage-engine","zero-dependency"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Jisly ======== The smallest PHP lightweight NoSQL database library, flat file JSON. The main goal of Jisly is to allow you to quickly start your project with the possibility of memory and flat-file storage using a NoSQL (document oriented) query syntax. Version française ici Concurrent access is managed ! How to install and load This lib can be found on Packagist Loading the library Jisly relies on the PSR-4 specification for autoloading classes from file paths. Definitions 1. Each document has a unique identifier called rid . 2. Each collection is physically represented by a file. 3. The files are stored in a single working directory. The Jisly class is instantiated with the path to this directory as a parameter. 4. Each time you CRUD something, all datas are stored in memory. 5. And datas are saved on filesystem. Examples of use Initialization of the class $directory contains the path to the directory where the files (=collections) of the data model will be stored. To access a collection $name contains the name of the collection we want to request. Example : user . Returns an object JislyCollection : Warning : each first time you access a collection, all datas are stored in memory. To call a collection PREAMBLE : The Insert, Update, Delete methods return a boolean, true if the action went well, false otherwise. Insert method Insert the array into the specified collection in JSON format and assigns a unique rid identifier to the document if it has not been specified : Delete","default_branch":null,"files":null,"tree":[],"storefront":"/r/r0mdau","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/r0mdau/jisly/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}