SampleModule/vendor/rivsen/hello-world
2018-09-23 08:04:03 -07:00
..
src Updated 2018-09-23 08:04:03 -07:00
.gitignore Updated 2018-09-23 08:04:03 -07:00
composer.json Updated 2018-09-23 08:04:03 -07:00
readme.md Updated 2018-09-23 08:04:03 -07:00
test.php Updated 2018-09-23 08:04:03 -07:00

Hello World Package for PHP Composer

This is a hello world package for php composer beginners tutorial.

Usage

$ composer require rivsen/hello-world dev-master
$ 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.