{"id":14965473,"url":"https://github.com/ging-dev/nette-eloquent","last_synced_at":"2025-10-25T11:31:51.732Z","repository":{"id":62510809,"uuid":"372696270","full_name":"ging-dev/nette-eloquent","owner":"ging-dev","description":"💡 Eloquent Bridge for Nette Framework","archived":false,"fork":false,"pushed_at":"2021-07-06T09:16:11.000Z","size":12,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T07:05:01.209Z","etag":null,"topics":["eloquent","nette","nette-extension"],"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/ging-dev.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":"2021-06-01T04:01:48.000Z","updated_at":"2024-11-16T14:56:12.000Z","dependencies_parsed_at":"2022-11-02T10:30:51.682Z","dependency_job_id":null,"html_url":"https://github.com/ging-dev/nette-eloquent","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging-dev%2Fnette-eloquent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging-dev%2Fnette-eloquent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging-dev%2Fnette-eloquent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging-dev%2Fnette-eloquent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ging-dev","download_url":"https://codeload.github.com/ging-dev/nette-eloquent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238128586,"owners_count":19421059,"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":["eloquent","nette","nette-extension"],"created_at":"2024-09-24T13:34:48.078Z","updated_at":"2025-10-25T11:31:46.417Z","avatar_url":"https://github.com/ging-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nette-eloquent\nEloquent Bridge for Nette Framework\n\n[![StyleCI](https://github.styleci.io/repos/372696270/shield?branch=main)](https://github.styleci.io/repos/372696270?branch=main)\n\n\n## Installation\n```sh\ncomposer require ging-dev/nette-eloquent\n```\n\n## Configuration\n```neon\nextensions:\n    eloquent: Gingdev\\NetteExtension\\EloquentExtension\n\n\neloquent:\n    driver: sqlite\n    database: %appDir%/database.db\n```\n\n## Example\n```php\n\u003c?php\n\ndeclare(strict_types=1);\n\nnamespace App\\Presenters;\n\nuse Illuminate\\Database\\Connection;\nuse Nette;\n\n\nfinal class HomepagePresenter extends Nette\\Application\\UI\\Presenter\n{\n    /** @var Connection */\n    protected $database;\n\n    public function injectDatabase(Connection $database) {\n        $this-\u003edatabase = $database;\n    }\n\n    public function actionDefault()\n    {\n        $this-\u003edatabase-\u003egetSchemaBuilder()-\u003edrop('users');\n        $this-\u003edatabase-\u003egetSchemaBuilder()-\u003ecreate('users', function ($table) {\n            $table-\u003eincrements('id');\n            $table-\u003estring('name')-\u003eunique();\n        });\n        $this-\u003edatabase-\u003etable('users')-\u003eselect('*')\n            -\u003ewhere('name', 'gingdev')\n            -\u003eget();\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fging-dev%2Fnette-eloquent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fging-dev%2Fnette-eloquent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fging-dev%2Fnette-eloquent/lists"}