<commit_before>CsnCms
======
Zend Framework 2 Module

### What is CsnCms? ###
CsnCms is a Content Management System module based on `DoctrineORMModule`, `CsnUser` authentication and `CsnAuthorization`.

### What exactly does CsnCms do? ###
CsnCms has been created with educational purposes to demonstrate how CMS can be done. It is fully functional, working in perfect harmony with *Doctrine* and the other Csn modules.

Installation
------------
1. Installation via composer is supported, simply run (make sure you've set `"minimum-stability": "dev"` in your *composer.json* file):
`php composer.phar require coolcsn/csn-cms:dev-master`

2. Configure referenced modules ([CsnUser](https://github.com/coolcsn/CsnUser) and [CsnAuthorization](https://github.com/coolcsn/CsnAuthorization)) following their instructions.

3. Add 'CsnCms' to your application configuration in `config/application.config.php`. An example application configuration could look like the following:

```
'modules' => array(
    'Application',
    'DoctrineModule',
    'DoctrineORMModule',
    'CsnUser',
    'CsnAuthorization',
    'CsnCms'
)
```

4. Run `./vendor/bin/doctrine-module orm:schema-tool:update` to update the database schema (**Note:** You may need to force the update by adding ` --force` to the command). Then import the sample data located in `./vendor/coolcsn/CsnCms/data/SampleData.sql`. You can easily do that with *PhpMyAdmin* for instance.

- **Important:** CsnCms requires setting a connection for Doctrine (if you haven't done this for some of your other modules). You can paste the following snippet in `config/autoload/doctrine.local.php`, replacing the tokens with your actual connection parameters:

```
return array(
  'doctrine' => array(
    'connection' => array(
      'orm_default' => array(
        'driverClass' =>'Doctrine\DBAL\Driver\PDOMySql\Driver',
        'params' => array(
          'host'     => 'localhost',
          'port'     => '3306',
          'user'     => 'username',
          'password' => 'password',
          'dbname'   => 'database',
)))));
```

>### We are done, uh? ###
Navigate to ***[hostname]/csn-cms***. Enjoy :)<commit_msg>Readme updated.<commit_after>CsnCms
======
Zend Framework 2 Module

### What is CsnCms? ###
CsnCms is a Content Management System module based on `DoctrineORMModule`, `CsnUser` authentication and `CsnAuthorization`.

### What exactly does CsnCms do? ###
CsnCms has been created with educational purposes to demonstrate how CMS can be done. It is fully functional, working in perfect harmony with *Doctrine* and the other Csn modules.

Installation
------------
1. Installation via composer is supported, simply run (make sure you've set `"minimum-stability": "dev"` in your *composer.json* file):
`php composer.phar require coolcsn/csn-cms:dev-master`

2. Configure referenced modules ([CsnUser](https://github.com/coolcsn/CsnUser) and [CsnAuthorization](https://github.com/coolcsn/CsnAuthorization)) following their instructions.

3. Add 'CsnCms' to your application configuration in `config/application.config.php`. An example application configuration could look like the following:

```
'modules' => array(
    'Application',
    'DoctrineModule',
    'DoctrineORMModule',
    'CsnUser',
    'CsnAuthorization',
    'CsnCms'
)
```

4. Run `./vendor/bin/doctrine-module orm:schema-tool:update` to update the database schema (**Note:** You may need to force the update by adding ` --force` to the command). Then import the sample data located in `./vendor/coolcsn/CsnCms/data/SampleData.sql`. You can easily do that with *PhpMyAdmin* for instance.

>### We are done, uh? ###
Navigate to ***[hostname]/csn-cms***. Enjoy :)
{'fraction_non_alphanumeric': 0.13127203688635747, 'fraction_numerical': 0.003797125033902902, 'mean_word_length': 4.158041958041958, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 4, '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': '1577408', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1083, 'n_words': 384}