{"repo":"bnomei/kirby-janitor","free":true,"listed":false,"github":"https://github.com/bnomei/kirby-janitor","clone":"git clone https://github.com/bnomei/kirby-janitor.git","description":"Kirby Plugin for running commands like cleaning the cache from within the Panel, PHP code, CLI or a cronjob","language":"PHP","stars":93,"topics":["cache","job-runner","cronjob","button","cli","repl","maintenance-mode","backup","command","maintenance"],"license":"MIT","category":"cli-tools","readme_excerpt":"Kirby Janitor Janitor is a Kirby CMS Plugin for running commands. - It is a Panel Button! - It has commands built-in for cleaning the cache, sessions, create zip-backup, pre-generate thumbs, open URLs, refresh the current Panel page and more. - You can define your own commands (call API hooks, play a game, hack a server, ...) - It can be triggered in your frontend code, with the official kirby CLI and a CRON. Install You have to use composer to install both the plugin and the CLI locally into your project: [!WARNING] You need to install the CLI with composer into your project and not use the global version. Since Janitor depends on the CLI to be available, installing only the janitor plugin via submodules or via ZIP is NOT supported. Setup CLI Command In any blueprint create a janitor field with your command, browse to that page in panel and press the button. site/blueprints/page/default.yml Janitor will automatically fill in the current model. - The --model argument will have the UUID or ID of the current model. You can use janitor()- model($cli- arg('model')) to get the object. - But if for example you press the panel button on a page you will have --page argument set to the UUID or ID of that page. Use $cli- kirby()- page($cli- arg('page')) to get the object. - If you call it on a file view then --file arg will be set. Use $cli- kirby()- file($cli- arg('file')) to get the object. - On a panel user view... --user . Use $cli- kirby()- user($cli- arg('user')) to get the objec","default_branch":null,"files":null,"tree":[],"storefront":"/r/bnomei","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bnomei/kirby-janitor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}