Download the PHP package darkterminal/gitlab-json-db without Composer

On this page you can find all versions of the php package darkterminal/gitlab-json-db. 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 gitlab-json-db

GitlabDB

A PHP Class that reads JSON file as a database. Use for sample DBs using Gitlab API inspire from donjajo/php-jsondb

Usage

Install package

Initialize

Inserting

Insert into your new JSON file. Using users.json as example here

NB: Columns inserted first will be the only allowed column on other inserts

Get

Get back data, just like MySQL in PHP

All columns:
Custom Columns:
Where Statement:

This WHERE works as AND Operator at the moment or OR

Where Statement with regex:

By passingGitlabDB::regex to where statement, you can apply regex searching. It can be used for implementing LIKE or REGEXP_LIKE clause in SQL.

Order By:

Thanks to Tarun Shanker for this feature. By passing the order_by() method, the result is sorted with 2 arguments of the column name and sort method - GitlabDB::ASC and GitlabDB::DESC

Updating Row

You can also update same JSON file with these methods

Without the where() method, it will update all rows

Deleting Row

Without the where() method, it will deletes all rows

Exporting to MySQL

You can export the JSON back to SQL file by using this method and providing an output

Disable CREATE TABLE

Exporting to XML

Tarun Shanker also provided a feature to export data to an XML file


<?php
if( $json_db->to_xml( 'users.json', 'users.xml' ) ) {
    echo 'Saved!';
}

All versions of gitlab-json-db with dependencies

PHP Build Version
Package Version
Requires league/flysystem Version ^2.4.3
royvoetman/flysystem-gitlab-storage Version ^2.0.4
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 darkterminal/gitlab-json-db contains the following files

Loading the files please wait ....