{"id":15988602,"url":"https://github.com/insolita/yii2-opcache","last_synced_at":"2025-03-17T15:32:18.815Z","repository":{"id":56992056,"uuid":"87357019","full_name":"Insolita/yii2-opcache","owner":"Insolita","description":"Opcache management for yii2 from console or adminlte-based gui module","archived":false,"fork":false,"pushed_at":"2017-12-20T15:17:07.000Z","size":28,"stargazers_count":15,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T01:18:37.952Z","etag":null,"topics":["console-tool","hacktoberfest","module","opcache","yii2"],"latest_commit_sha":null,"homepage":"","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/Insolita.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":"2017-04-05T21:12:47.000Z","updated_at":"2024-12-11T19:51:52.000Z","dependencies_parsed_at":"2022-08-21T13:20:25.146Z","dependency_job_id":null,"html_url":"https://github.com/Insolita/yii2-opcache","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Insolita%2Fyii2-opcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Insolita%2Fyii2-opcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Insolita%2Fyii2-opcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Insolita%2Fyii2-opcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Insolita","download_url":"https://codeload.github.com/Insolita/yii2-opcache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243869491,"owners_count":20361023,"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":["console-tool","hacktoberfest","module","opcache","yii2"],"created_at":"2024-10-08T04:05:40.461Z","updated_at":"2025-03-17T15:32:18.468Z","avatar_url":"https://github.com/Insolita.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii2 OpCache module\n===================\n Show statistic, config, reset all, invalidate files, search in cached files\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 insolita/yii2-opcache \"~1.0\"\n```\n\nor add\n\n```\n\"insolita/yii2-opcache\": \"~1.0\"\n```\n\nto the require section of your `composer.json` file.\n\n\nUsage\n-----\n\nOnce the extension is installed, simply use it in your code by  :\n```php\n'bootstrap'=\u003e[\n       ...\n        \\insolita\\opcache\\Bootstrap::class\n        ...\n],\n...\n'modules'=\u003e[\n    ...\n    'opcache'=\u003e[\n            'class'=\u003e'insolita\\opcache\\OpcacheModule',\n            'as access'=\u003e[\n               'class' =\u003e \\yii\\filters\\AccessControl::class,\n                           'rules' =\u003e [\n                               [\n                                   'allow' =\u003e true,\n                                   //Protect access\n                                   'roles' =\u003e ['developer'],\n                               ],\n                           ],\n            ]\n        ],\n    ...    \n]\n\n```\nGo to route ```['/opcache/default/index']```\n\n\nAlso for console command usage - add in console configuration\n\n```php\n'bootstrap'=\u003e[\n       ...\n        \\insolita\\opcache\\Bootstrap::class\n        ...\n],\n...\n'controllerMap'=\u003e[\n    'opcache'=\u003e[\n        'class'=\u003e\\insolita\\opcache\\commands\\OpcacheController::class\n    ]\n]\n```\ncommands opcache/status opcache/config opcache/files opcache/reset opcache/invalidate will be available\n\nScreens\n-------\n![Status](http://dl4.joxi.net/drive/2017/04/05/0008/3019/551883/83/a70744c562.jpg)\n![Files](http://dl4.joxi.net/drive/2017/04/05/0008/3019/551883/83/070fedc0b3.jpg)\n![Config](http://dl4.joxi.net/drive/2017/04/05/0008/3019/551883/83/c3769678c7.jpg)\n\n#### Understanding OpCache \n\n@see https://habrahabr.ru/company/mailru/blog/310054/ (Ru) \n\n@see http://jpauli.github.io/2015/03/05/opcache.html (En)\n\n\n#####  P.S.\nRussian settings translation based on \nhttps://sabini.ch/cms/perevod-nastroek-zend-opcache.html","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsolita%2Fyii2-opcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsolita%2Fyii2-opcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsolita%2Fyii2-opcache/lists"}