{"id":15178946,"url":"https://github.com/jdanek/grimoire-db","last_synced_at":"2025-10-26T18:31:46.319Z","repository":{"id":187915563,"uuid":"677257963","full_name":"jDanek/grimoire-db","owner":"jDanek","description":"PHP library using MySQLi driver for simple reading data from the database. Based on NotORM.","archived":false,"fork":false,"pushed_at":"2025-01-11T15:06:42.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T22:11:44.173Z","etag":null,"topics":["database","mysql-database","mysqli"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jDanek.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-08-11T05:57:44.000Z","updated_at":"2025-01-11T15:06:46.000Z","dependencies_parsed_at":"2023-08-12T18:42:39.194Z","dependency_job_id":"b833ebf7-34d2-4999-96af-07cacea98721","html_url":"https://github.com/jDanek/grimoire-db","commit_stats":{"total_commits":46,"total_committers":1,"mean_commits":46.0,"dds":0.0,"last_synced_commit":"a25e7a9497bde4b9b39f8fc0614c062732a298b8"},"previous_names":["jdanek/grimoire"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jDanek%2Fgrimoire-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jDanek%2Fgrimoire-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jDanek%2Fgrimoire-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jDanek%2Fgrimoire-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jDanek","download_url":"https://codeload.github.com/jDanek/grimoire-db/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238386100,"owners_count":19463297,"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","mysql-database","mysqli"],"created_at":"2024-09-27T15:42:38.243Z","updated_at":"2025-10-26T18:31:41.007Z","avatar_url":"https://github.com/jDanek.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Grimoire\n########\n\n.. image:: https://repository-images.githubusercontent.com/677257963/b1803baf-c64a-4975-98c9-9ea5f5425cfa\n\nGrimoire is a PHP library for simple working with data in the database. The most interesting feature is a very easy work with table relationships. The overall performance is also very important and Grimoire can actually run faster than a native driver.\n\n.. contents::\n\nRequirements\n************\n- PHP 7.1+\n- only MySQL database supported\n\nInstallation\n************\n\n.. code-block:: bash\n\n    composer require danek/grimoire-db\n\nUsage\n*****\n\n.. code:: php\n\n   \u003c?php\n\n   $connection = new \\Mysqli(...);\n   $config = Grimoire\\Config::build($connection);\n   $software = new Grimoire\\Database($config);\n\n   foreach ($software-\u003etable('application')-\u003eorder(\"title\") as $application) { // get all applications ordered by title\n       echo $application['title'] . \"\\n\"; // print application title\n       echo $application-\u003eref('author')['name'] . \"\\n\"; // print name of the application author\n       foreach ($application-\u003erelated('application_tag') as $application_tag) { // get all tags of $application\n           echo $application_tag-\u003eref('tag')['name'] . \"\\n\"; // print the tag name\n       }\n   }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdanek%2Fgrimoire-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdanek%2Fgrimoire-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdanek%2Fgrimoire-db/lists"}