opifer / cms-bundle
Opifer CMS
Installs: 277
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 4
Type:symfony-bundle
Requires
- php: >=5.4
- aws/aws-sdk-php: 2.5.*
- braincrafted/bootstrap-bundle: 2.1.0
- doctrine/doctrine-bundle: ~1.2
- doctrine/doctrine-migrations-bundle: ~1.0
- doctrine/migrations: ~1.0@dev
- doctrine/orm: ~2.2,>=2.2.3
- egeloen/google-map: ~1.4.1
- egeloen/google-map-bundle: ~2.2.1
- friendsofsymfony/advanced-encoder-bundle: ~1.0
- friendsofsymfony/elastica-bundle: ~3.0.5
- friendsofsymfony/jsrouting-bundle: ~1.5
- friendsofsymfony/user-bundle: ~2.0@dev
- gedmo/doctrine-extensions: ~2.3
- google/recaptcha: ~1.1
- hwi/oauth-bundle: ~0.3
- incenteev/composer-parameter-handler: ~2.0
- infinite-networks/form-bundle: ~1.0
- knplabs/knp-markdown-bundle: ~1.3
- knplabs/knp-menu-bundle: ~2.0
- mtdowling/cron-expression: 1.0.*
- opifer/content-bundle: ~0.1
- opifer/crud-bundle: ~0.1
- opifer/eav-bundle: ~0.2
- opifer/form-bundle: ~0.1
- opifer/media-bundle: ~0.1
- opifer/redirect-bundle: ~0.1.4
- opifer/rulesengine: ~0.1
- opifer/rulesengine-bundle: ~0.1
- pagerfanta/pagerfanta: ~1.0.3
- presta/sitemap-bundle: ~1.3
- sensio/distribution-bundle: ~3.0
- sensio/framework-extra-bundle: ~3.0
- symfony-cmf/routing-bundle: ~1.2
- symfony/assetic-bundle: ~2.3
- symfony/monolog-bundle: ~2.7
- symfony/swiftmailer-bundle: ~2.3
- symfony/symfony: ~2.7
- twig/extensions: ~1.2
- willdurand/geocoder: ~2.8
- willdurand/js-translation-bundle: ~2.2
Requires (Dev)
- doctrine/doctrine-fixtures-bundle: @dev
- fzaninotto/faker: ~1.4
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.2
- sensio/generator-bundle: ~2.3
- symfony/phpunit-bridge: ~2.7
This package is auto-updated.
Last update: 2020-08-28 13:59:23 UTC
README
Opifer CmsBundle
Installation
Add OpiferCmsBundle to your composer.json:
$ composer require opifer/cms-bundle "@dev"
To avoid enabling all required bundles, extend Opifer\CmsBundle\Kernel\Kernel
in app/AppKernel.php
:
use Opifer\CmsBundle\Kernel\Kernel; class AppKernel extends Kernel { /** * Register bundles * * @return array */ public function registerBundles() { $bundles = [ // Add the bundles for your own application here new AppBundle\AppBundle(), ]; // The parent bundles array must be passed as the first parameter, cause // our CmsBundle holds all required config. return array_merge(parent::registerBundles(), $bundles); } }
Add the assets installer to your composers's post-install & post-update commands, before the installAssets
command
of the DistributionBundle
:
... "scripts": { "post-install-cmd": [ ... "Opifer\\CmsBundle\\Composer\\ScriptHandler::installAssets", "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", ], "post-update-cmd": [ ... "Opifer\\CmsBundle\\Composer\\ScriptHandler::installAssets", "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", ] }, ...
To avoid defining all configuration yourself, import the config files from the CmsBundle:
# app/config/config.yml imports: - { resource: parameters.yml } - { resource: '@OpiferCmsBundle/Resources/config/security.yml' } - { resource: '@OpiferCmsBundle/Resources/config/config.yml' } # app/config/config_dev/yml imports: - { resource: config.yml } - { resource: '@OpiferCmsBundle/Resources/config/config_dev.yml' } # app/config/config_prod.yml imports: - { resource: config.yml } - { resource: '@OpiferCmsBundle/Resources/config/config_prod.yml' }
Same goes for the routing:
# app/config/routing.yml opifer_cms: resource: '@OpiferCmsBundle/Resources/config/routing/routing.yml'
Update your database schema:
$ php app/console doctrine:schema:create
And create a user account:
$ php app/console fos:user:create --super-admin
Now log into the admin panel at http://localhost/app_dev.php/admin
.