Skip to content

Installation

Requirements

We have provided there are two ways to install and use this library :

install with composer

Warning

Your composer version must be compilable with php8.1 else you will get error from composer!

  1. You should install composer by instructions defined in https://getcomposer.org/download/
  2. Open terminal/cmd in your project directory and require package using the following command.
    composer require estaheri/jsondb-lv
    

    if you wanted to install dev version use composer require estaheri/jsondb-lv:dev command

  3. After composer installed library you should include composer autoload file in you php codes.
    include __DIR__.'/vendor/autoload.php';
    
  4. Now you have installed JSONDB-LV and you can start using it ✅

install manually

  1. Download the latest release from github repository.

    Download latest release

  2. Extract Downloaded release into your project directory.

  3. Now you see a folder jsondb in your project. all source files of library is in this folder.
  4. If you open library folder (jsondb) you see a file jsondb.class.php in it
  5. Include jsondb.class.php file to your codes.
    include __DIR__.'/jsondb/jsondb.class.php';
    
  6. Now you have installed JSONDB-LV and you can start using it ✅