rivsen/hello-world

this is a hello world repo for composer.

0.1.0 2015-03-14 10:26 UTC

This package is auto-updated.

Last update: 2024-04-17 08:24:49 UTC


README

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/

Usage

$ 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.