https://github.com/wkhayrattee/simple-dba
Simple dba - a simple wrapper around the php dba functions
https://github.com/wkhayrattee/simple-dba
dba lmdb php
Last synced: 7 months ago
JSON representation
Simple dba - a simple wrapper around the php dba functions
- Host: GitHub
- URL: https://github.com/wkhayrattee/simple-dba
- Owner: wkhayrattee
- License: mit
- Created: 2021-05-09T22:33:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-11T21:26:54.000Z (over 4 years ago)
- Last Synced: 2025-03-06T00:05:10.439Z (7 months ago)
- Topics: dba, lmdb, php
- Language: PHP
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Simple dba - a simple wrapper around the php dba functions
- While using the default dba functions provided by PHP, I have seen some inconsistencies and also wherever applicable, I would like to change certain things, specially the dba_replace..etc
- This is currently a work in progress, I am experimenting with one of my side projects - as soon as I find everything is OK, will publish v1.0.0## TODO:
- Unit testing
- Get started with a simple example
- Publish in Packagist when ready## Unit Testing
### Install PEST
I find PEST a little more elegant, let's try this.
```
$ composer require pestphp/pest --dev --with-all-dependencies
$ ./vendor/bin/pest --init
```### Using PEST
```
$ ./vendor/bin/pest
```### Test Code Coverage
- We'll use [PCOV](https://github.com/krakjoe/pcov)
- Install:
```
$ apt-get install php7.4-pcov
```- Execute the coverage:
```
$ ./vendor/bin/pest --coverage
```