承接 websovn/contactform 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

websovn/contactform

最新稳定版本:v1.0

Composer 安装命令:

composer require websovn/contactform

包简介

Webso

README 文档

README

Cài đặt

composer require websovn/contactform

Hướng dẫn - Có 2 phương thức chính để gọi:

Render form

{\Websovn\ContactForm::make()
  ->action(url(''))
  ->setNumberShow(1)
  ->withButton()
  ->render()}

Phương thức của Render

Phương thức Mô tả
static function make() Khởi tạo
description(string $description) Set mô tả cho form
method(string $method) Set method cho form (GET, POST)
action(string $action) Set action cho form
table(string $table) Set tên bảng
setNumberShow(int $showRepeat) Set số lần hiện form sau khi tải trang
buttonZindex(int $zindex) zindex của nút gọi form
buttonLabel(string $label) Nhãn của nút gọi form
buttonIcon(string $icon) Set icon của nút gọi form
buttonClassWrap(string $class) Set class div bao nút gọi form
buttonClass(string $class) Set class nút gọi form
function withButton() Hiển thị nút gọi form
function render() Render form ra view

Xử lý form

\Websovn\ContactForm::make()->query(request());

Phương thức của Query

Command Description
static function make() Khởi tạo
isSendMail(bool $isSend = true) Bật, tắt gửi email sau khi gửi thành công
keyReplace(string $keyReplace) Set từ khóa để thay thế trong nội dung gửi email
subject(string $subject) Set tiêu đề gửi email
message(string $message) Set nội dung gửi email
query(Request $request) Xử lý form

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-27