{"id":14971320,"url":"https://github.com/zacksleo/yii2-gallery","last_synced_at":"2026-02-13T20:06:17.930Z","repository":{"id":57089104,"uuid":"81836667","full_name":"zacksleo/yii2-gallery","owner":"zacksleo","description":"yii2 gallery ","archived":false,"fork":false,"pushed_at":"2019-06-30T06:04:15.000Z","size":648,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T20:55:52.435Z","etag":null,"topics":["yii2","yii2-extension","yii2-gallery"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zacksleo.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2017-02-13T14:58:33.000Z","updated_at":"2019-06-30T06:03:59.000Z","dependencies_parsed_at":"2022-08-20T16:00:32.692Z","dependency_job_id":null,"html_url":"https://github.com/zacksleo/yii2-gallery","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/zacksleo%2Fyii2-gallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fyii2-gallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fyii2-gallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacksleo%2Fyii2-gallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zacksleo","download_url":"https://codeload.github.com/zacksleo/yii2-gallery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238347896,"owners_count":19457012,"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":["yii2","yii2-extension","yii2-gallery"],"created_at":"2024-09-24T13:45:01.231Z","updated_at":"2025-10-26T15:30:22.340Z","avatar_url":"https://github.com/zacksleo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yii2 gallery\r\n\r\n[![Latest Stable Version](https://poser.pugx.org/zacksleo/yii2-gallery/version)](https://packagist.org/packages/zacksleo/yii2-gallery)\r\n[![Total Downloads](https://poser.pugx.org/zacksleo/yii2-gallery/downloads)](https://packagist.org/packages/zacksleo/yii2-gallery)\r\n[![License](https://poser.pugx.org/zacksleo/yii2-gallery/license)](https://packagist.org/packages/zacksleo/yii2-gallery)\r\n\r\noriginal [yii2-gallery-module](https://github.com/sadovojav/yii2-gallery-module)\r\n\r\n#### Features:\r\n- Upload image\r\n- Drag image and change position\r\n- Make gallery template\r\n- Use inline widget\r\n\r\n![gallery](https://cloud.githubusercontent.com/assets/9282021/10119704/7a006796-64a5-11e5-8b3c-51046cb05f7b.jpg)\r\n\r\n## Installation\r\n\r\n### Composer\r\n\r\nThe preferred way to install this extension is through [Composer](http://getcomposer.org/).\r\n\r\nEither run ```php composer.phar require sadovojav/yii2-gallery-module \"dev-master\"```\r\n\r\nor add ```\"sadovojav/yii2-gallery-module\": \"dev-master\"``` to the require section of your ```composer.json```\r\n\r\n### Migration\r\n\r\nyii migrate --migrationPath=@vendor/sadovojav/yii2-gallery-module/migrations\r\n\r\n## Config\r\n\r\n1. Attach the module in your config file:\r\n\r\n```php\r\n'modules' =\u003e [\r\n    'gallery' =\u003e [\r\n        'class' =\u003e 'sadovojav\\gallery\\Module',\r\n    ],\r\n],\r\n```\r\n- string `basePath` = `@webroot/galleries` - Base path\r\n- integer `queryCacheDuration` = `86400` - Query cache duration\r\n- bool `uniqueName` = `false` - Generate unique name\r\n\r\n2. If you want use custom template, you can set path map\r\n\r\n```php\r\n'view' =\u003e [\r\n\t'theme' =\u003e [\r\n\t\t'pathMap' =\u003e [\r\n\t\t\t'@sadovojav/gallery/widgets/views' =\u003e '@app/web/views/gallery'\r\n\t\t],\r\n\t\t'baseUrl'   =\u003e '@web/web'\r\n\t],\r\n],\r\n```\r\n\r\n## Administration\r\n\r\nGalleries manager - **/gallery/gallery/index**\r\n\r\n## Using\r\n\r\n#### 1. Widget\r\n\r\n~~~\r\n\u003c?= \\sadovojav\\gallery\\widgets\\Gallery::widget([\r\n    'galleryId' =\u003e $model-\u003egalleryId\r\n]); ?\u003e\r\n~~~\r\n\r\n- integer `galleryId` required - Gallery Id\r\n- bool `caption` = `false` - Show caption in default template\r\n- string `template` = `null` - Your custom widget template\r\n\r\n\r\n#### 2. Inline Widget\r\n\r\nSee here -\u003e [https://github.com/sadovojav/yii2-inline-widgets-behavior](https://github.com/sadovojav/yii2-inline-widgets-behavior)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacksleo%2Fyii2-gallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzacksleo%2Fyii2-gallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacksleo%2Fyii2-gallery/lists"}