<commit_before>AlterPHP Components
====================

Some components I use in my developments (mostly with Symfony2)


Components list
--------------------

*   AlterPHP\Component\HttpFoundation\RedirectionResponseWithCookie :
Based on Symfony2 components, this class provides a simple RedirectResponse object
with the ability to send cookies to the client.

    This component has following dependencies :
    *   Symfony\Component\HttpFoundation\RedirectResponse
    *   Symfony\Component\HttpFoundation\Cookie


Installation in a Symfony2 project
--------------------

Add following lines in the deps file :

    [alterphp]
        git=http://github.com/alterphp/components.git
        target=alterphp/components

Then run :

    bin/vendors install

Finally, in app/autoload.php, make the following add :

```php

$loader->registerNamespaces(array (
    'Symfony' => array (__DIR__ . '/../vendor/symfony/src', __DIR__ . '/../vendor/bundles'),
    // ...
   ' AlterPHP'   => __DIR__.'/../vendor/alterphp/components/src',
));
```<commit_msg>test + readme<commit_after>AlterPHP Components
====================

Some components I use in my developments (mostly with Symfony2)


Components list
--------------------

*   AlterPHP\Component\HttpFoundation\RedirectionResponseWithCookie :
Based on Symfony2 components, this class provides a simple RedirectResponse object
with the ability to send cookies to the client.

    This component has following dependencies :
    *   Symfony\Component\HttpFoundation\RedirectResponse
    *   Symfony\Component\HttpFoundation\Cookie


Installation in a Symfony2 project
--------------------

Add following lines in the deps file :

    [alterphp]
        git=http://github.com/alterphp/components.git
        target=alterphp/components

Then run :

    bin/vendors install

Finally, in app/autoload.php, make the following add :

```php
<?php

// ...

$loader->registerNamespaces(array (
    'Symfony' => array (__DIR__ . '/../vendor/symfony/src', __DIR__ . '/../vendor/bundles'),
    // ...
   ' AlterPHP'   => __DIR__.'/../vendor/alterphp/components/src',
));
```
{'fraction_non_alphanumeric': 0.1555977229601518, 'fraction_numerical': 0.0028462998102466793, 'mean_word_length': 3.0557692307692306, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '7402850', 'n_tokens_mistral': 595, 'n_tokens_neox': 574, 'n_words': 158}