{"id":19762570,"url":"https://github.com/letsjump/yii2-anchorjs","last_synced_at":"2026-05-15T18:03:40.559Z","repository":{"id":57014175,"uuid":"240696747","full_name":"letsjump/yii2-anchorjs","owner":"letsjump","description":"A JavaScript utility for adding deep anchor links (like these) to existing page content. AnchorJS is lightweight, accessible, and has no dependencies.","archived":false,"fork":false,"pushed_at":"2020-07-16T08:24:10.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T18:50:37.284Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/letsjump.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","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":"2020-02-15T11:29:13.000Z","updated_at":"2020-07-16T08:24:12.000Z","dependencies_parsed_at":"2022-08-21T14:50:35.637Z","dependency_job_id":null,"html_url":"https://github.com/letsjump/yii2-anchorjs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/letsjump/yii2-anchorjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsjump%2Fyii2-anchorjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsjump%2Fyii2-anchorjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsjump%2Fyii2-anchorjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsjump%2Fyii2-anchorjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letsjump","download_url":"https://codeload.github.com/letsjump/yii2-anchorjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsjump%2Fyii2-anchorjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-12T04:05:09.338Z","updated_at":"2026-05-15T18:03:40.532Z","avatar_url":"https://github.com/letsjump.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"AnchorJS\n========\nYii2 wrapper for [AnchorJS](https://www.bryanbraun.com/anchorjs) that adds deep anchor links to your Yii docs.\n\nOverview\n--------\nAnchorJS lets you drop deep anchor links (like these) onto any webpage, and be on your way.\n\nYou don't need to set up IDs or worry about urls. AnchorJS will respect your IDs if you have them, and generate them if you don't.\n\nIt uses an attractive link icon by default, but you can customize the display via options and CSS styling. The examples demonstrate a few customization ideas.\n\nFinally, AnchorJS is lightweight, accessible, and dependency-free.\n\nExample: [The bootstrap manual](https://getbootstrap.com/docs/3.4/javascript/): \n\n![bootstrap](https://user-images.githubusercontent.com/284998/74590818-4544ed80-5012-11ea-9103-97be6a1fe17a.jpg)\n\nInstallation\n------------\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 letsjump/yii2-anchorjs \"*\"\n```\n\nor add\n\n```\n\"letsjump/yii2-anchorjs\": \"*\"\n```\n\nto the require section of your `composer.json` file.\n\n\nUsage\n-----\n\nOnce the extension is installed, simply add this in any view that need it.\nPlease refer to the [plugin documentation page](https://www.bryanbraun.com/anchorjs/) for an extended usage guide\n\n```php\n\u003c?= \\letsjump\\AnchorJS\\AnchorJS::widget([\n        'add' =\u003e 'h1, h2',\n        'options' =\u003e [\n            'placement'=\u003e'right', \n            'icon'=\u003e'',\n            // ... refer to https://www.bryanbraun.com/anchorjs/#options for any option available\n        ], \n]); ?\u003e\n\n```\n\nApplication wide configuration\n---------------------\n\nYou can set an application wide configuration by adding its options to your /app/config/params.php\n```php\n\u003c?php\n\nreturn [\n    'adminEmail' =\u003e 'admin@example.com',\n    'anchorjs'   =\u003e [\n        'placement' =\u003e 'left',\n        'icon' =\u003e ''\n        // ... refer to https://www.bryanbraun.com/anchorjs/#options for any option available\n    ],\n];\n```\n\nContribution\n------------\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsjump%2Fyii2-anchorjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletsjump%2Fyii2-anchorjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsjump%2Fyii2-anchorjs/lists"}