定制 pixelbrackets/html-redirect 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pixelbrackets/html-redirect

最新稳定版本:1.2.0

Composer 安装命令:

composer require pixelbrackets/html-redirect

包简介

Generate HTML markup to redirect a request instead of sending a location header

README 文档

README

Version Build Status Made With License Contribution

Generate HTML markup to redirect a request instead of sending a location header.

Screenshot

Vision

The package provides valid HTML markup to redirect a request to another location.

The redirect method is an alternative for generating static sites which may not use a location header.

See »Usage« for an example.

The package follows the KISS principle.

Requirements

  • PHP

Installation

Packagist Entry https://packagist.org/packages/pixelbrackets/html-redirect/

Source

https://gitlab.com/pixelbrackets/html-redirect/

Mirror https://github.com/pixelbrackets/html-redirect/

Demo

⌨️ php tests/demo.php.

Usage

  1. Get the markup to redirect to https://example.com and write to file
    $redirectMarkup = \Pixelbrackets\HtmlRedirect\HtmlRedirect::redirect('https://example.com/');
    file_put_contents('/var/www/example/index.html', $redirectMarkup);
    

The package creates the markup only, you need to write files or create PSR-7 responses by yourself.

License

GNU General Public License version 2 or later

The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html.

Author

Dan Untenzu (mail@pixelbrackets.de / @pixelbrackets)

Changelog

See ./CHANGELOG.md

Contribution

This script is Open Source, so please use, patch, extend or fork it.

Contributions are welcome!

统计信息

  • 总下载量: 2.51k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2020-09-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固