https://github.com/pmvc-plugin/hello_world
PMVC Plugin Demo Code
https://github.com/pmvc-plugin/hello_world
Last synced: 2 months ago
JSON representation
PMVC Plugin Demo Code
- Host: GitHub
- URL: https://github.com/pmvc-plugin/hello_world
- Owner: pmvc-plugin
- Created: 2015-05-03T12:39:14.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-08-03T18:24:19.000Z (almost 10 years ago)
- Last Synced: 2025-01-26T16:16:39.315Z (over 1 year ago)
- Language: PHP
- Homepage: https://github.com/pmvc/pmvc/wiki
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/pmvc-plugin/hello_world)
[](https://packagist.org/packages/pmvc-plugin/hello_world)
[](https://travis-ci.org/pmvc-plugin/hello_world)
[](https://packagist.org/packages/pmvc-plugin/hello_world)
[](https://packagist.org/packages/pmvc-plugin/hello_world)
# PMVC Hello World Plugin
===============
## How to use? Check the demo code.
https://github.com/pmvc-plugin/hello_world/tree/master/demo
## Install with Composer
### 1. Download composer
* mkdir test_folder
* curl -sS https://getcomposer.org/installer | php
### 2. Install by composer.json or use command-line directly
#### 2.1 Install by composer.json
* vim composer.json
```
{
"require": {
"pmvc-plugin/hello_world": "dev-master"
}
}
```
* php composer.phar install
#### 2.2 Or use composer command-line
* php composer.phar require pmvc-plugin/hello_world
### 3. Write some demo code
```
say();
?>
```
### 4. Run the demo
* php demo.php
### 5. Check the whole demo code
* https://github.com/pmvc-plugin/hello_world/tree/master/demo
## One line test
```
php -r "include('vendor/autoload.php'); PMVC\Load::plug([],['../']); \PMVC\plug('hello_world', ['Hello, PMVC.'])->say();"
```