Download the PHP package r0mdau/jisly without Composer

On this page you can find all versions of the php package r0mdau/jisly. 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 jisly

Jisly

PHPUnit Coverage Status Known Vulnerabilities

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 method

You must first find all documents to delete to provide the _rid attribute to the delete method.

Remove the only document in the collection which has the value $rid to the attribute _rid :

Select method

Returns all documents in the collection in an array() of objects :

Return all documents in the collection that have a name attribute with Lucas as value in an array() of objects :

Return the first document that as a name attribute with 19 as an object value :

Logical operators OR and AND

These two logical operators can be used on find and findOne methods.

If no logical operator is provided, OR is used.

Return all documents in the collection that have a name attribute with Lucas OR a firstname attribute with Georges as values in an array() of objects :

Return the first document in the collection that have a name attribute with Lucas AND a firstname attribute with Georges as an object value :

Update method

For the modification, the documents concerned are entirely replaced by the second array() given in parameter.

You must first find all the documents to replace to provide the _rid attribute to the update method.

Modify the only document in the collection whose value $rid to the _rid attribute :


All versions of jisly with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
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 r0mdau/jisly contains the following files

Loading the files please wait ....