{"id":17625234,"url":"https://github.com/jorgenevens/php-cache-dashboard","last_synced_at":"2025-05-05T03:41:16.909Z","repository":{"id":19488583,"uuid":"22734489","full_name":"JorgenEvens/php-cache-dashboard","owner":"JorgenEvens","description":"PHP APC, APCu, OPcache and realpath dashboard","archived":false,"fork":false,"pushed_at":"2019-03-09T01:24:53.000Z","size":55,"stargazers_count":30,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T09:58:35.259Z","etag":null,"topics":["apcu","dashboard","opcache","php","php-opcache"],"latest_commit_sha":null,"homepage":"https://php-cache-dashboard.evens.eu/","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/JorgenEvens.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-08-07T19:51:20.000Z","updated_at":"2024-07-31T16:52:51.000Z","dependencies_parsed_at":"2022-09-14T13:40:55.630Z","dependency_job_id":null,"html_url":"https://github.com/JorgenEvens/php-cache-dashboard","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JorgenEvens%2Fphp-cache-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JorgenEvens%2Fphp-cache-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JorgenEvens%2Fphp-cache-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JorgenEvens%2Fphp-cache-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JorgenEvens","download_url":"https://codeload.github.com/JorgenEvens/php-cache-dashboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252436206,"owners_count":21747466,"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":["apcu","dashboard","opcache","php","php-opcache"],"created_at":"2024-10-22T22:08:35.532Z","updated_at":"2025-05-05T03:41:16.896Z","avatar_url":"https://github.com/JorgenEvens.png","language":"PHP","readme":"PHP Cache Dashboard\n===================\n\nA dashboard for multiple caches in PHP with support for\n[PHP Opcache](http://php.net/manual/en/intro.opcache.php),\n[APCu](http://php.net/manual/en/intro.apcu.php),\n[realpath](http://php.net/manual/en/function.realpath-cache-get.php) and\n[Redis](https://pecl.php.net/package/redis)\n\nTry it out at the [demo page](https://je-php-cache-dashboard-demo.herokuapp.com/).\n\n## Prerequisites\n\n - PHP 5.3+\n\nand one or more of the supported caches\n\n - PHP OpCache (opcache extension for php5, included by default in php5.5+)\n - APC or APCu extension\n - Realpath cache ( available since PHP 5.3.2+ )\n - Memcache (partially) and Memcached extension\n - Redis\n\n## Supported operations\n\n - View memory statistics\n - View hit rate\n - Select keys based on regular expression\n - Delete keys based on regular expression\n - Selecting all keys\n - Deleting keys without regular expressions\n - Sort on any data column\n - View entry contents\n\n## Usage\n\nSimply drop the `cache.php` file somewhere on your webserver, preferably somewhere **private**, and that is it!\nNavigate to the page using your browser and you will receive cache information.\n\n![Screenshot of php-cache-dashboard](http://jorgen.evens.eu/github/php-cache-dashboard.png)\n\n## Configuring caches\n\nInformation about specific caches can be disabled by setting the `ENABLE_\u003ccache\u003e` key to false.\nThe default code tests whether the specific cache is available and supported before enabling it.\n\n### APC / APCu\n\n```php\n\u003c?php\n// Enable APC\ndefine('ENABLE_APC', true);\n\n// Disable APC\ndefine('ENABLE_APC', false);\n```\n\n### OPcache\n\n```php\n\u003c?php\n// Enable OPcache\ndefine('ENABLE_OPCACHE', true);\n\n// Disable OPcache\ndefine('ENABLE_OPCACHE', false);\n```\n\n### Realpath\n\n```php\n\u003c?php\n// Enable Realpath\ndefine('ENABLE_REALPATH', true);\n\n// Disable Realpath\ndefine('ENABLE_REALPATH', false);\n```\n\n### Redis\n\n```php\n\u003c?php\n// Enable Redis\ndefine('ENABLE_REDIS', true);\n\n// Disable Redis\ndefine('ENABLE_REDIS', false);\n```\n\nRedis configuration can be done by either changing the `REDIS_` constants or by setting the environment variables with the same name.\n\n| Environment Variable | Default | Description |\n| --- | --- | --- |\n| REDIS\\_HOST | `127.0.0.1` | The hostname of the redis instance to connect to |\n| REDIS\\_PORT | `6379` | The TCP port number on which Redis is listening for connections |\n| REDIS\\_PASSWORD | `null` | The password used to connect |\n| REDIS\\_DATABASE | `null` | Set this to the database number if you want to lock the database number |\n| REDIS\\_SIZE | `null` | The size of your Redis database in bytes if total size is detected incorrectly |\n\n## Contributing\n\nI really appreciate any contribution you would like to make, so don't hesitate to report an issue or submit pull requests.\n\n## About me\n\nHi, my name is [Jorgen Evens](https://jorgen.evens.eu). By day I built things (mainly in PHP and JavaScript) for [Ambassify](https://ambassify.com) and by night I tinker around with these kinds of projects.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorgenevens%2Fphp-cache-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjorgenevens%2Fphp-cache-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorgenevens%2Fphp-cache-dashboard/lists"}