{"id":19921117,"url":"https://github.com/corviz/database-layer","last_synced_at":"2026-04-21T13:03:52.979Z","repository":{"id":47434511,"uuid":"516052190","full_name":"Corviz/database-layer","owner":"Corviz","description":"Standalone library for database interaction","archived":false,"fork":false,"pushed_at":"2022-08-17T18:32:19.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T23:47:06.587Z","etag":null,"topics":["database","php8","query-builder"],"latest_commit_sha":null,"homepage":"https://corviz.github.io/database-layer","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/Corviz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-20T16:15:29.000Z","updated_at":"2022-07-23T16:46:45.000Z","dependencies_parsed_at":"2022-07-22T13:19:17.426Z","dependency_job_id":null,"html_url":"https://github.com/Corviz/database-layer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corviz%2Fdatabase-layer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corviz%2Fdatabase-layer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corviz%2Fdatabase-layer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corviz%2Fdatabase-layer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Corviz","download_url":"https://codeload.github.com/Corviz/database-layer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241348211,"owners_count":19948157,"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","php8","query-builder"],"created_at":"2024-11-12T22:06:43.800Z","updated_at":"2026-04-21T13:03:47.924Z","avatar_url":"https://github.com/Corviz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Corviz - Database Layer\n\nCorviz database layer provides a simple yet powerful interface to run your database operations.\n\nWe use [Hydrahon](https://clancats.io/hydrahon/master/) query builder as it's base components, extending it with a Model.\nIt means that all operations included in their library will be avaliable for your models as well.\n\n## Installation\n\n```\ncomposer require corviz/database-layer\n```\n\n## Features\n\n- Simple to use query builder\n- Database interface (binding, native queries, transactions, db function execution, etc...)\n- Base model that features mutators, accessors and CRUD operations...\n- Mass objects creation\n\nAnd more coming soon!\n\n### Have a taste:\n\nExample 1 - Fetch active users:\n```php\n$users = User::query()-\u003ewhere('active', true)-\u003eget();\n\nforeach ($users as $user) {\n    echo $user-\u003eid, ' - ', $user-\u003eemail;\n}\n```\n\nExample 2 - Create and save a contact:\n\n```php\n$contact = new Contact();\n$contact-\u003ename =  'John';\n$contact-\u003ephone = '+1 (999) 999-9999';\n$contact-\u003einsert(); \n```\n\nExample 3 - Create messages in the messages table:\n```php\nMessage::create([\n    [\n        'message' =\u003e 'This is an warning message',\n        'level' =\u003e 'warning'\n    ],\n    [\n        'message' =\u003e 'This is an info message',\n        'level' =\u003e 'info'\n    ]\n]);\n```\n\n[See complete documentation...](https://corviz.github.io/database-layer/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorviz%2Fdatabase-layer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorviz%2Fdatabase-layer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorviz%2Fdatabase-layer/lists"}