Compare commits

...

2 Commits

Author SHA1 Message Date
ac78d3718c Add instructions to README 2024-06-08 19:57:37 -04:00
3f038b02fd Add attributes prior to publishing 2024-06-08 16:58:53 -04:00
4 changed files with 33 additions and 3 deletions

4
.gitattributes vendored Normal file
View File

@ -0,0 +1,4 @@
.gitignore export-ignore
.gitattributes export-ignore
composer.lock export-ignore
tests/**/* export-ignore

View File

@ -1,3 +1,11 @@
# pdo-document
# PDODocument
Bit Badger Documents PHP implementation with PDO
This library allows SQLite (and, by v1.0.0-beta1, PostgreSQL) to be treated as a document database. It is a PHP implementation of the .NET [BitBadger.Documents](https://git.bitbadger.solutions/bit-badger/BitBadger.Documents) library.
## Add via Composer
`compose require bit-badger/pdo-document`
## Usage
Documentation for this library is not complete; however, its structure is very similar to the .NET version, so [its documentation will help](https://bitbadger.solutions/open-source/relational-documents/basic-usage.html) until its project specific documentation is developed. Things like `Count.All()` become `Count::all`, and all the `byField` operations are named `byFields` and take an array of fields.

View File

@ -1,6 +1,23 @@
{
"name": "bit-badger/pdo-document",
"description": "Treat SQLite (and soon PostgreSQL) as a document store",
"keywords": ["database", "document", "sqlite", "pdo"],
"license": "MIT",
"authors": [
{
"name": "Daniel J. Summers",
"email": "daniel@bitbadger.solutions",
"homepage": "https://bitbadger.solutions",
"role": "Developer"
}
],
"support": {
"email": "daniel@bitbadger.solutions",
"source": "https://git.bitbadger.solutions/bit-badger/pdo-document",
"rss": "https://git.bitbadger.solutions/bit-badger/pdo-document.rss"
},
"require": {
"php": ">=8.3",
"netresearch/jsonmapper": "^4",
"ext-pdo": "*"
},

3
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "eada4b7eb6f976e0aaf0b54b92e2ca32",
"content-hash": "ca79f450e8e715ad61ba3581734c0fe7",
"packages": [
{
"name": "netresearch/jsonmapper",
@ -1697,6 +1697,7 @@
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
"php": ">=8.3",
"ext-pdo": "*"
},
"platform-dev": [],