{"id":20976942,"url":"https://github.com/pixelbrackets/html-redirect","last_synced_at":"2025-12-26T09:35:42.699Z","repository":{"id":145819665,"uuid":"297677338","full_name":"pixelbrackets/html-redirect","owner":"pixelbrackets","description":"Generate HTML markup to redirect a request instead of sending a location header","archived":false,"fork":false,"pushed_at":"2020-11-04T10:28:29.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T18:29:38.087Z","etag":null,"topics":["helper","html-redirect","php","redirect"],"latest_commit_sha":null,"homepage":"https://gitlab.com/pixelbrackets/html-redirect/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pixelbrackets.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-22T14:37:07.000Z","updated_at":"2020-11-13T15:01:02.000Z","dependencies_parsed_at":"2023-04-09T19:46:46.072Z","dependency_job_id":null,"html_url":"https://github.com/pixelbrackets/html-redirect","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelbrackets%2Fhtml-redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelbrackets%2Fhtml-redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelbrackets%2Fhtml-redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelbrackets%2Fhtml-redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixelbrackets","download_url":"https://codeload.github.com/pixelbrackets/html-redirect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243381459,"owners_count":20281969,"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":["helper","html-redirect","php","redirect"],"created_at":"2024-11-19T04:56:34.308Z","updated_at":"2025-12-26T09:35:42.652Z","avatar_url":"https://github.com/pixelbrackets.png","language":"PHP","readme":"# HTML redirect\n\n[![Version](https://img.shields.io/packagist/v/pixelbrackets/html-redirect.svg?style=flat-square)](https://packagist.org/packages/pixelbrackets/html-redirect/)\n[![Build Status](https://img.shields.io/gitlab/pipeline/pixelbrackets/html-redirect?style=flat-square)](https://gitlab.com/pixelbrackets/html-redirect/pipelines)\n[![Made With](https://img.shields.io/badge/made_with-php-blue?style=flat-square)](https://gitlab.com/pixelbrackets/html-redirect#requirements)\n[![License](https://img.shields.io/badge/license-gpl--2.0--or--later-blue.svg?style=flat-square)](https://spdx.org/licenses/GPL-2.0-or-later.html)\n[![Contribution](https://img.shields.io/badge/contributions_welcome-%F0%9F%94%B0-brightgreen.svg?labelColor=brightgreen\u0026style=flat-square)](https://gitlab.com/pixelbrackets/html-redirect/-/blob/master/CONTRIBUTING.md)\n\nGenerate HTML markup to redirect a request instead of sending a location header.\n\n![Screenshot](./docs/screenshot.png)\n\n## Vision\n\nThe package provides valid HTML markup to redirect a request to another\nlocation.\n\nThe redirect method is an alternative for generating static sites which may\nnot use a [location header](https://www.php.net/manual/en/function.header.php).\n\nSee [»Usage«](#usage) for an example.\n\nThe package follows the KISS principle.\n\n## Requirements\n\n* PHP\n\n## Installation\n\nPackagist Entry https://packagist.org/packages/pixelbrackets/html-redirect/\n\n## Source\n\nhttps://gitlab.com/pixelbrackets/html-redirect/\n\nMirror https://github.com/pixelbrackets/html-redirect/\n\n## Demo\n\n⌨️ [`php tests/demo.php`](tests/demo.php).\n\n## Usage\n\n1. Get the markup to redirect to `https://example.com` and write to file\n   ```php\n   $redirectMarkup = \\Pixelbrackets\\HtmlRedirect\\HtmlRedirect::redirect('https://example.com/');\n   file_put_contents('/var/www/example/index.html', $redirectMarkup);\n   ```\n\nThe package creates the markup only, you need to write files or create PSR-7 \nresponses by yourself.\n\n## License\n\nGNU General Public License version 2 or later\n\nThe GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html.\n\n## Author\n\nDan Untenzu (\u003cmail@pixelbrackets.de\u003e / [@pixelbrackets](https://pixelbrackets.de))\n\n## Changelog\n\nSee [./CHANGELOG.md](CHANGELOG.md)\n\n## Contribution\n\nThis script is Open Source, so please use, patch, extend or fork it.\n\n[Contributions](CONTRIBUTING.md) are welcome!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelbrackets%2Fhtml-redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixelbrackets%2Fhtml-redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelbrackets%2Fhtml-redirect/lists"}