MidnightCMS is a lightweight CMS created with the framework Symfony
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Configuration
Controller
DependencyInjection
Entity
Event
Form/Type
Repository
Resources
Service
Tests/Controller
Twig/Extension
Type
Util
.gitattributes
CODE_OF_CONDUCT.md
CONTRIBUTING.md
ISSUE_TEMPLATE.md
LICENSE
README.md
VFouCmsBundle.php
composer.json

README.md

SensioLabsInsight

Installation

install bundle VFouCmsBundle via Composer :

composer require midnightcms/cms-bundle

in app/AppKernel.php :

$bundles = [
    // ...
    new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
    new VFou\CmsBundle\VFouCmsBundle(),
]

in app/config/config.yml :

imports:
    # ...
    - { resource: "@VFouCmsBundle/Resources/config/config.yml" }

don't forget to activate translator by uncommenting this line :

framework:
    translator: { fallbacks: ['%locale%'] }

app/config/routing.yml :

vfou_cms_admin:
    resource: "@VFouCmsBundle/Resources/config/admin.yml"
    prefix:   /midnightCMS
# always insert this at last in your file :
vfou_cms_main:
    resource: "@VFouCmsBundle/Controller/PageController.php"
    type:     annotation
    prefix:   /

and app/config/security.yaml

security:
    providers:
        in_memory:
            memory:
                users:
                    admin:
                        password: "your_password"
                        roles: 'ROLE_ADMIN'
    encoders:
        Symfony\Component\Security\Core\User\User: plaintext
    firewalls:
        midnightCMS:
            pattern: ^/midnightCMS
            provider: in_memory
            http_basic: ~
        main:
            # ...

After that, run thoses commands :

php bin/console ckeditor:install
php bin/console assets:install --symlink --relative

Don't forget to configure the database logs in app/config/parameters.yml and create the database and schema :

php bin/console doctrine:database:create
php bin/console doctrine:schema:create

Clear the cache :

php bin/console cache:clear --env=prod

Your platform is now ready. You just have to go to your backend (you just need to access to the route /midnightCMS). If the backend is displayed, it means the installation is finished with success !

Recognized extensions

  • Blog Extension : includes blogging elements. Contains useful examples for developping extensions.
  • Login Extension : includes frontend user management, register and login forms

Need any help ?

If you want any help for setting up the CMS, have any question or even want help to develop on the project or for an extension, you can contact the project owner on Twitter @VincentFoulon80.

License

This bundle is under the MIT license. See the complete license in the bundle

Credits

This bundle uses some other bundles and libraries such as :

  • CKeditor Bundle
  • Ace Editor
  • Flatpickr
  • JSTree
  • Bootstrap (Theme "Superhero" from bootswatch)
  • JQuery

Icons credit :