2017 © Pedro Peláez
 

library pie7o

Simple PSR7 Tweeter

image

jimlind/pie7o

Simple PSR7 Tweeter

  • Monday, November 16, 2015
  • by jimlind
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PIE7O

The PSR7 Tweeter, (*1)

Features

  • You can tweet
  • You can tweet with a picture
  • Nothing else

Badges

Build Status Coverage Status Code Climate StyleCI Latest Stable Version Total Downloads License, (*2)

Documentation

Configuration may seem a little more difficult than it needs to be, but it keeps things flexible. You'll only ever have to configure it once. I find that learning by example is the best way so here are some examples:, (*3)

The library will quietly succeed if there are no problems communicating with Twitter, but if there is a problem it throws a Pie7oException that extends the RuntimeException class., (*4)

Why Does This Exist?

I needed a Twitter library that was modern, maintainable, and easy to use. After PSR-7 and Guzzle 6 were released it seemed like a good enough excuse to write my own and use the new interfaces., (*5)

I've never had a reason to do anything other than post to Twitter via robot so only supporting that made my job a lot easier., (*6)

Why Name it Pie7o?

As a post only Twitter client this is basically a Tweeter. Some tweeter speakers are just a piezo. There are already a good number of applications and libraries called "Piezo." Replacing the Z with a 7 means you get a unique name and a reference to the PSR-7 usage., (*7)

How do you pronounce it?

If there is ever a reason that two humans might want to mention this library via voice I'd be shocked., (*8)

Anything else?

I don't base64 encode the images before uploading them. A lot of other libraries I looked at were doing that. It's not hard to send the binaries, you just have to read the Twitter documentation., (*9)

Code Quality Metrics

100% Code Coverage*

composer install
vendor/bin/phpunit --coverage-text

100% Code Sniffed

composer install
bash sniff.sh

*Except the optional Silex Service Provider, (*10)

The Versions