{"id":19877119,"url":"https://github.com/yehorbk/pldb","last_synced_at":"2026-05-19T04:38:29.414Z","repository":{"id":57086510,"uuid":"194158248","full_name":"yehorbk/pldb","owner":"yehorbk","description":"A library that provides functionality for working with simple self-contained databases","archived":false,"fork":false,"pushed_at":"2020-10-07T16:05:33.000Z","size":43,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T17:31:48.243Z","etag":null,"topics":["database","library","php","self-contained"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yehorbk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-27T20:22:27.000Z","updated_at":"2023-03-07T03:51:54.000Z","dependencies_parsed_at":"2022-08-24T22:50:35.381Z","dependency_job_id":null,"html_url":"https://github.com/yehorbk/pldb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehorbk%2Fpldb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehorbk%2Fpldb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehorbk%2Fpldb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehorbk%2Fpldb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yehorbk","download_url":"https://codeload.github.com/yehorbk/pldb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241304295,"owners_count":19941101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","library","php","self-contained"],"created_at":"2024-11-12T16:36:39.280Z","updated_at":"2026-05-19T04:38:24.387Z","avatar_url":"https://github.com/yehorbk.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pocket Lite Database\nA library that provides functionality for working with simple self-contained databases.\n\n# Concept\nThe main idea of the project is to allow programmers of any level to use the database for simple purposes without the need to install and configure it.\n\n# Installation\nUse Composer to install `PLDB` into your project:\n```\n$ composer require yehorbk/pldb\n```\n\n# Getting Started\nHere is a simple program that shows how to create database, create table, insert and select data:\n\n```php\n\u003c?php\n\n  require_once \"vendor/autoload.php\";\n  use PLDB\\PLDBService;\n\n  // Initializing PLDBService\n  $pldb = new PLDBService();\n\n  // Creating Database\n  $database = $pldb-\u003ecreateDatabase('pldb-gs');\n\n  // Creating Table\n  $usersScheme = array( // Table scheme (field name =\u003e field type)\n    \"name\" =\u003e \"text\",\n    \"age\" =\u003e \"number\",\n    \"address\" =\u003e \"text\",\n  );\n  $table = $database-\u003ecreateTable('users', $usersScheme);\n\n  // Creating Users and Inserting Data to Table\n  class User {\n    public $name;\n    public $age;\n    public $address;\n  }\n\n  $john = new User();\n  $john-\u003ename = \"John\";\n  $john-\u003eage = 27;\n  $john-\u003eaddress = \"London, UK\";\n\n  $abigail = array(\n    \"name\" =\u003e \"Abigail\",\n    \"age\" =\u003e 25,\n    \"address\" =\u003e \"New York City, US\",\n  );\n\n  // There is the ability to insert both an object and an array\n  $table-\u003einsert($john);\n  $table-\u003einsert($abigail);\n\n  // Selecting and Printing Data\n  $condition = array(\n    \"name\" =\u003e \"Abigail\",\n  );\n  $usersArray = $table-\u003eselect($condition);\n  print_r($usersArray);\n\n?\u003e\n```\n\n# Documentation\nFor more information about library api - check the [docs](https://github.com/yehorbk/PLSQL/blob/master/DOCUMENTATION.md).\n\n# Author\n**Yehor Bublyk**: [GitHub](https://github.com/yehorbk) • [Twitter](https://twitter.com/yehorbk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyehorbk%2Fpldb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyehorbk%2Fpldb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyehorbk%2Fpldb/lists"}