Download the PHP package bainternet/sqlite-simple-store without Composer

On this page you can find all versions of the php package bainternet/sqlite-simple-store. 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 sqlite-simple-store

SQLite-simple-store

Super lightweight Zero configuration sqlite-based key => value store with expiration time for PHP.

Basically its a simple key value storage with and expireation field which will delete the value after it expires. Also since its heavily influenced by redis, some of redis useful functions were implemented.

Stable Version PHP version

Analytics

Usage

Installation

composer

To install and use via the composer PHP package manager just take these steps:

If you don’t already have one, create the file composer.json in the root of your new project that is going to use SQLite-simple-store. Add the following to the composer.json file..

git

Manual

simply download the latest version and include it.

Methods

get($key,$default)

gets a specific value based on key, if the value has expired false will be returned. you can pass a default value as a second parameter to be returned if no value exists or is expired.

set($key,$value)

stores a value in the database.

del($key)

Deletes a value of the given key.

keys($validate)

get all keys in the db.
if $validate is true (default) expired keys and values will get deleted and will not be returned. set $validate to false to get all keys even if they have expired.

exists($key)

checks if a key exists and is not expired

get_all($validate)

get all values in the db.
if $validate is true (default) expired values will get deleted and will not be returned. set $validate to false to get all values even if they have expired.

delete_all()

deletes all values from db.

incr($key,$by = 1)

increment value by $by (default = 1).

decr($key,$by = 1)

decrement value by (default = 1).

count($key)

returns the count of elements in a key assuming it is an array or object.

rpush($key,$value)

adds an element to a key (right).

lpush($key,$value)

adds an element to a key (left).

lset($key,$idx,$value)

sets the value of an element in a key by index.

lindex($key,$idx)

gets an element from a key by its index.

All versions of sqlite-simple-store with dependencies

PHP Build Version
Package Version
No informations.
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 bainternet/sqlite-simple-store contains the following files

Loading the files please wait ....