PHPackages                             nitricware/nwdatabase - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. nitricware/nwdatabase

ActiveLibrary[Database &amp; ORM](/categories/database)

nitricware/nwdatabase
=====================

An XML driven simple database solution for projects where SQLite is not available and MySQL seems overpowered.

3.0(4y ago)612MITPHPPHP &gt;=8.0

Since Jul 17Pushed 4y ago2 watchersCompare

[ Source](https://github.com/nitricware/NWDataBase)[ Packagist](https://packagist.org/packages/nitricware/nwdatabase)[ Docs](https://github.com/nitricware/nwdatabase)[ RSS](/packages/nitricware-nwdatabase/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (6)Used By (0)

NWDataBase
==========

[](#nwdatabase)

Introduction
------------

[](#introduction)

NWDataBase is an XML-based database system for small databases. It provides a lightweight database solution for webspaces where no SQLite is available. The system provides simple functions, including a search function.

License
-------

[](#license)

The NWDataBase system is distributed under the **MIT License** which allows you to use it privately and commercially, to distribute, modify and sublicense it. You may not hold me liable and must include my name in the credits of your work.

NWDataBase was created by **Kurt Höblinger** aka **NitricWare**.

Dependencies
------------

[](#dependencies)

Unlike version 1.x, NWDatabase 2.x and 3.x does not require any additional packages. PHP Extension `ext-dom` must be installed, however.

Usage
-----

[](#usage)

Use *Composer* to install NWDataBase to your project via the `composer require nitricware/nwdatabase` command or your `composer.json`.

Alternatively you can also just include all the files from the `src/` directory.

```
require("NWDatabase.php");
require("NWDBRecord.php");

use NitricWare\NWDatabase;
use NitricWare\NWDBRecord;
```

Functions
---------

[](#functions)

For information about the functions of the class, please check the documentation inside the .php-file!

### With NWDataBase you can:

[](#with-nwdatabase-you-can)

- Create a database
- Create columns
- Insert records
- Fetch records
- Update records
- Delete records
- Search for records
- Draw an ASCII table with the database content
- Delete a database
- Sort a result by a specified column ascending or descending
- Limit a result to a specified amount and start by a specified offset if desired

Changelog
---------

[](#changelog)

v3.0

- PHP 8.0 support
- makes better use of classes and types

v2.0

- docker support
- examples added
- PHP 7.4 support
- eliminated the need for dependencies

v1.1.1

- fixed composer

v1.1

- added limit parameter to NWDBSearch and NWDBGetRecords
- the array structure of NWDBGetRecords has changed to match the structure of NWDBSearch
- added the possibility to sort a result
- made NWDataBase available to composer

v1.0.2

- bugfixes
- whitespace fixes

v1.0.1

- fixed XML layout
- using new NWLog 1.0.1

v1.0

- initial release

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~105 days

Total

5

Last Release

1710d ago

Major Versions

1.1.1 → 2.0.x-dev2020-07-17

2.1 → 3.02021-09-11

PHP version history (3 changes)1.1.1PHP &gt;=5.3.0

2.0.x-devPHP &gt;=7.4

2.1PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0de3ce105b67096aa4cf6ae39d1e4f6f371541174b264fedc4191a90aa4c5e21?d=identicon)[nitricware](/maintainers/nitricware)

---

Top Contributors

[![nitricware](https://avatars.githubusercontent.com/u/10908453?v=4)](https://github.com/nitricware "nitricware (19 commits)")

---

Tags

phpxmldatabase

### Embed Badge

![Health badge](/badges/nitricware-nwdatabase/health.svg)

```
[![Health](https://phpackages.com/badges/nitricware-nwdatabase/health.svg)](https://phpackages.com/packages/nitricware-nwdatabase)
```

###  Alternatives

[webparking/laravel-type-safe-collection

This package provides type-safe extension of the laravel collection, forcing a single type of object.

378.2k](/packages/webparking-laravel-type-safe-collection)[popphp/pop-db

Pop Db Component for Pop PHP Framework

1814.6k11](/packages/popphp-pop-db)[modul-is/orm

Lightweight hybrid ORM/Explorer

1118.1k](/packages/modul-is-orm)[jonas-elias/hyperf-oracle

A oracle handler for hyperf/database.

102.0k](/packages/jonas-elias-hyperf-oracle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
