{"id":17099127,"url":"https://github.com/bluezed/yii2-scroll-top","last_synced_at":"2025-04-12T23:53:35.184Z","repository":{"id":62495412,"uuid":"38867322","full_name":"bluezed/yii2-scroll-top","owner":"bluezed","description":"A simple Yii 2 widget that adds a Scroll-to-top button on your page.","archived":false,"fork":false,"pushed_at":"2020-07-20T04:47:20.000Z","size":15,"stargazers_count":9,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T23:53:29.982Z","etag":null,"topics":["css","javascript","php","widget","yii2","yii2-widgets"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluezed.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":"2015-07-10T07:30:05.000Z","updated_at":"2024-06-21T07:45:39.000Z","dependencies_parsed_at":"2022-11-02T11:31:31.659Z","dependency_job_id":null,"html_url":"https://github.com/bluezed/yii2-scroll-top","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluezed%2Fyii2-scroll-top","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluezed%2Fyii2-scroll-top/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluezed%2Fyii2-scroll-top/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluezed%2Fyii2-scroll-top/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluezed","download_url":"https://codeload.github.com/bluezed/yii2-scroll-top/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647237,"owners_count":21139083,"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":["css","javascript","php","widget","yii2","yii2-widgets"],"created_at":"2024-10-14T15:09:07.385Z","updated_at":"2025-04-12T23:53:35.153Z","avatar_url":"https://github.com/bluezed.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"yii2-scroll-top\n=====================\nThis Yii 2 widget adds a simple scroll-to-top button to your site.\nIt uses a glyphicon, some CSS and the .animate jQuery function. All these are part of Yii 2 by default so no other dependencies are required.\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 --prefer-dist bluezed/yii2-scroll-top \"*\"\n```\n\nor add\n\n```\n\"bluezed/yii2-scroll-top\": \"*\"\n```\n\nto the require section of your `composer.json` file.\n\n\nHow to use\n----------\nAdd this line to your main layout so the widget gets loaded automatically into every page.\n```php\n\u003c?= \\bluezed\\scrollTop\\ScrollTop::widget() ?\u003e\n```\n\nTo customize the class of the i and a-tags generated by the widget use the following syntax: \n```php\n\u003c?= \\bluezed\\scrollTop\\ScrollTop::widget([\n      'i_class' =\u003e 'glyphicon glyphicon-menu-up bluezed-scroll-top-circle my_custom_class', \n      'a_class' =\u003e 'bluezed-scroll-top my_other_custom_class') ?\u003e\n```\n\n\nBy default your main layout should be located here:\n```\n\u003cProject-Folder\u003e/views/layouts/main.php\n```\n\nScreenshot\n----------\nThe button appears in the bottom right corner of the page once you have scrolled down at least 150px.\n![Screenshot of the button](https://s19.postimg.cc/dkro8azxf/Scroll-_Top-_Button.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluezed%2Fyii2-scroll-top","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluezed%2Fyii2-scroll-top","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluezed%2Fyii2-scroll-top/lists"}