{"id":27985121,"url":"https://github.com/satur-io/opcachemanagerbundle","last_synced_at":"2025-09-02T15:33:16.465Z","repository":{"id":57047968,"uuid":"338511894","full_name":"satur-io/OpcacheManagerBundle","owner":"satur-io","description":"Symfony bundle to reset cache, show summary information and get configuration about de OPcache","archived":false,"fork":false,"pushed_at":"2021-05-02T07:11:43.000Z","size":71,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-23T23:46:40.590Z","etag":null,"topics":["cd","ci","cli","opcache","php","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"","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/satur-io.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":"2021-02-13T06:24:09.000Z","updated_at":"2023-02-25T08:52:09.000Z","dependencies_parsed_at":"2022-08-23T17:50:24.804Z","dependency_job_id":null,"html_url":"https://github.com/satur-io/OpcacheManagerBundle","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satur-io%2FOpcacheManagerBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satur-io%2FOpcacheManagerBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satur-io%2FOpcacheManagerBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satur-io%2FOpcacheManagerBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/satur-io","download_url":"https://codeload.github.com/satur-io/OpcacheManagerBundle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253017013,"owners_count":21840882,"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":["cd","ci","cli","opcache","php","symfony","symfony-bundle"],"created_at":"2025-05-08T06:42:32.279Z","updated_at":"2025-05-08T06:42:33.627Z","avatar_url":"https://github.com/satur-io.png","language":"PHP","readme":"# The OPcacheManagerBundle\n\nManage your OPcache using CLI through API endpoints.\n\nThe OpcacheManagerBundle a simple and fast way to manage your cache using CLI commands \nand the most useful package for your CI/CD scripts.\n\n## How it works\n\n### The issue\n[OPcache](https://www.php.net/manual/es/book.opcache.php) doesn't provide any method to clean your\napplication cache using a CLI. So, if you want to clean your symfony app cache, you must run \n`opcache_reset()` function ***in your web server or your php-fpm process***. That is mean that\nyou need a URL in your app that call the reset function. \n\nOf course, you could use something like `php7.4-fpm reload` to refresh OPCache if the user you use\nfor deployment has permissions.\n\nThis is a headache when we use CI/CD tools for the deployment, since we can't reset the cache\nlaunching a command.\n\n### OpcacheManagerBundle solution\nOpcacheManagerBundle provides some routes to manage your OPCache through symfony commands.\nThese commands make signed requests to the routes and show results in console. For security reasons,\nthe request must to be signed (the bundle manage this by itself), so it can't be use directly unless\nthe `APP_SECRET` is known.\n\n## Instalation\n\n```shell script\ncomposer require saturio/opcache-manager\n```\n\n## Configuration\nFirst of all, active the bundle in your `config/bundles.php` file:\n\n```php\n// config/bundles.php\n\u003c?php\n\nreturn [\n// ...\n    Saturio\\OpcacheManagerBundle\\SaturioOpcacheManagerBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\nAdd the OpcacheManager routes:\n\n```yaml\n# config/routes/opcache_manager.yml\n\nsaturio_opcache:\n    resource: \"@SaturioOpcacheManagerBundle/Resources/config/routing.yaml\"\n```\n\nAnd, finally, configure the OpcacheManager:\n```yaml\n# config/packages/saturio_opcache_manager.yaml\nsaturio_opcache_manager:\n    server:\n        default_uri: 'http://127.0.0.1:8000' # Your base URL\n```\n\n\n## Usage\n:point_right: Note that you must have a server running your app to use OPCacheManagerBundle.\n\nUse these simple commands:\n\n```shell script\nbin/console saturio:opcache:reset\nbin/console saturio:opcache:status\nbin/console saturio:opcache:configuration\n```\n\n## Testing\nClone de repo and run:\n```shell script\ncomposer install\nbin/phpunit\n```\n\nMade with ❤️ and without :cop: in Soria.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatur-io%2Fopcachemanagerbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsatur-io%2Fopcachemanagerbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatur-io%2Fopcachemanagerbundle/lists"}