{"id":36373051,"url":"https://github.com/kroyxt/datbazo","last_synced_at":"2026-01-11T14:02:51.274Z","repository":{"id":57009379,"uuid":"179353768","full_name":"kroyxt/datbazo","owner":"kroyxt","description":"DatBazo(Datuma Bazo, Database in Esperanto) is a SQL-query constructor using PDO.","archived":false,"fork":false,"pushed_at":"2019-04-15T20:24:59.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-16T14:48:51.236Z","etag":null,"topics":["database","esperanto","php"],"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/kroyxt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-03T19:11:04.000Z","updated_at":"2019-08-24T16:47:32.000Z","dependencies_parsed_at":"2022-08-21T14:50:54.808Z","dependency_job_id":null,"html_url":"https://github.com/kroyxt/datbazo","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kroyxt/datbazo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kroyxt%2Fdatbazo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kroyxt%2Fdatbazo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kroyxt%2Fdatbazo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kroyxt%2Fdatbazo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kroyxt","download_url":"https://codeload.github.com/kroyxt/datbazo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kroyxt%2Fdatbazo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28306985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T11:18:18.743Z","status":"ssl_error","status_checked_at":"2026-01-11T11:07:56.842Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","esperanto","php"],"created_at":"2026-01-11T14:02:50.708Z","updated_at":"2026-01-11T14:02:51.261Z","avatar_url":"https://github.com/kroyxt.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"460\" src=\"./DatBazo.png\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"right\"\u003e\n  \u003ca href=\"./README_EO.md\"\u003e\u003cimg width=\"40\" src=\"./docs/eo.png\"\u003e\u003c/a\u003e\n  \u003ca href=\"./README_ES.md\"\u003e\u003cimg width=\"40\" src=\"./docs/es.png\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# DatBazo\n\nDatBazo(Datuma Bazo, Database in Esperanto) is a SQL-query constructor using PDO. is a small library with which you can quickly create queries to the database using the \"Prepare\" and \"Execute\" methods of PDO to avoid sql injections.\n\n## Table of contents\n\n1. [Dependencies](#Dependencies)\n2. [Install](#Install)\n3. [Getting started](#Getting-started)\n4. [Methods](#Methods)\n5. [Author](#Author)\n6. [License](#License)\n\n## Dependencies\n\nThis package requires PHP 7 or higher.\n\n## Install\n\n### via composer\n\n```console\ncomposer require kroyxlab/datbazo\n```\n\n### Copy repository\n\nCopy the direct repository to your project and require the class.\n\n```php\nrequire_once 'proyect_directory/datbazo/src/DatBazo.php';\nuse kroyxlab\\datbazo\\DatBazo as DatBazo;\n```\n\n## Getting started\n\nModify the KLPdo.ini file located in the folder `vendor/kroyxlab/datbazo/src/DBconfig.ini` and modify the values to configure the connection to the database.\n\n```ini\n[databazo]\ndb_driver = Mysql || sqlite3 || pgsql\ndb_host = Host_name\ndb_port = Port\ndb_name = Database_name\ndb_user = user\ndb_password = password\ndb_charset = UTF8\n```\n\nIf everything is configured correctly, you can start using the library.\n\n```php\n\nrequire_once \"vendor/autoload.php\";\nuse kroyxlab\\datbazo\\DatBazo as DatBazo;\n\n// instantiate the DatBazo class\n$productos = new DatBazo;\n\n// Create an SQL statement using the methods of the KLPdo class\n$products-\u003eselect(['products'=\u003e'name, price'])\n          -\u003ewhere(['price'=\u003e['\u003e=', 12.5]])\n          -\u003eorder('price')\n          -\u003eexecute();\n\n// Set the type of fetch you want.\n$products-\u003efetch('assoc');\n\n// Use the Method -\u003e render (); to output and format the result of the sql query\n$products-\u003erender(function($product){\n\n  return \"\u003cp\u003eThe name of the product is {$product['name']} and the price is {$product['price']}\u003c/p\u003e\";\n\n});\n\n// Or use a foreach loop using the fetch method\n\nforeach($products-\u003efecth('obj') as $product){\n  echo \"\u003cp\u003eThe name of the product is $product-\u003ename and the price is $product-\u003eprice\u003c/p\u003e\"\n}\n\n```\n\n## Methods\n\nThe methods of the DatBazo class help to create an SQL statement which will be executed through the `prepare` and `execute` methods of Pdo to avoid SQL injections.\n\n### **List of methods:**\n\n* [Select()](./docs/en/select.md)\n* [join()](./docs/en/join.md)\n* [Insert()](./docs/en/insert.md)\n* [Where()](./docs/en/where.md)\n* [Update()](./docs/en/update.md)\n* [Delete()](./docs/en/delete.md)\n* [Limit()](./docs/en/limit.md)\n* [Offset()](./docs/en/offset.md)\n* [Group()](./docs/en/group.md)\n* [Order()](./docs/en/order.md)\n* [Execute()](./docs/en/execute.md)\n* [Fetch()](./docs/en/fetch.md)\n* [Render()](./docs/en/render.md)\n\n## **Author**\n\n* **Kristian Soto (KroyxLab)** - [Github](https://github.com/KroyxLab) | [Gitlab](https://gitlab.com/KroyxLab)\n\n## **License**\n\nThis project is licensed under the MIT License - see the [MIT.md](license.md) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkroyxt%2Fdatbazo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkroyxt%2Fdatbazo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkroyxt%2Fdatbazo/lists"}