{"id":20328609,"url":"https://github.com/luyadev/luya-module-gallery","last_synced_at":"2025-08-05T02:24:55.163Z","repository":{"id":31466532,"uuid":"35030450","full_name":"luyadev/luya-module-gallery","owner":"luyadev","description":"Galleries Module","archived":false,"fork":false,"pushed_at":"2021-10-05T09:00:15.000Z","size":87,"stargazers_count":0,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-18T10:15:58.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://luya.io","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/luyadev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-05-04T11:14:44.000Z","updated_at":"2021-10-05T09:00:18.000Z","dependencies_parsed_at":"2022-08-17T19:05:08.153Z","dependency_job_id":null,"html_url":"https://github.com/luyadev/luya-module-gallery","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/luyadev/luya-module-gallery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luyadev%2Fluya-module-gallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luyadev%2Fluya-module-gallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luyadev%2Fluya-module-gallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luyadev%2Fluya-module-gallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luyadev","download_url":"https://codeload.github.com/luyadev/luya-module-gallery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luyadev%2Fluya-module-gallery/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264504976,"owners_count":23618875,"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":[],"created_at":"2024-11-14T20:07:02.549Z","updated_at":"2025-07-09T23:09:33.200Z","avatar_url":"https://github.com/luyadev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png\" alt=\"LUYA Logo\"/\u003e\n\u003c/p\u003e\n\n# Gallery Module\n\n[![LUYA](https://img.shields.io/badge/Powered%20by-LUYA-brightgreen.svg)](https://luya.io)\n[![Latest Stable Version](https://poser.pugx.org/luyadev/luya-module-gallery/v/stable)](https://packagist.org/packages/luyadev/luya-module-gallery)\n[![Total Downloads](https://poser.pugx.org/luyadev/luya-module-gallery/downloads)](https://packagist.org/packages/luyadev/luya-module-gallery)\n[![Slack Support](https://img.shields.io/badge/Slack-luyadev-yellowgreen.svg)](https://slack.luya.io/)\n\nThe gallery module allows you create folders and collection and upload images to the collections. Its an easy way to create a gallery very quick and create your own view files.\n\n## Installation\n\nFor the installation of modules Composer is required.\n\n```sh\ncomposer require luyadev/luya-module-gallery\n```\n\n\n### Configuration\n\nAfter installation via Composer include the module to your configuration file within the modules section.\n\n```php\n'modules' =\u003e [\n    // ...\n    'gallery' =\u003e [\n        'class' =\u003e 'luya\\gallery\\frontend\\Module',\n        'useAppViewPath' =\u003e false, // When enabled the views will be looked up in the @app/views folder, otherwise the views shipped with the module will be used.\n    ],\n    'galleryadmin' =\u003e 'luya\\gallery\\admin\\Module',\n]\n```\n### Initialization \n\nAfter successfully installation and configuration run the migrate, import and setup command to initialize the module in your project.\n\n1.) Migrate your database.\n\n```sh\n./vendor/bin/luya migrate\n```\n\n2.) Import the module and migrations into your LUYA project.\n\n```sh\n./vendor/bin/luya import\n```\n\n## View files\n\nAs the modules are not shipped with default view files you can use the following examples:\n\n#### cat/index.php\n\n```php\n\u003c?php foreach($catData as $item): ?\u003e\n    \u003cdiv class=\"well\"\u003e\n        \u003ch1\u003e\u003c?= $item-\u003etitle; ?\u003e\u003c/h1\u003e\n        \u003ca href=\"\u003c?= $item-\u003edetailLink; ?\u003e\"\u003eAlben anzeigen\u003c/a\u003e\n    \u003c/div\u003e\n\u003c?php endforeach; ?\u003e\n```\n\n#### alben/index.php\n\n```php\n\u003ctable border=\"1\"\u003e\n\u003c?php foreach($albenData as $item): ?\u003e\n\u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"\u003c?= Yii::$app-\u003estorage-\u003egetImage($item-\u003ecover_image_id)-\u003eapplyFilter('medium-thumbnail')-\u003esource; ?\u003e\" border=\"0\" /\u003e\u003c/td\u003e\n    \u003ctd\u003e\n        \u003ch2\u003e\u003c?= $item-\u003etitle; ?\u003e\u003c/h2\u003e\n        \u003cp\u003e\u003c?= $item-\u003edescription; ?\u003e\u003c/p\u003e\n        \u003cp\u003e\u003c?= $item-\u003edetailLink; ?\u003e\u003c/p\u003e\n    \u003c/td\u003e\n\u003c/tr\u003e\n\u003c?php endforeach; ?\u003e\n\u003c/table\u003e\n```\n\n#### album/index.php\n\n```php\n\u003ctable border=\"1\"\u003e\n\u003ctr\u003e\n    \u003ctd\u003e\n        \u003ch2\u003e\u003c?= $model-\u003etitle; ?\u003e\u003c/h2\u003e\n        \u003cp\u003e\u003c?= $model-\u003edescription; ?\u003e\u003c/p\u003e\n        \u003cp\u003e\u003ca href=\"\u003c?= $model-\u003edetailLink; ?\u003e\"\u003e\u003c?= $model-\u003edetailLink; ?\u003e\u003c/a\u003e\n        \n        \u003ch3\u003eBilder\u003c/h3\u003e\n        \u003cdiv class=\"row\"\u003e\n            \u003c?php foreach($model-\u003ealbumImages as $image): ?\u003e\n                \u003cdiv class=\"col-md-3\"\u003e\n                    \u003cimg class=\"img-responsive\" src=\"\u003c?= $image-\u003egetImage()-\u003esource; ?\u003e\" border=\"0\" /\u003e\n                \u003c/div\u003e\n            \u003c?php endforeach; ?\u003e\n        \u003c/div\u003e\n    \u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluyadev%2Fluya-module-gallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluyadev%2Fluya-module-gallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluyadev%2Fluya-module-gallery/lists"}