{"id":19553929,"url":"https://github.com/developeruz/yii2-short-code","last_synced_at":"2026-05-17T17:08:48.055Z","repository":{"id":23878313,"uuid":"27257297","full_name":"developeruz/yii2-short-code","owner":"developeruz","description":"Using a short code in your project based on Yii2","archived":false,"fork":false,"pushed_at":"2014-12-22T07:30:11.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-01T01:26:39.141Z","etag":null,"topics":["highlightjs","yii2"],"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/developeruz.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":"2014-11-28T08:03:56.000Z","updated_at":"2016-03-10T10:09:13.000Z","dependencies_parsed_at":"2022-08-26T18:12:43.291Z","dependency_job_id":null,"html_url":"https://github.com/developeruz/yii2-short-code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/developeruz/yii2-short-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developeruz%2Fyii2-short-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developeruz%2Fyii2-short-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developeruz%2Fyii2-short-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developeruz%2Fyii2-short-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developeruz","download_url":"https://codeload.github.com/developeruz/yii2-short-code/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developeruz%2Fyii2-short-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33147340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["highlightjs","yii2"],"created_at":"2024-11-11T04:25:18.600Z","updated_at":"2026-05-17T17:08:48.011Z","avatar_url":"https://github.com/developeruz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"yii2-short-code - подсветка кода на основе Highlightjs для проектов на Yii2\n===============\n\nУстановка:\n```bash\n$ php composer.phar require developeruz/yii2-short-code \"*\"\n```\n\n###Использование###\nВ action контроллера прописываем событие:\n```php\nYii::$app-\u003eview-\u003eon(View::EVENT_AFTER_RENDER, ['developeruz\\shortcode\\Highlightjs', 'shortCode']);\n```\nТеперь после генерации шаблона, поведение будет заменять куски\n```\n[code]\nsome code\n[/code]\n```\nна\n```\n\u003cpre\u003e\u003ccode class=\"php\"\u003e\nsome code\n\u003c/code\u003e\u003c/pre\u003e\n```\nи подключать файлы Highlightjs. Подробнее об Highlightjs можно почитать на сайте http://highlightjs.org/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperuz%2Fyii2-short-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloperuz%2Fyii2-short-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperuz%2Fyii2-short-code/lists"}