rivsen / hello-world
这是一个为composer编写的hello world仓库。
0.1.0
2015-03-14 10:26 UTC
This package is auto-updated.
Last update: 2024-09-17 09:05:51 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 rivsen/hello-world $ touch test.php
<?php require_once "vendor/autoload.php"; $hello = new Rivsen\Demo\Hello(); echo $hello->hello();
$ php test.php
它将打印"Hello World!"然后退出。