Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

lyrixx/demoer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php - demoer

This project is able to show and execute snippets. The script will wait user press "enter" to show the result. Put your snippet in snippets/ folder.

Demo

Installation

  • git clone https://github.com/lyrixx/demoer.git
  • cd demoer
  • wget http://getcomposer.org/composer.phar
  • php composer.phar install

Usage

  • list all snippets : php run.php list-snippets
  • run one snippet : php run.php run 001-HelloWorld.php
  • run all snippet : php run.php run

Requirements

  • php-5.3.2

Tips

You can import phpt from https://github.com/php/php-src/tree/master/Zend/tests as samples, and then run sed -i -n '1h;1!H;${;g;s/.*\(<?php.*?>\).*/\1/g;p;}' * or sed -i -n '1h;1!H;${;g;s/.*--FILE--\(.*\)--EXPECTF--.*/\1/g;p;}' * to keep php part, and then rename files : rename "s/phpt/php/" *

About

Php app to show then run snippets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages