build: Updating composer dependencies

* php-parallel-lint/php-console-highlighter: 0.4.0 → 0.5.0
* php-parallel-lint/php-parallel-lint: 1.0.0 → 1.2.0

Change-Id: I09763aecf0101d58b12d9b29b48e105b0e49273a
1 file changed
tree: e6eac81fad399f6670be3373ca6a1eb86bbee071
  1. bin/
  2. build/
  3. doc/
  4. src/
  5. tests/
  6. .editorconfig
  7. .gitattributes
  8. .gitignore
  9. .gitreview
  10. .phpcs.xml
  11. CODE_OF_CONDUCT.md
  12. composer.json
  13. COPYING
  14. Doxyfile
  15. phpunit.xml.dist
  16. README.md
README.md

Latest Stable Version License

CDB functions for PHP

CDB, short for "constant database", refers to a very fast and highly reliable database system which uses a simple file with key value pairs. This library wraps the CDB functionality exposed in PHP via the dba_* functions. In cases where dba_* functions are not present or are not compiled with CDB support, a pure-PHP implementation is provided for falling back.

Additional documentation about the library can be found on mediawiki.org.

Usage

// Reading a CDB file
$cdb = Cdb\Reader::open( 'db.cdb' );
$foo = $cdb->get( 'somekey' );

// Writing to a CDB file
$cdb = Cdb\Writer::open( 'anotherdb.cdb' );
$cdb->set( 'somekey', $foo );

// Using the CLI
$ cdb ./myfile.cdb [get|list|match] <parameter>

Running tests

composer install --prefer-dist
composer test

History

This library was first introduced in MediaWiki 1.16 (r52203). It was split out of the MediaWiki codebase and published as an independent library during the MediaWiki 1.25 development cycle.


  NODES
composer 5
os 6