{"id":21625438,"url":"https://github.com/coderius/yii2-lightbox2-widget","last_synced_at":"2026-03-09T08:31:54.708Z","repository":{"id":56955640,"uuid":"139349491","full_name":"coderius/yii2-lightbox2-widget","owner":"coderius","description":"The Yii2 Lightbox2 widget is a customized lightbox script.","archived":false,"fork":false,"pushed_at":"2023-05-11T07:54:29.000Z","size":336,"stargazers_count":2,"open_issues_count":3,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-01T02:42:28.881Z","etag":null,"topics":["lightbox","lightbox2","lightbox2-widget","yii2","yii2-lightbox2-widget"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coderius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-07-01T17:49:41.000Z","updated_at":"2023-05-19T13:43:07.000Z","dependencies_parsed_at":"2024-11-13T14:48:19.589Z","dependency_job_id":"4982329b-8148-4dae-b9a4-dd6c08944cab","html_url":"https://github.com/coderius/yii2-lightbox2-widget","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"a6b8f3df14c3433b8596cb376bc50b586800af80"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/coderius/yii2-lightbox2-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderius%2Fyii2-lightbox2-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderius%2Fyii2-lightbox2-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderius%2Fyii2-lightbox2-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderius%2Fyii2-lightbox2-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderius","download_url":"https://codeload.github.com/coderius/yii2-lightbox2-widget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderius%2Fyii2-lightbox2-widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30287827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["lightbox","lightbox2","lightbox2-widget","yii2","yii2-lightbox2-widget"],"created_at":"2024-11-25T01:09:17.041Z","updated_at":"2026-03-09T08:31:54.691Z","avatar_url":"https://github.com/coderius.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lightbox2 widget for Yii2\n=========================\nThe Lightbox2 widget is a customized lightbox script based on [Lightbox](https://lokeshdhakar.com/projects/lightbox2/). and \nThis widget used to overlay images on top of the current page. \n\n![alt text](https://github.com/coderius/github-images/blob/master/pic1.png \"Description goes here\")\n\nInstallation\n------------\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require coderius/yii2-lightbox2-widget \"@dev\"\n```\n\nor add\n\n```json\n\"coderius/yii2-lightbox2-widget\" : \"@dev\"\n```\n\nto the require section of your application's `composer.json` file.\n\nUsage\n-----\n* In view:\n\n```php\nuse coderius\\lightbox2\\Lightbox2;\n\n\u003c?= coderius\\lightbox2\\Lightbox2::widget([\n    'clientOptions' =\u003e [\n        'resizeDuration' =\u003e 200,\n        'wrapAround' =\u003e true,\n        \n    ]\n]); ?\u003e\n\n\u003ca href=\"\u003c?= Yii::getAlias(\"@img-web-blog-posts/1/middle/pic.jpg\"); ?\u003e\" data-lightbox=\"roadtrip\" data-title=\"some title\" data-alt=\"some alt\"\u003e\n    \u003c!-- Thumbnail picture --\u003e\n    \u003c?= Html::img(\"@img-web-blog-posts/pic.jpg\"); ?\u003e\n\u003c/a\u003e\n\n\u003ca href=\"\u003c?= Yii::getAlias(\"@img-web-blog-posts/10/middle/pic2.jpg\"); ?\u003e\" data-lightbox=\"roadtrip\"\u003e\n    \u003c!-- Thumbnail picture --\u003e\n    \u003c?= Html::img(\"@img-web-blog-posts/pic2.jpg\"); ?\u003e\n\u003c/a\u003e\n\n\u003ca href=\"\u003c?= Yii::getAlias(\"@img-web-blog-posts/11/middle/pic3.jpg\"); ?\u003e\" data-lightbox=\"roadtrip\"\u003e\n    \u003c!-- Thumbnail picture --\u003e\n    \u003c?= Html::img(\"@img-web-blog-posts/pic3.jpg\"); ?\u003e\n\u003c/a\u003e\n\n```\nYou need set data-lightbox attribute to link and path to image in href attribute. If you wanna \nto set group images, then put identic names to data-lightbox attribute for each needed link. \n\n*Thumbnail picture, by clicking on which opens the widget is wrapped with a link\n \n\n\nReference to plugin [github](https://github.com/lokesh/lightbox2/) repository that is used in this widget.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderius%2Fyii2-lightbox2-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderius%2Fyii2-lightbox2-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderius%2Fyii2-lightbox2-widget/lists"}