<commit_before># Basic NCIP php library and Laravel package

[![Build Status](https://travis-ci.org/danmichaelo/ncip.png?branch=master)](https://travis-ci.org/danmichaelo/ncip)
[![Coverage Status](https://coveralls.io/repos/danmichaelo/ncip/badge.png?branch=master)](https://coveralls.io/r/danmichaelo/ncip?branch=master)

Currently implementing only a small subset of the NCIP services.

## Installation:

Add the package to the `require` attribute of your `composer.json` file.

```json
{
    "require": {
        "danmichaelo/ncip": "dev-master"
    },
}
``` 

and do `composer update`.

### Additional steps to install as a Laravel 4 package

1. Add `'Danmichaelo\NcipServiceProvider',` to the list of service providers in `app/config/app.php`
2. Add `'NcipClient' => 'Danmichaelo\Ncip\NcipClient',` to the list of class aliases in `app/config/app.php`
3. In console run `php artisan config:publish danmichaelo/ncip` to create the config file `app/config/packages/danmichael/ncip/config.php`

## Standalone use without Laravel:

	require_once('vendor/autoload.php');
	use Danmichaelo\Ncip\NcipClient;

	$options = array('url' => 'http://...', 'agency_id' => '...');
	$ncip = new NcipClient($options);


## Example:

	$ncip = new NcipClient();
	$response = $ncip->lookupUser($user_id);
	if ($response['exists']) {
		echo 'Hello ' . $response->firstName . ' ' . $response->lastName;
	else:
		echo 'User not found';<commit_msg>Add a Bitdeli badge to README<commit_after># Basic NCIP php library and Laravel package

[![Build Status](https://travis-ci.org/danmichaelo/ncip.png?branch=master)](https://travis-ci.org/danmichaelo/ncip)
[![Coverage Status](https://coveralls.io/repos/danmichaelo/ncip/badge.png?branch=master)](https://coveralls.io/r/danmichaelo/ncip?branch=master)

Currently implementing only a small subset of the NCIP services.

## Installation:

Add the package to the `require` attribute of your `composer.json` file.

```json
{
    "require": {
        "danmichaelo/ncip": "dev-master"
    },
}
``` 

and do `composer update`.

### Additional steps to install as a Laravel 4 package

1. Add `'Danmichaelo\NcipServiceProvider',` to the list of service providers in `app/config/app.php`
2. Add `'NcipClient' => 'Danmichaelo\Ncip\NcipClient',` to the list of class aliases in `app/config/app.php`
3. In console run `php artisan config:publish danmichaelo/ncip` to create the config file `app/config/packages/danmichael/ncip/config.php`

## Standalone use without Laravel:

	require_once('vendor/autoload.php');
	use Danmichaelo\Ncip\NcipClient;

	$options = array('url' => 'http://...', 'agency_id' => '...');
	$ncip = new NcipClient($options);


## Example:

	$ncip = new NcipClient();
	$response = $ncip->lookupUser($user_id);
	if ($response['exists']) {
		echo 'Hello ' . $response->firstName . ' ' . $response->lastName;
	else:
		echo 'User not found';


[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/danmichaelo/ncip/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

{'fraction_non_alphanumeric': 0.15956029313790807, 'fraction_numerical': 0.0043304463690872754, 'mean_word_length': 4.613084112149533, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 10, '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': '6010480', 'n_tokens_mistral': 1081, 'n_tokens_neox': 1046, 'n_words': 246}