orkestra-cms/setup-bundle
Composer 安装命令:
composer require orkestra-cms/setup-bundle
包简介
Bundle allowing easy setup of new Symfony projects
README 文档
README
Prerequisites
Make sure you install Node.js and also the Yarn package manager.
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require --dev orkestra/setup-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php file of your project:
<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { // ... if (in_array($this->getEnvironment(), array('dev'), true)) { // ... $bundles[] = new Orkestra\Bundles\SetupBundle\OrkestraSetupBundle(); } return $bundles; } // ... }
Available commands
Nanobox
$ php bin/console setup:nanobox
Creates a Nanobox environment for your project. Make sure to add
a Nanobox DNS entry as well as an evar SYMFONY_ENV. Also, enable the bundle
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle in your app/AppKernel.php.
Adjust your parameters.yml file to contain the following values:
database_host: '%env(DATA_DB_HOST)%' database_port: null database_name: gonano database_user: '%env(DATA_DB_USER)%' database_password: '%env(DATA_DB_PASS)%'
CKEditor
$ php bin/console setup:ckeditor
Installs the CKEditor bundle and a default toolbar configuration. This will also
adjust the boxfile.yml to ensure the CKEditor assets get installed on deployment.
Make sure to import merges/ckeditor.yml in app/config/config.yml and enable the
bundle Ivory\CKEditorBundle\IvoryCKEditorBundle in your app/AppKernel.php.
After that install the CKEditor assets for your development environment:
$ php bin/console ckeditor:install web/bundles/ivoryckeditor
MailHog
$ php bin/console setup:mailhog
Installs MailHog with required configuration
files and adds a reverse proxy on your Nanobox environment so MailHog is accessible at
the URL /mailbox (except for production).
Make sure to remove the default swiftmailer options from config.yml and
config_test.yml and import merges/mailhog.yml for every environment you wish.
Import merges/mail_prod.yml into your config_prod.yml. Also add the two Nanobox
evars MAIL_USER and MAIL_PASS so online environments require authentication to access
the mailbox.
Memcached
Configures Symfony to use memcached for session handling and Doctrine caching.
Make sure to import merges/memcached.yml for every environment you wish to use it.
$ php bin/console setup:memcached
Namespaced sessions
$ php bin/console setup:session
Configures Symfony to use Namespaced sessions.
Make sure to import merges/session.yml for every environment you wish to use it.
Webpack/Encore
$ php bin/console setup:webpack --bootstrap 3 # Includes Bootstrap v3 $ php bin/console setup:webpack --bootstrap 4 # Includes Bootstrap v4
Installs Webpack/Encore and a default Webpack configuration. This also includes a default set of stylesheets/scripts for Bootstrap and Font-Awesome.
Make sure to import merges/webpack.yml in app/config/config.yml.
During development you may run node_modules/.bin/encore dev --watch to have
real-time compilation of your assets.
orkestra-cms/setup-bundle 适用场景与选型建议
orkestra-cms/setup-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 11 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 orkestra-cms/setup-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 orkestra-cms/setup-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-08