Require PHPUnit 8 like MW core

Bug: T243647
Change-Id: Ic45a9d4f493fc96ca84738a7c70789b98ddf8919
1 file changed
tree: 8ba71ec3e7b7cbd0cd7e6216d302166ead544ab4
  1. build/
  2. doc/
  3. src/
  4. tests/
  5. .editorconfig
  6. .gitattributes
  7. .gitignore
  8. .gitreview
  9. .phpcs.xml
  10. CODE_OF_CONDUCT.md
  11. composer.json
  12. COPYING
  13. Doxyfile
  14. phpunit.xml.dist
  15. 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 );

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 4
os 5