<commit_before>Nami CMS : CoreBundle
========================

Welcome to the NamiCoreBundle repository - a Symfony 2.7 bundle.

**PhpInk\Nami\CoreBundle** is the main bundle of a Nami CMS application.
It contains the dependencies configuration, *Doctrine ORM/ODM* mapping and *FOSRest* controllers to provide an API.

1) Installation
----------------------------------
    
### Getting started
Run the following command to install the bundle :

    composer require phpink/nami-core-bundle
    
To get NAMI working with MongoDB, add the following line to your composer.json :
    
            "doctrine/mongodb-odm-bundle": "3.0.*@dev",
            
Then, add the following line to your AppKernel.php :
            
            new Doctrine\Bundle\MongoDBBundle\DoctrineMongoDBBundle(),


### Generate new RSA keys \[optional\]
Run the following OpenSSL commands to generate RSA keys for JSON Web Token authentication :

    openssl genrsa -out app/var/jwt/private.pem -aes256 4096
    openssl rsa -pubout -in app/var/jwt/private.pem -out app/var/jwt/public.pem

2) API endpoints
--------------------------------<commit_msg>Logo added to readme<commit_after>Nami CMS : CoreBundle
========================

Welcome to the NamiCoreBundle repository - a Symfony 2.7 bundle.

![Nami Logo](https://github.com/phpink/nami-core-bundle/raw/master/Docs/namiLogo.png)

**PhpInk\Nami\CoreBundle** is the main bundle of a Nami CMS application.
It contains the dependencies configuration, *Doctrine ORM/ODM* mapping and *FOSRest* controllers to provide an API.

1) Installation
----------------------------------
    
### Getting started
Run the following command to install the bundle :

    composer require phpink/nami-core-bundle
    
To get NAMI working with MongoDB, add the following line to your composer.json :
    
            "doctrine/mongodb-odm-bundle": "3.0.*@dev",
            
Then, add the following line to your AppKernel.php :
            
            new Doctrine\Bundle\MongoDBBundle\DoctrineMongoDBBundle(),


### Generate new RSA keys \[optional\]
Run the following OpenSSL commands to generate RSA keys for JSON Web Token authentication :

    openssl genrsa -out app/var/jwt/private.pem -aes256 4096
    openssl rsa -pubout -in app/var/jwt/private.pem -out app/var/jwt/public.pem

2) API endpoints
--------------------------------
{'fraction_non_alphanumeric': 0.15273037542662116, 'fraction_numerical': 0.011092150170648464, 'mean_word_length': 2.635658914728682, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4054724', 'n_tokens_mistral': 698, 'n_tokens_neox': 653, 'n_words': 229}