{"id":22514436,"url":"https://github.com/zrnik/mksql","last_synced_at":"2026-04-18T01:04:03.312Z","repository":{"id":46147050,"uuid":"281118564","full_name":"Zrnik/MkSQL","owner":"Zrnik","description":"MkSQL is my own DBAL and ORM i wrote before i knew that much better ORMs and DBALs already existed...","archived":false,"fork":false,"pushed_at":"2023-02-12T12:22:50.000Z","size":1549,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-02T03:27:41.619Z","etag":null,"topics":["dbal","mysql","orm","php","sql","sql-tables-autoupdater","sqlite","tracy-panel"],"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/Zrnik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-20T13:05:42.000Z","updated_at":"2023-07-29T16:08:47.000Z","dependencies_parsed_at":"2025-02-02T03:36:01.559Z","dependency_job_id":null,"html_url":"https://github.com/Zrnik/MkSQL","commit_stats":null,"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zrnik%2FMkSQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zrnik%2FMkSQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zrnik%2FMkSQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zrnik%2FMkSQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zrnik","download_url":"https://codeload.github.com/Zrnik/MkSQL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245953874,"owners_count":20699722,"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":["dbal","mysql","orm","php","sql","sql-tables-autoupdater","sqlite","tracy-panel"],"created_at":"2024-12-07T03:17:52.253Z","updated_at":"2026-04-18T01:04:03.274Z","avatar_url":"https://github.com/Zrnik.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MkSQL\n\n![GitHub](https://img.shields.io/github/license/zrnik/mksql)\n![PHP Version](https://img.shields.io/packagist/php-v/zrnik/mksql)\n![Packagist Downloads](https://img.shields.io/packagist/dm/zrnik/mksql)\n![Packagist Version](https://img.shields.io/packagist/v/zrnik/mksql)\n\n# Do not use this!\n\nUse doctrine instead!\n\n### What is it?\n\n*So, I just found out that the thing I created is usually called an ORM and DBAL.*\n\n**MkSQL** is a tool for keeping your tables up to date with PHP code. It aims for a simple use cases, so it cannot\nhandle very complex stuff. Explore the docs to see what is possible.\n\nThis package simply allows you to define entities, that represent your database tables, and automatically creates them\nfor you.\n\nYou can also skip the `ORM` part and use `Updater` class to create your database without any entities, instead of\ncreating them with Adminer *(or PHPMyAdmin)*.\n\nDocumentation index is in [docs/index.md](docs/index.md) file.\n\n#### Requirements\n\nThis package **requires** you to run it with PHP 8+, as it uses the new stuff this version delivers. Mainly attributes\nand promoted constructor properties.\n\n```json \n{\n    \"PHP\": \"\u003e= 8\",\n    \"ext-pdo\": \"*\",\n\n    \"nette/utils\": \"^3.0\",\n    \"zrnik/enum\": \"^1\",\n    \n    \"ext-iconv\": \"*\",\n    \"ext-intl\": \"*\"\n}\n```\n\n#### Installation\n\n`composer require zrnik/mksql`\n\nRead more at [Installation and Configuration](docs/install-and-config.md) page.\n\n#### Supported Drivers:\n\n- [✅ MySQL](https://www.mysql.com)\n- [✅ SQLite 3](https://www.sqlite.org/index.html)\n\n#### This package contains a [Tracy](https://tracy.nette.org/en/) panel\n\nAdd this to your bootstrap file:\n\n```php\nTracy\\Debugger::getBar()-\u003eaddPanel(new \\Zrnik\\MkSQL\\Tracy\\Panel());\n```\n\nOr, if you are using [Nette Framework](https://nette.org/en/), register it in your configuration file:\n\n```neon\ntracy: \n    bar: \n        - Zrnik\\MkSQL\\Tracy\\Panel\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzrnik%2Fmksql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzrnik%2Fmksql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzrnik%2Fmksql/lists"}