Attempt to build on PHP 7.4 and 8.0

8.0 is going to fail at `composer install', however 7.4 might make it
all the way to the end. Once 7.4 is out, this build can be marked as
Fix write() to not assume appending is correct

This commit rewrites the `write()' function to check if it's at EOF
before appending. Now the function is able to prepend if at SOF, and
can also overwrite data in the middle of a stream.
Correct path to clover for Coveralls

It seems php-coveralls will read `build/logs/clover.xml' by default
Use travis-ci.com instead of travis-ci.org
Initial commit