承接 jack009/coming-soon-symfony-bundle 相关项目开发

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

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

jack009/coming-soon-symfony-bundle

Composer 安装命令:

composer require jack009/coming-soon-symfony-bundle

包简介

A Symfony bundle to enable or disable a Coming Soon page for your application.

README 文档

README

A Symfony bundle that lets you enable or disable a Coming Soon page for your application with a single configuration flag.

Features

  • Toggle the coming soon page on/off via a single enabled flag
  • Configurable HTTP status code (default: 503 Service Unavailable)
  • Customisable Twig template
  • IP whitelist – allow specific IP addresses to bypass the coming soon page
  • Excluded routes – allow specific named routes to pass through
  • Excluded paths – allow specific URL path prefixes to pass through (e.g. /admin)

Installation

composer require jack009/coming-soon-symfony-bundle

Register the bundle in config/bundles.php:

return [
    // ...
    Jack009\ComingSoonBundle\ComingSoonBundle::class => ['all' => true],
];

Configuration

Create config/packages/coming_soon.yaml:

coming_soon:
    enabled: true                                      # set to false to disable
    template: '@ComingSoon/coming_soon.html.twig'      # optional, override the template
    status_code: 503                                   # optional, default 503
    whitelisted_ips:                                   # optional
        - 127.0.0.1
        - 192.168.1.100
    excluded_routes:                                   # optional
        - app_health_check
    excluded_paths:                                    # optional
        - /admin

Options

Option Type Default Description
enabled bool false Set to true to show the coming soon page
template string @ComingSoon/coming_soon.html.twig Twig template to render
status_code int 503 HTTP status code of the response
whitelisted_ips string[] [] IPs that bypass the coming soon page
excluded_routes string[] [] Named routes that bypass the coming soon page
excluded_paths string[] [] URL path prefixes that bypass the coming soon page

Custom Template

Override the built-in template by pointing template at your own Twig file:

coming_soon:
    enabled: true
    template: 'coming_soon/index.html.twig'

The template receives one variable:

Variable Type Description
status_code int The configured HTTP status code

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固