Skip to content

pmvc-plugin/hello_world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Latest Unstable Version Build Status License Total Downloads

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

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();"