<commit_before># webham/drupalrest

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-build]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]

This is a drupal rest component that currently works with drupal 7 instance eqiped with the services module. You should first setup
the drupal application and then with the help of this package you should be able to access the data via the user name and the password
of a created user.

## Install

Via Composer

``` bash
$ composer require webham/drupalrest
```

## Usage

``` php


$request = new DrupalRest('http://yoursite.com/', '/rest', 'user', 'pass', 0);

print_r($request);


/**
 * Login.
 */
$request->login();
print_r($request);<commit_msg>Build icon<commit_after># webham/drupalrest

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-build]][link-build]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]

This is a drupal rest component that currently works with drupal 7 instance eqiped with the services module. You should first setup
the drupal application and then with the help of this package you should be able to access the data via the user name and the password
of a created user.

## Install

Via Composer

``` bash
$ composer require webham/drupalrest
```

## Usage

``` php


$request = new DrupalRest('http://yoursite.com/', '/rest', 'user', 'pass', 0);

print_r($request);


/**
 * Login.
 */
$request->login();
print_r($request);
{'fraction_non_alphanumeric': 0.14855875831485588, 'fraction_numerical': 0.0022172949002217295, 'mean_word_length': 5.4928057553956835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '31630', 'n_tokens_mistral': 595, 'n_tokens_neox': 571, 'n_words': 176}