sulu / sulu-demo
Sulu 示例网站
Requires
- php: ^8.2
- ext-ctype: *
- ext-iconv: *
- doctrine/doctrine-bundle: ^2.5
- doctrine/doctrine-fixtures-bundle: ^3.4
- elasticsearch/elasticsearch: 7.17.*
- friendsofsymfony/http-cache-bundle: ^2.17
- handcraftedinthealps/zendsearch: ^2.1
- jackalope/jackalope-doctrine-dbal: ^1.10 || ^2.0
- jackalope/jackalope-jackrabbit: ^2.0
- league/flysystem: ^1.1
- league/flysystem-aws-s3-v3: ^1.0
- phpcr/phpcr-migrations-bundle: ^1.5
- phpcr/phpcr-shell: ^1.5
- predis/predis: ^1.1
- scheb/2fa-bundle: ^7.2
- scheb/2fa-email: ^7.2
- scheb/2fa-trusted-device: ^7.2
- sentry/sentry-symfony: ^4.2
- stof/doctrine-extensions-bundle: ^1.8
- sulu/article-bundle: 2.6.*
- sulu/automation-bundle: ^2.1
- sulu/redirect-bundle: ^2.1.2
- sulu/sulu: ~2.6.3
- sulu/web-twig: ^2.4
- symfony/config: ^6.4
- symfony/dotenv: ^6.4
- symfony/flex: ^1.17 || ^2.0
- symfony/framework-bundle: ^6.4
- symfony/mailer: ^6.4
- symfony/monolog-bridge: ^6.4
- symfony/monolog-bundle: ^3.4
- symfony/runtime: ^6.4
- symfony/security-bundle: ^6.4
- symfony/twig-bundle: ^6.4
- symfony/web-link: ^6.4
- symfony/webpack-encore-bundle: ^1.16
Requires (Dev)
- jangregor/phpstan-prophecy: ^1.0
- php-cs-fixer/shim: ^3.59
- phpspec/prophecy-phpunit: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.4
- phpstan/phpstan-doctrine: ^1.2
- phpstan/phpstan-phpunit: ^1.0
- phpstan/phpstan-symfony: ^1.1
- phpstan/phpstan-webmozart-assert: ^1.0
- phpunit/phpunit: ^9.5
- rector/rector: ^1.0
- sulu/sulu-rector: ^1.0
- symfony/browser-kit: ^6.4
- symfony/css-selector: ^6.4
- symfony/debug-bundle: ^6.4
- symfony/error-handler: ^6.4
- symfony/phpunit-bridge: ^6.4
- symfony/thanks: ^1.2
- symfony/web-profiler-bundle: ^6.4
- thecodingmachine/phpstan-strict-rules: ^1.0
Conflicts
Replaces
- paragonie/random_compat: 2.*
- symfony/polyfill-ctype: *
- symfony/polyfill-iconv: *
- symfony/polyfill-php56: *
- symfony/polyfill-php70: *
- symfony/polyfill-php71: *
- symfony/polyfill-php72: *
- symfony/polyfill-php73: *
- symfony/polyfill-php74: *
- symfony/polyfill-php80: *
- symfony/polyfill-php81: *
- symfony/polyfill-php82: *
- dev-master
- dev-example/custom-icon-font
- dev-example/webspace-setting-entity
- dev-example/settings-entity
- dev-example/franken-php
- dev-example/custom-entity-route
- dev-example/custom-entity-selection
- dev-example/custom-entity
- dev-example/add-entity-tab
- dev-example/custom-list-item-action
- dev-example/custom-form-toolbar-action
- dev-example/custom-list-toolbar-action
- dev-example/custom-field-transformer
- dev-example/custom-content-type
- dev-example/custom-view
- dev-example/configure-ckeditor
- dev-example/custom-entity-trash
- dev-example/change-admin-style
- dev-example/album-domain-events
- dev-example/modify-entity-list-form
- dev-example/extend-entity
- dev-example/modify-list-form
- dev-example/block-settings
- dev-example/extend-excerpt
- dev-enhancement/composer-update
- dev-fastlane/header
- dev-feature/vips
- dev-feature/navbar
- dev-feature/footer
- dev-deploy/ci-setup
- dev-bugfix/ci-setup
- dev-release/1.6
This package is auto-updated.
Last update: 2024-09-02 20:16:15 UTC
README
这是官方的 Sulu 示例。它被创建来展示使用 Sulu 构建的应用程序的简单实现,并解释了基本步骤。
此项目也在这里运行: https://sulu.rocks
有关 Sulu 的信息,请查看我们的首页: http://sulu.io/
我们的文档可在以下位置找到: http://docs.sulu.io/
使用的扩展
SuluArticleBundle
SuluArticleBundle 为 Sulu 添加了管理文章的支持。文章可以通过具有自己的 URL 的管理列表以多种方式使用来管理非结构化数据。页面中可以使用的几乎所有功能都可以在文章中使用,例如模板、版本控制、草稿、发布和自动化。
SuluAutomationBundle
SuluAutomationBundle 提供了一种管理 Sulu-Admin 中的实体未来任务的方式。例如,将页面的发布计划到未来的特定日期和时间。
要启用自动化任务,请手动在终端或 crontab 中使用 task:run
命令。此任务执行挂起的自动化任务(请参阅 SuluAutomationBundle 安装文档)。
SuluWebTwig 和 SuluWebJS
一组有用的 twig 扩展和一个小型 js 组件管理库。
要求
- PHP 8.0
- json 扩展
- xml 扩展
- simplexml 扩展
- gd 或 imagick 扩展(用于图像转换)
- MySQL 或 PostgreSQL 服务器
- Elasticsearch 7
- Composer
- 如果您想运行 npm 任务,则需要 NPM
安装
git clone git@github.com:sulu/sulu-demo.git
cd sulu-demo
composer install
配置所需服务
此示例需要运行中的 MySQL 和 ElasticSearch 实例。
在 .env.local
中配置您的 DATABASE_URL
和 ELASTICSEARCH_HOST
,请参阅 .env
作为参考。
如果您不想自己安装服务,可以使用提供的 docker-compose.yml 在自己的容器中启动这些服务
docker-compose up
安装测试用例
通过运行以下命令安装示例及其所有测试用例:
bin/console sulu:build dev
用法
现在您可以尝试我们的示例,无需配置虚拟主机。只需使用内置的 Web 服务器即可。
php -S 127.0.0.1:8000 -t public config/router.php
然后您可以通过 http://127.0.0.1:8000/admin 访问管理界面。默认用户名和密码是“admin”。
Web 前端可在 http://127.0.0.1:8000 下找到。
测试
composer bootstrap-test-environment
composer lint
composer test
有疑问吗?我们这里有答案!
我们有一个 #Slack 频道,您可以直接与策略师、开发人员和设计师交谈。