{"id":22640682,"url":"https://github.com/beastbytes/yii2-footnotes","last_synced_at":"2025-03-29T05:25:29.161Z","repository":{"id":35466549,"uuid":"39734620","full_name":"beastbytes/yii2-footnotes","owner":"beastbytes","description":"Yii2 Extension that simplies adding and management of footnotes on a web page","archived":false,"fork":false,"pushed_at":"2015-07-27T09:28:49.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T15:55:00.998Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beastbytes.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}},"created_at":"2015-07-26T17:31:33.000Z","updated_at":"2015-07-26T17:51:06.000Z","dependencies_parsed_at":"2022-09-17T18:12:29.738Z","dependency_job_id":null,"html_url":"https://github.com/beastbytes/yii2-footnotes","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fyii2-footnotes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fyii2-footnotes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fyii2-footnotes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fyii2-footnotes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beastbytes","download_url":"https://codeload.github.com/beastbytes/yii2-footnotes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246143291,"owners_count":20730237,"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-12-09T04:13:08.076Z","updated_at":"2025-03-29T05:25:29.143Z","avatar_url":"https://github.com/beastbytes.png","language":"PHP","readme":"# yii2-footnotes\nYii2 Extension that simplies adding and management of footnotes on a web page; it\ngenerates accessible, automatically numbered footnotes.\n\nInspired by the [Accessible Footnotes with CSS](http://www.sitepoint.com/accessible-footnotes-css/) article.\n\nFor license information check the [LICENSE](LICENSE.md)-file.\n\n## Installation\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 beastbytes/yii2-footnotes\n```\n\nor add\n\n```json\n\"beastbytes/yii2-footnotes\": \"*\"\n```\n\nto the require section of your composer.json.\n\n\n## Usage\n\nIn a view:\n\n```php\n$footnotes = Footnotes::begin(); // Before any footnote references on the page\necho $footnotes-\u003eadd('Local text', 'Footnote text'); // at every footnote reference\nFootnotes::end(); // where the footnotes are to be rendered\n```\n\n### Example\n\n```php\n $footnotes = Footnotes::begin();\n// Can be other view stuff here\necho Html::tag('p', strtr('This example shows how to use the {Footnotes widget}.', [\n    '{Footnotes widget}' =\u003e $footnotes-\u003eadd('Footnotes widget', 'The Footnotes widget makes it easy to add accessible footnotes.'),\n]));\n// More view stuff\necho Html::tag('p', strtr('The Footnotes widget uses the {Yii2 framework}.', [\n    '{Yii2 framework}' =\u003e $footnotes-\u003eadd('Yii 2 framework', 'The Yii2 framework is the best framework for developing web applications.'),\n]));\n// More view stuff, maybe with some more footnote references\nFootnotes::end(); // renders the footnotes\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeastbytes%2Fyii2-footnotes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeastbytes%2Fyii2-footnotes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeastbytes%2Fyii2-footnotes/lists"}