Download the PHP package elvanto/picodb without Composer

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

PicoDb

PicoDb is a minimalist database query builder for PHP.

Build Status

Features

Requirements

Author

Frédéric Guillot

Documentation

Installation

Database connection

Sqlite:

The Sqlite driver enable foreign keys by default.

Microsoft SQL server:

Optional attributes:

Mysql:

Optional attributes:

Postgres:

Optional attributes:

Connecting from an environment variable:

Let's say you have defined an environment variable:

PicoDb can parse automatically this URL for you:

Connecting from a URL

Execute any SQL query

Insertion

or

Fetch last inserted id

Transactions

or

Fetch all data

Updates

or

Remove records

Sorting

or

or

Multiple sorting:

Limit and offset

Fetch only some columns

Fetch only one column

Many rows:

One row:

Custom select

Distinct

Group by

Count

Sum

Sum column values during update

Add the value 42 to the existing value of the column "mycolumn":

Increment column

Increment a column value in a single query:

Decrement column

Decrement a column value in a single query:

Exists

Returns true if a record exists otherwise false.

Left joins

or

Equals condition

IN condition

IN condition with subquery

Like condition

Case-sensitive (only Mysql and Postgres):

Not case-sensitive:

Lower than condition

Lower than or equal condition

Greater than condition

Greater than or equal condition

IS NULL condition

IS NOT NULL condition

Multiple conditions

Add conditions are joined by a AND.

How to make a OR condition:

Further AND conditions can be embedded within an OR:

Debugging

Log generated queries:

Mesure each query time:

Get the number of queries executed:

Get log messages:

Large objects (LOBs)

Insert a file:

Insert from a stream:

Fetch a large object as a stream (Postgres only):

Fetch a large object as a string:

Drivers:

Hashtable (key/value store)

How to use a table as a key/value store:

Add/Replace some values:

Get all values:

or

Get a specific value:

Schema migrations

Define a migration

Example:

Run schema update automatically

Example:

Use a singleton to handle database instances

Setup a new instance:

Get this instance anywhere in your code:


All versions of picodb with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-pdo Version *
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 elvanto/picodb contains the following files

Loading the files please wait ....