Skip to content

websafe/test-a

Repository files navigation

websafe-michelf-markdown-parser-psr

websafe-michelf-markdown-parser-psr is a PSR-0 compliant version of Michel Fortin's PHP Markdown library (branch: lib), automatically generated by a buildscript, enhanced with a PHPUnit test suite, Composer ready, with fixed PHP code and Travis CI integration and more.

Current build status.
Branch Build status Based on commit
master a10d48919913c2b3efdc3637e5494e4e57c04d5e
develop

Table of contents

  1. Features
  2. Quickstart
  3. Class and namespace hierarchy diagram
  4. Milestones

Features

Quickstart

Create a project directory:

mkdir my-markdown-test
cd my-markdown-test

Now create a composer.json file in project's root, with this content:

{
    "name": "my/markdown-test",
    "type": "library",
    "description": "My Markdown test",
    "require": {
        "php": ">=5.3.0",
        "websafe/test-a": "*"
    },
    "minimum-stability": "dev",
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/websafe/test-a.git",
            "reference": "origin/master"
        }
    ]
}

And run composer:

composer -v update

Create a PHP script in your projetc's root:

touch my-markdown-test.php

with this content:

<?php
//
require 'vendor/autoload.php';
//
$mp = new Michelf\Markdown\Parser\ExtraParser();
//
echo $mp->transform("Hello!\n======\nIs it me you're looking for?");

will return:

<h1>Hello!</h1>

<p>Is it me you're looking for?</p>

Easy?

Quickstart for developers and Markdown hackers ;)

Clone this repos master branch:

git clone https://github.com/websafe/test-a.git
cd test-a

Now create a composer.json file:

ant setup-dev-env

Now You should have all required tools and dependecies installed in vendor/, accessible via vendor/bin/*, or better [Ant].

ant phpdoc

PHP Documentation is created in doc/phpdoc/.

Now run some tests:

ant phpunit

You think any of the dependencies may have changed? Update Your dev environment

ant update-dev-env

this will update Composer with all dependencies and recreate missing dirs.

Class and namespace hierarchy diagram

This diagram was generated using phpDocumentor2. You can browse the full PHP documentation for this library https://docs.websafe.pl/websafe-michelf-markdown-parser-psr/phpdoc/

Class hierarchy diagram

Milestones

0.0.0

0.0.1

  • xxx

0.1.0

  • PSR-1

0.2.0

  • PSR-2

About

just a test

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages