Refactored the examples slightly
Added composer.json, for submission to <https://packagist.org/packages/submit>