Download the PHP package lambdacasserole/condense without Composer

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

Condense

Flat-file database in PHP.

Based on the Fllat and Prequel libraries by Wylst. Special mention for Alfred Xing who seems to be the main contributor behind both. With added support for:

Installation

Install Condense via Composer like this:

Or alternatively, if you're using the PHAR (make sure the php.exe executable is in your PATH):

Usage

To initialize a new database or load an existing one, do this.

This will, by default, create a file db/employees.dat or load that file, if it already exists. You can change the path at which the flat file database will be created thusly.

The constructor also accepts a third parameter which allows you to specify a key to use to encrypt the database with.

When loading the database again, this same password must be used.

Create

Use insert to add a record (row) to the database.

Retrieve

Condense provides several methods for data retrieval.

One Value

Use the get method. Specify a field name, another field name, and a value. It will return the value of the first field where (in the same row), the value of the second field matches the given value.

Field Subset

Use the select method. Returns some (or all) fields in a table, specified by giving an array of desired field names.

Update

Condense provides a couple of methods for updating existing data in a database.

One Field

Use the to method to update one field for any row satisfying a condition.

One Row

Use the update method to update a row by index.

Delete

Use the remove method to delete a row in the database.

Caveats

This is a flat file database system. It removes the headache of setting up and configuring a database server, but introduces a few of its own:


All versions of condense with dependencies

PHP Build Version
Package Version
Requires defuse/php-encryption Version ^2.0
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 lambdacasserole/condense contains the following files

Loading the files please wait ....