{"id":51097969,"url":"https://github.com/studio24/staging-site","last_synced_at":"2026-06-24T08:02:01.597Z","repository":{"id":357796321,"uuid":"1207663248","full_name":"studio24/staging-site","owner":"studio24","description":"A set of simple tools to help manage staging websites","archived":false,"fork":false,"pushed_at":"2026-04-11T18:22:22.000Z","size":61,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-14T10:52:54.577Z","etag":null,"topics":[],"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/studio24.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-11T08:22:08.000Z","updated_at":"2026-04-11T18:22:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/studio24/staging-site","commit_stats":null,"previous_names":["studio24/staging-site"],"tags_count":null,"template":false,"template_full_name":"studio24/php-package-template","purl":"pkg:github/studio24/staging-site","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studio24%2Fstaging-site","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studio24%2Fstaging-site/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studio24%2Fstaging-site/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studio24%2Fstaging-site/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/studio24","download_url":"https://codeload.github.com/studio24/staging-site/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studio24%2Fstaging-site/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34722710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-06-24T08:01:58.105Z","updated_at":"2026-06-24T08:02:01.591Z","avatar_url":"https://github.com/studio24.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  Staging site tools\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/studio24/staging-site.svg?style=flat-square)](https://packagist.org/packages/studio24/staging-site)\n[![Tests](https://img.shields.io/github/actions/workflow/status/studio24/staging-site/php.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/studio24/staging-site/actions/workflows/php.yml)\n\nA set of simple tools to help manage staging websites, designed for PHP-powered websites.\n\n## What does it do?\n\nWhen creating or updating a website it's a good idea to publish changes to a staging environment to review before going live.\n\nThis package adds the following simple tools to a staging site:\n\n* Secure staging websites behind a simple, accessible login page\n* Displays a banner indicating the site is a staging site\n* Informs search engine spiders to not index a staging website\n\nIt has support for WordPress, Craft CMS, Laravel, Symfony and plain PHP integration.\n\n### Staging site login\n\nThe staging site login page is a replacement for basic authentication, which doesn't play well with password managers and is blocked by some client systems.\n\n* It detects the current environment and if it matches staging, it displays the staging site login page\n* The staging site login page asks for a single password to access the site\n* Once the correct password is entered, a cookie is set to remember the login for a set time period (7 days by default)\n\n[![Screenshot of the staging site password login page](screenshot.png)](screenshot.png)\n\n### Staging banner\n\nTODO\n\n### Inform search engines not to index a staging site\n\nTo effectively stop a staging or development website appearing in search engine results we need to:\n\n- Tell search engines to not list web pages in search results\n- Allow web pages to be indexed\n\nWe can easily block staging sites from being indexed via the HTTP header X-Robots-Tag:\n\n```\nX-Robots-Tag: \"noindex, nofollow\"\n```\n\nThis package adds this header to all requests on a staging site.\n\n## Requirements\n\n* PHP 8.0+\n\n## Installation\n\nSee the [documentation](docs/README.md) for instructions on how to install this on your website.\n\n## Testing\n\nYou can test the staging login and banner via:\n\n```shell\nphp -S localhost:8000 -t tests/website\n```\n\nAccess http://localhost:8000 and use the staging password `test123`\n\nYou can run unit tests via:\n\n```shell\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nFind out more about [how to contribute](CONTRIBUTING.md) and our [Code of Conduct](CODE_OF_CONDUCT.md).\n\n## Security Issues\n\nIf you discover a security vulnerability within this package, please follow our [disclosure procedure](SECURITY.md).\n\n## About\n\nThis package is developed by [Studio 24](https://www.studio24.net/), a human-centered digital agency who build websites and web apps that work for everyone.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudio24%2Fstaging-site","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstudio24%2Fstaging-site","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudio24%2Fstaging-site/lists"}