pmvc-plugin / hello_world
Hello World Plugin, show you how the pmvc work
0.1.2
2016-08-03 18:15 UTC
Requires
- pmvc/pmvc: *
This package is auto-updated.
Last update: 2024-11-12 04:12:11 UTC
README
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
<?php
include('vendor/autoload.php');
PMVC\Load::plug();
\PMVC\plug('hello_world', ['Hello, PMVC.'])->say();
?>
4. Run the demo
- php demo.php
5. Check the whole demo code
One line test
php -r "include('vendor/autoload.php'); PMVC\Load::plug([],['../']); \PMVC\plug('hello_world', ['Hello, PMVC.'])->say();"