This is a hello world package for php composer beginners tutorial. read more from http://rivsen.github.io/post/how-to-publish-package-to-packagist-using-github-and-composer-step-by-step/
$ composer require rivsen/hello-world
$ touch test.php
<?php
require_once "vendor/autoload.php";
$hello = new Rivsen\Demo\Hello();
echo $hello->hello();
$ php test.php
It will print "Hello World!" then exit.