<commit_before># mastercoin/mastercore-php

This project is a PHP wrapper for [Master Core](https://github.com/mastercoin-MSC/mastercore).

Usage
-----

To use the RPC wrapper you basically need to do the following:
```php
use Mastercoin\MasterCore\MasterCoreRpc;

...

$mastercore = new MasterCoreRpc('http://rpcuser:rpcpass@rpchost:rpcport');
$mastercore->...
```

Please take a look at the [example](examples/simple.php) and the interface [documentation](src/MasterCore/MasterCoreInterface.php).

Additional information are available in the official [Master Core API documentation](https://github.com/mastercoin-MSC/mastercore/blob/62f036c524/doc/apidocumentation.md).

Installation
------------

The recommended way to install this library is by using [composer](http://getcomposer.org/) and [packagist](https://packagist.org/packages/mastercoin/mastercore-php).

If not already done, install [composer](https://getcomposer.org/doc/00-intro.md):
```bash
curl -sS https://getcomposer.org/installer | php
```

To use this project as a **library**, create or edit the file `composer.json` and add:
```json
{
    "require": {
        "mastercoin/mastercore-php": "~0.1"
    }
}
```

And [execute](https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies) within your project dir:
```bash
php composer.phar install
```

To create mastercore-php as a **new project**, execute the following command:
```bash
php composer.phar create-project mastercoin/mastercore-php project_dir
```

Based on your system `php composer.phar` and `composer` might be used synonymously.

Dependencies
------------

For the Bitcoin Core base and RPC connection [nbobtc/bitcoind-php](https://github.com/nbobtc/bitcoind-php) ([packagist](https://packagist.org/packages/nbobtc/bitcoind-php)) is used.<commit_msg>project_dir path in example install removed<commit_after># mastercoin/mastercore-php

This project is a PHP wrapper for [Master Core](https://github.com/mastercoin-MSC/mastercore).

Usage
-----

To use the RPC wrapper you basically need to do the following:
```php
use Mastercoin\MasterCore\MasterCoreRpc;

...

$mastercore = new MasterCoreRpc('http://rpcuser:rpcpass@rpchost:rpcport');
$mastercore->...
```

Please take a look at the [example](examples/simple.php) and the interface [documentation](src/MasterCore/MasterCoreInterface.php).

Additional information are available in the official [Master Core API documentation](https://github.com/mastercoin-MSC/mastercore/blob/62f036c524/doc/apidocumentation.md).

Installation
------------

The recommended way to install this library is by using [composer](http://getcomposer.org/) and [packagist](https://packagist.org/packages/mastercoin/mastercore-php).

If not already done, install [composer](https://getcomposer.org/doc/00-intro.md):
```bash
curl -sS https://getcomposer.org/installer | php
```

To use this project as a **library**, create or edit the file `composer.json` and add:
```json
{
    "require": {
        "mastercoin/mastercore-php": "~0.1"
    }
}
```

And [execute](https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies) within your project dir:
```bash
php composer.phar install
```

To create mastercore-php as a new **project**, execute the following command:
```bash
php composer.phar create-project mastercoin/mastercore-php
```

Based on your system `composer` and `php composer.phar` might be used synonymously.

Dependencies
------------

For the Bitcoin Core base and RPC connection [nbobtc/bitcoind-php](https://github.com/nbobtc/bitcoind-php) ([packagist](https://packagist.org/packages/nbobtc/bitcoind-php)) is used.
{'fraction_non_alphanumeric': 0.14601769911504425, 'fraction_numerical': 0.007743362831858407, 'mean_word_length': 4.556067588325653, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 16, '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': '5464258', 'n_tokens_mistral': 1160, 'n_tokens_neox': 1093, 'n_words': 301}