承接 sborniktestov/embed 相关项目开发

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

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

sborniktestov/embed

Composer 安装命令:

composer require sborniktestov/embed

包简介

Embed interactive quizzes from sborniktestov.ru into any PHP application. Generates embed HTML with 20+ customizable parameters.

README 文档

README

Embed interactive quizzes from sborniktestov.ru into any PHP application. 15,000+ quizzes: personality tests, knowledge checks, professional assessments, and more.

Generates the exact HTML that the embed loader expects — a div.st-embed container with data-attributes + the async loader script.

Install

composer require sborniktestov/embed

Usage

use SbornikTestov\Embed;

// Basic embed
$embed = new Embed(12345);
echo $embed->render();

// With customization
$embed = new Embed(12345, [
    'comments'     => '1',
    'header'       => '0',
    'color-accent' => '4CAF50',
    'color-bg'     => 'f5f5f5',
    'radius'       => '12',
    'font-question'=> '18',
]);
echo $embed->render();

Output

<div class="st-embed" data-quiz-id="12345" data-comments="1" data-color-accent="4CAF50">
  <a href="https://sborniktestov.ru">Sbornik Testov</a>
</div>
<script async src="https://sborniktestov.ru/embed/loader.js"></script>

Multiple quizzes on one page

$quiz1 = new Embed(111);
$quiz2 = new Embed(222);

echo $quiz1->div();
echo $quiz2->div();
// One script tag is enough for all quizzes
echo $quiz1->script();

Direct iframe URL

$embed = new Embed(12345, ['color-accent' => 'ff5500']);
echo $embed->iframeUrl();
// https://sborniktestov.ru/embed/?id=12345&color_accent=ff5500

Available Options

Display: comments (0/1), related (0/1), header (0/1), desc (0/1), stats (0/1)

Layout: width, min-height, max-width

Colors (hex, no #): color-accent, color-bg, color-title, color-text, color-btn-text, color-selected-bg, color-progress-bg, color-progress-fill, color-border, color-border-selected, color-btn-prev, color-hover

Typography (px): font-title, font-desc, font-stats, font-question, font-answer, radius, padding

CMS Plugins

Visual Configurator

Use the embed configurator to customize with a live preview.

License

MIT — sborniktestov.ru

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固