承接 drewdan/page-builder 相关项目开发

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

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

drewdan/page-builder

Composer 安装命令:

composer require drewdan/page-builder

包简介

A simple page builder tool for Laravel

README 文档

README

A Vue-powered page builder for Laravel, designed with Tailwind CSS for styling. Easily construct pages using components such as headings, paragraphs, and images. The layout is managed using a grid system, ensuring a responsive design across both mobile and larger devices.

Installation

  1. Install the package via Composer:
composer require drewdan/page-builder
  1. Ensure the public assets are always up-to-date by adding the following to the post-update-cmd in your composer.json file:
"post-update-cmd": [
    "@php artisan vendor:publish --tag=page-builder-assets --ansi --force"
]
  1. You can publish the package's config file using the following command:
php artisan vendor:publish --tag=page-builder-config

Configuration

The package comes with a primary configuration file which allows you to set various options for the page builder. Here's a brief overview:

  • prefix: The URL prefix for the page builder.
  • middleware: Middleware to apply. It's recommended to include 'web' here.
  • external: Configuration for external routes.
  • layout: The default layout for the page builder pages.
  • elements: Define the elements available in the page builder, such as headings, paragraphs, and images.

Here's a snippet from the default configuration:

'elements' => [
    [
        'id' => 1,
        'type' => 'h1',
        'renderer' => 'Text',
        'name' => 'Heading',
        ...
    ],
    ...
]

Usage

By default, the index of pages can be located by visiting /page-builder/pages. You can change this by updating the prefix option in the configuration file.

Page Builder Index

Clicking create new page will trigger a modal where you can name your new page. Clicking edit will allow you to edit a page

At the time of writing, the default new page is completely blank.

Page Builder Edit

To create a page you must first add "containers to the page" using the "Add Container" button. The containers utilise the tailwind grid system, with a default of 4 columns. By selecting the container, you will have the option to change the span of the container, this will allow you to stack containers side by side. On the smaller breakpoints, these will always default to 1 column. You may also set the text alignment of the contents of the container.

Page Builder Container

Once you have added a container, you can then add elements to the container.

At the time of writing, there are three "components", header, paragraph and image. We have plans to add more and to allow you to define your own custom components.

Page Builder Components

Click and drag these components to the container, they will contain some default content which you can then configure.

Clicking on an element will allow you to edit its settings.

Page Builder Edit Element

Each type of element has its own configuration options, for example, the header element allows you to set the header size, the paragraph element allows you to set the text alignment and the image element allows you to set the image source.

Once you have finished editing your page, click save.

This package is still in early development, so lots of features are still to come! If you have any feedback, please feel free to open an issue or a PR.

To view your page, you can visit /page/{slug}.

Contributing

Contributions are very welcome! Please follow the conventions set out by GitFlow when submitting pull requests.

License

This package is open-sourced software licensed under the MIT license.

drewdan/page-builder 适用场景与选型建议

drewdan/page-builder 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 194 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 07 月 08 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 drewdan/page-builder 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 drewdan/page-builder 我们能提供哪些服务?
定制开发 / 二次开发

基于 drewdan/page-builder 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-08