hatenasyntax/hatenasyntax

Hatena Notation Parser

v1.0.7 2012-11-23 14:05 UTC

This package is not auto-updated.

Last update: 2024-03-16 12:33:14 UTC


README

はてな記法パーサ。

Install

composerを使ってインストール。

$ mkdir foobar && cd foobar
$ echo '{"require": {"hatenasyntax/hatenasyntax": "*"}}' >  composer.json
$ composer install

オートローディングのために、"vendor/autoload.php"をincludeする。

<?php
include_once __DIR__ . '/vendor/autoload.php';

How to run tests and examples

git-cloneした後、setup.shを走らせる。

$ git clone https://github.com/anatoo/HatenaSyntax.git
$ cd HatenaSyntax
$ ./setup.sh

全てのテストを実行する。

$ php test/testall.php

例を動かす。

$ php examples/example1.php