{"id":16429858,"url":"https://github.com/mpalourdio/zf2-maintenance-mode","last_synced_at":"2025-10-26T23:31:37.694Z","repository":{"id":33638258,"uuid":"37290624","full_name":"mpalourdio/zf2-maintenance-mode","owner":"mpalourdio","description":"ZF2 maintenance mode module","archived":false,"fork":false,"pushed_at":"2018-12-29T09:12:33.000Z","size":17,"stargazers_count":2,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-30T15:46:17.742Z","etag":null,"topics":["maintenance","module","zf2"],"latest_commit_sha":null,"homepage":null,"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/mpalourdio.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":"2015-06-11T23:00:39.000Z","updated_at":"2018-12-29T09:12:34.000Z","dependencies_parsed_at":"2022-08-22T20:31:10.947Z","dependency_job_id":null,"html_url":"https://github.com/mpalourdio/zf2-maintenance-mode","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpalourdio%2Fzf2-maintenance-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpalourdio%2Fzf2-maintenance-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpalourdio%2Fzf2-maintenance-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpalourdio%2Fzf2-maintenance-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpalourdio","download_url":"https://codeload.github.com/mpalourdio/zf2-maintenance-mode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219862105,"owners_count":16555980,"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":["maintenance","module","zf2"],"created_at":"2024-10-11T08:24:43.397Z","updated_at":"2025-10-26T23:31:32.432Z","avatar_url":"https://github.com/mpalourdio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PHP 7.0+][ico-engine]][lang]\n[![MIT Licensed][ico-license]][license]\n\n[ico-engine]: http://img.shields.io/badge/php-7.0+-8892BF.svg\n[lang]: http://php.net\n[ico-license]: http://img.shields.io/packagist/l/adlawson/veval.svg\n[license]: LICENSE\n\nzf2 maintenance mode\n====================\n\nThis ZF2 \"maintenance mode\" module allows you to stall your application to maintenance (503 by default) via CLI.\nIt's heavily inspired from the [apigility development mode module] (https://github.com/zfcampus/zf-development-mode).\n\nIt mainly short-circuits the module manager during modules initialization and short-circuits the framework bootstrapping to prevent any service to load, like db connections for example. \n\nRequirements\n============\n  \nPHP 7.0+\n\nInstallation\n============\nRun the command below to install via Composer\n\n```shell\ncomposer require mpalourdio/zf2-maintenance-mode\n```\n\nAdd \"ZfMaintenanceMode\" to your **modules list** in **application.config.php**\n\nEventually, copy ```maintenance.config.global.php.dist``` to ```config/autoload/maintenance.config.global.php``` to personalize the message and/or the http status code and/or the path of the flag file.  \n\nInstead of the message, you can add an html status page by providing the ```html``` option parameter.\n\nEnable maintenance mode\n==========================\n\n```sh\ncd path/to/project/root\nphp public/index.php maintenance enable\n```\n\nNote: clear your cached configuration if needed.\n\nDisable maintenance mode\n===========================\n\n```sh\ncd path/to/project/root\nphp public/index.php maintenance disable\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpalourdio%2Fzf2-maintenance-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpalourdio%2Fzf2-maintenance-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpalourdio%2Fzf2-maintenance-mode/lists"}