<commit_before>samba
=====
[![Build Status](https://secure.travis-ci.org/crystalservice/samba.png?branch=master)](http://travis-ci.org/crystalservice/samba)
[![Coverage Status](https://coveralls.io/repos/crystalservice/samba/badge.png)](https://coveralls.io/r/crystalservice/samba)
[![Code Climate](https://codeclimate.com/github/crystalservice/samba.png)](https://codeclimate.com/github/crystalservice/samba)

Samba PHP stream wrapper<commit_msg>Improved README<commit_after>Samba PHP stream wrapper
=====
[![Build Status](https://secure.travis-ci.org/crystalservice/samba.png?branch=master)](http://travis-ci.org/crystalservice/samba)
[![Coverage Status](https://coveralls.io/repos/crystalservice/samba/badge.png)](https://coveralls.io/r/crystalservice/samba)
[![Code Climate](https://codeclimate.com/github/crystalservice/samba.png)](https://codeclimate.com/github/crystalservice/samba)

Fork of [SMB4PHP](https://code.google.com/p/smbwebclient/)
 
Requirements
------

**smbclient** should be installed (use `sudo apt-get install smbclient` on ubuntu)  

Installation
-----

Add following to your _composer.json_ file:

```json
{
    "require": {
        "crystalservice/samba": "dev-master"
    },
}
```

Usage
-----

Reqister smb stream wrapper shortcut method:
```php
\Samba\SambaStreamWrapper::register();
```

You can check is wrapper is already registered usign this call:
```php
\Samba\SambaStreamWrapper::is_registered();
```

{'fraction_non_alphanumeric': 0.1780250347705146, 'fraction_numerical': 0.0006954102920723226, 'mean_word_length': 5.424107142857143, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 11, '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': '5023695', 'n_tokens_mistral': 522, 'n_tokens_neox': 485, 'n_words': 69}