承接 simplicateca/burton 相关项目开发

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

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

simplicateca/burton

Composer 安装命令:

composer create-project simplicateca/burton

包简介

Burton is a protosite for Craft CMS 5+

README 文档

README

A proto-website / starter kit for Craft CMS 5 that excels at rapidly prototyping deep, information rich websites. Opinionated but flexible.

Learn more at buildwithburton.com ➜

What is Burton?

Burton is a framework for modeling and architecting website content in a modern, sane, and designer/developer/editing/client friendly way. It is not a website-in-a-box, a universal page-builder, or a theme for Craft CMS.

Heavily influenced by the 80/20 principle, Burton streamlines some aspects of site development by implementing a robust "default" content model along with a set of lightweight Twig templates that support it.

This allows the design & development team to focus on the unique & challenging aspects of each project, rather than reinventing wheels.

Requirements

Local Development

Burton requires Docker for local development. Ensure that you have the latest version of Docker Engine installed on your development machine. Additionally, if you are already using DDEV for Craft site development, Burton can seamlessly run alongside your existing DDEV projects, as DDEV is built on top of Docker.

If you are a Windows user, having WSL2 installed can enhance your experience with the command-line make commands.

Please open an issue if you experience any issues getting the project up and running so that I can debug for other operating systems & setups.

Craft Plugin Requirements

Essential Plugins

Burton operates efficiently out-of-the-box with just a few essential Craft Plugins, each carefully selected to deliver core functionality.

While not so much required, these plugins are so strongly recommended that they might as well be required for all the trouble it would take not to use them.

You may of course add additional plugins as needed, but the following are required for Burton to function as intended:

MetaSettings

Also by Simplicate (the creator of Burton), MetaSettings is the only paid plugin essential for Burton to operate as efficiently as possible.

I say efficiently because, while it's hypothetically possible to omit MetaSettings, it would be at the detriment of layout flexibility, author-experience, and development speed.

Obviously I'm biased, but I also didn't want to give you the impression that MetaSettings is the only option for managing block-level design & layout tokens in Craft.

Design Tokens by TrendyMinds, LJ Dynamic Fields by Lewis Jenkins, and Element Meta by BlueWhale are three plugins that might also be able to work.

And of course you always have the option of rolling your own solution for the Variant / Layout / Theme attribute fields.

Pre-Installed Plugins (FREE)

This is installed by default, but you could just as easily use Redactor or any other rich-text field plugin available.

Probably even get by with using a Markdown field, through it would be at a loss of some functionality and author-experience.

These Twig helper plugins aren't strictly required, but there's really no reason you shouldn't already be using them on every project.

Plus I like them and removing all references to them through-out the codebase would be a pain.

This most excellent plugin is included by default, but I would only call it required if you plan on using Vite as your frontend build tool.

If you want to use something different, you're welcome to change it up -- or you can even use no frontend build tool at all (I too sometimes yearn for the simpler days of the web, back before webpack and npm; but then I remember IE5 and I'm like, "nah.").

Suggested Plugins (FREE)

Configuration for these plugin is already included within Burton, but they are not installed by default.

  • Feed Me
  • topshelfcraft/environment-label
  • verbb/knock-knock

Recommended PAID Plugins

Configurations and presets for these plugins is already included within Burton, but they are not strictly speaking required.

You are welcome to use other plugins (or none at all) to accomplish the functionality each of them provides:

  • SEOMatic
  • Navigation
  • Formie
  • putyourlightson/craft-blitz
  • putyourlightson/craft-sherlock

Frontend Tools & Frameworks

CSS

Tailwind 3 (and PostCSS with Vite) are used for the default template style, but they aren't strictly required.

Great care has been taken to minimalize the usage of Tailwind within the core templates. Some class names linger, but they are replaceable.

The Tailwind Container Query plugin is also used quite extensively in the default site theme.

JavaScript

Alpine.js and htmx are used for client-side interactivity. They aren't strictly required, but you will have to roll several of your own components to replace the out-of-the-box versions of: modals, accordions, tabs, search fields, drop-downs, carousels, etc.

The default interactive components were built to be: accessibility, seo, performance, and customization friendly.

Additionallly there are examples of how to implement custom Vue.js components and Greensock JS animations within the Burton templates.

Both Vue and Greensock are included in the frontend package.json file, but like pretty much everything else, they aren't strictly required (unless you want the functionality they provide, then things get a little more strict).

Vite

As mentioned above in the plugin section, Burton comes preconfigured with Vite as the frontend build tool, but it's not a strict requirement and can be swapped out if needed.

While the wireframe layouts provided with Burton are designed to look and function well "out of the box," they are intentionally lightweight and minimal, allowing for easy customization using vanilla CSS, Sass, or alternative styling approaches.

Asset Storage

Burton is configured to utilize Amazon S3 or an S3-compatible CDN for asset storage.

While this provides a sensible default for asset management, it is not a strict requirement, and asset storage can be reconfigured as needed.

Setup & Configuration

Edit the following in craftcms/.env

CDN_URL=https://[YOUR_BUCKET].[YOUR_REGION].digitaloceanspaces.com

CDN_FOLDER=[asset/root/folder]

S3_KEY=[...]

S3_SECRET=[...]

S3_ENDPOINT=https://[YOUR_REGION].digitaloceanspaces.com

S3_BUCKET=[YOUR_BUCKET]

S3_REGION=[YOUR_REGION]

Restart Docker after making changes to the .env file, they use the above fields to configure the asset volumes in the Craft admin interface.

Build & Deployment

Burton includes Atomic Build+Deploy scripts for automated build and deployment processes.

These scripts are designed to work seamlessly with the CI/CD tool Buddy, which offers a free plan for users.

While the use of Buddy is not mandatory, the provided scripts can be easily adapted to accommodate most hosting setups, with separate scripts available for staging and production deployments.

Installation

Use the following command to create and run a new Burton project:

composer create-project simplicateca/burton YOUR_PROJECT_NAME
cd YOUR_PROJECT_NAME
make dev

This process may take several minutes the first time you install a Burton project. Subsequent installations and load times will be faster once Docker images are cached locally.

On success, the console will output information on how to access the site and content administration panel like below:

status-1 | Your Docker Development Environment is Ready!
status-1 | _______________________________________________
status-1 |
status-1 | Frontend Website
status-1 | >> http://localhost:8000
status-1 |
status-1 | Craft CMS Admin
status-1 | >> http://localhost:8000/cms
status-1 | u: craft@example.com
status-1 | p: letmein

Frontend Website

If all has gone well, the site frontend will now be available at: http://localhost:8000.

CMS Access

The Craft CMS admin panel is accessible at http://localhost:8000/cms using the credentials: craft@example.com/letmein.

Configuration

Environment File

`craftcms/.env`

Note: If you make a change to the contents of the .env file you will need to shutdown the docker container and restart it.

Twig Templating

How Do I ... ?

Import / Export Database

Manage Composer Packages

Manage Frontend / Node Packages

Push to Staging / Production

Credits

Developed by simplicate.ca.

Thanks to the team at Pixel & Tonic for their ongoing work on Craft CMS. Thanks also to Andrew Welch for his excellent blog posts and plugins, which have been a source of inspiration and learning for many Craft developers.

simplicateca/burton 适用场景与选型建议

simplicateca/burton 是一款 基于 Twig 开发的 Composer 扩展包,目前已累计 159 次下载、GitHub Stars 达 3, 最近一次更新时间为 2022 年 11 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「cms」 「project」 「docker」 「Craft」 「craftcms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

围绕 simplicateca/burton 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: Twig

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2022-11-16