<commit_before>twitterpostreader
=================

This is a simple class made to be compatible with the new twitter rest API (1.1). Using it you can get
the lastest twitter statuses of a user in a very simple way.

### Example

```php
try {
	$twitterPostReader = new \TwitterPostReader\TwitterPostReader();
	$twitterPostReader->consumer = new \TwitterPostReader\Consumer();
	$twitterPostReader->consumer->setKey('CONSUMER_KEY');
	$twitterPostReader->consumer->setSecret('CONSUMER_SECRET');

	foreach($twitterPostReader->getPosts('unimake', 3) as $post){
		echo $post->text . '<br/>';
	}
}
catch(\TwitterPostReader\TwitterPostReaderException $e){
	echo "Ooops, do I have to report something at https://github.com/hamboldt/twitterpostreader/issues ?";
}
```<commit_msg>Update in the README file<commit_after>twitterpostreader
=================

This is a simple class made to be compatible with the new twitter rest API (1.1). Using it you can get
the lastest twitter statuses of a user in a very simple way.

### Example

```php
try {

	// Consumer configuration
	$twitterConsumer = new \TwitterPostReader\Consumer();
	$twitterConsumer->setKey('CONSUMER_KEY');
	$twitterConsumer->setSecret('CONSUMER_SECRET');

	// Get the 3 lastest posts from the user unimake
	$twitterPostReader = new \TwitterPostReader\TwitterPostReader();
	$userPosts = $twitterPostReader->getPosts('unimake', 3);

	// Foreach them and show every property
	foreach($userPosts as $post){
		echo $post->getAuthor()->getScreenName() . ' : ' . $post->getText();
	}

catch(\TwitterPostReader\TwitterPostReaderException $e){
	echo "Ooops, do I have to report something at https://github.com/hamboldt/twitterpostreader/issues ?";
}
```
{'fraction_non_alphanumeric': 0.14176470588235293, 'fraction_numerical': 0.00411764705882353, 'mean_word_length': 5.418867924528302, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 17, 'https://': 2, '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': '5116063', 'n_tokens_mistral': 545, 'n_tokens_neox': 500, 'n_words': 151}