Git Product home page Git Product logo

servergrovekbbundle's Introduction

ServerGroveKbBundle

This bundle allows to easily create a knowledge base application with a few simple steps.

Installation

You need to add the bundle to your composer file. You can easily do so by running the following command:

$ composer require servergrove/kb-bundle:dev-master

Add the bundle to your project

There is only one requirement, to add the Bundle instance to your Kernel

<?php
// app/AppKernel.php

public function registerBundles() {
    return array(
        // …
        new ServerGrove\KbBundle\ServerGroveKbBundle(),
        // ...
    );
}

Configuration

Configure this bundle

Add the locales you desire to use in your application.

# app/config/config.yml

server_grove_kb:
    locales:        [en, es, pt]
    default_locale: en
    article:
        enable_related_urls: false
        front_page_category: Homepage
        front_page_keyword:  homepage
        top_keyword:         feature
    editor_type: markdown
    mailer:
        from:
            email: [email protected]
            name:  ServerGrove KnowledgeBase System

Configure the SecurityBundle

Users

This Bundle provides with a document called User and a service for the user provider, which you can use to manage the access to the admin area. The path to this document is Document/User.php

To complete the user configuration, you need to add the encoder and provider for the mentioned User document.

Encoder
# app/config/security.yml
encoders:
        ServerGrove\KbBundle\Document\User: sha512

Note that you can use the encoder strategy that you like the most.

Provider
# app/config/security.yml
providers:
        user_db:
            id: server_grove_kb.security.user.provider

Remember, these are encoder and provider are available in the bundle, but feel free to use your own implementation.

Test Data

In order to use some test data, you have to run the following commands

$ php app/console doctrine:phpcr:workspace:create sgkb
$ php app/console doctrine:phpcr:register-system-node-types
$ php app/console doctrine:phpcr:fixtures:load

Application

This section assumes that you have your application installed under kb.local

Frontend

The frontend area is located in the main route /. So you can start navigating the application by opening the following address in your web browser: http://kb.local/

Backend

The backend is located under /admin, so you will have to go to http://kb.local/admin. This is a secure area, so you will have to login with valid credentials. If you are using the test data, then you can access it with admin:abc123

servergrovekbbundle's People

Contributors

raulfraile avatar iambrosi avatar pgodel avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.