pras2309/hello-world

这是一个为composer编写的hello world仓库。

0.1.0 2015-03-14 10:26 UTC

This package is auto-updated.

Last update: 2024-09-22 19:11:44 UTC


README

这是一个为PHP composer初学者提供的hello world软件包教程。更多信息请参阅http://rivsen.github.io/post/how-to-publish-package-to-packagist-using-github-and-composer-step-by-step/

用法

$ composer require pras2309/hello-world
$ touch test.php
<?php
require_once "vendor/autoload.php";

$hello = new Rivsen\Demo\Hello();
echo $hello->hello();
$ php test.php

它将打印"Hello World!"然后退出。