{"id":21352559,"url":"https://github.com/ostark/craft-mute-deprecations","last_synced_at":"2026-05-18T10:09:27.552Z","repository":{"id":57033594,"uuid":"128256355","full_name":"ostark/craft-mute-deprecations","owner":"ostark","description":"Mute Craft deprecations","archived":false,"fork":false,"pushed_at":"2018-04-05T22:49:07.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T02:55:40.133Z","etag":null,"topics":["craftcms","example","yii2","yii2-extension"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/ostark.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":"2018-04-05T19:47:44.000Z","updated_at":"2018-04-05T22:49:08.000Z","dependencies_parsed_at":"2022-08-23T20:50:38.038Z","dependency_job_id":null,"html_url":"https://github.com/ostark/craft-mute-deprecations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ostark/craft-mute-deprecations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostark%2Fcraft-mute-deprecations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostark%2Fcraft-mute-deprecations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostark%2Fcraft-mute-deprecations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostark%2Fcraft-mute-deprecations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ostark","download_url":"https://codeload.github.com/ostark/craft-mute-deprecations/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostark%2Fcraft-mute-deprecations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33174091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"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":["craftcms","example","yii2","yii2-extension"],"created_at":"2024-11-22T03:14:07.957Z","updated_at":"2026-05-18T10:09:27.512Z","avatar_url":"https://github.com/ostark.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mute Craft deprecations in production\n\nWhen migrating a site from Craft 2 to Craft 3, you will notice things [changed in the templates](https://docs.craftcms.com/v3/changes-in-craft-3.html#template-functions). Twig tags got renamed and variable access is slightly different - they old way is usually still supported, but is marked as \"deprecated\".\n\nThis extension prevents Craft from logging deprecation errors if `'devMode' =\u003e false` in `config/general.php`. \nIt speeds up your site by reducing overhead of tracing the code and logging to the database.\n\n**Notice: Do not simply mute deprecation errors, remove them as soon as possible.**\n\n\n## Why?\n\nThe benefits of this package are very limited. It is rather an example of how to use a Yii extension with Craft instead of a Plugin.\n\nWith this `extra` option in the `composer.json` you hook into Yii's bootstrapping process:\n \n```\n\"extra\": {\n    \"bootstrap\": \"ostark\\\\MuteDeprecations\\\\Bootstrap\"\n}\n```\n\nIn the [Bootstrap class](https://github.com/ostark/craft-mute-deprecations/blob/master/src/Bootstrap.php), you learn how to access the `Craft::$app` instance, to use services and to swap out a Craft core component from the container.\n\n\n## Links\n\n* https://www.yiiframework.com/doc/guide/2.0/en/structure-extensions\n* https://docs.craftcms.com/v3/plugin-intro.html\n\n## Install\n\nRequire the package:\n```\ncomposer require ostark/craft-mute-deprecations\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fostark%2Fcraft-mute-deprecations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fostark%2Fcraft-mute-deprecations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fostark%2Fcraft-mute-deprecations/lists"}