mirror of
https://gh.wpcy.net/https://github.com/freescout-help-desk/SampleModule.git
synced 2026-07-18 09:50:59 +08:00
24 lines
381 B
Markdown
24 lines
381 B
Markdown
# Hello World Package for PHP Composer #
|
|
|
|
This is a hello world package for php composer beginners tutorial.
|
|
|
|
## Usage ##
|
|
|
|
```bash
|
|
$ composer require rivsen/hello-world dev-master
|
|
$ touch test.php
|
|
```
|
|
|
|
```php
|
|
<?php
|
|
require_once "vendor/autoload.php";
|
|
|
|
$hello = new Rivsen\Demo\Hello();
|
|
echo $hello->hello();
|
|
```
|
|
|
|
```bash
|
|
$ php test.php
|
|
```
|
|
|
|
It will print "Hello World!" then exit.
|