Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements (removing anti-patterns) & updates #15

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.buildpath
.settings/*
.project

.phpunit.result.cache
/vendor/
/nbproject/
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# Wikitext parser [![Build Status](https://travis-ci.org/mike42/wikitext.svg?branch=master)](https://travis-ci.org/mike42/wikitext)

This library can be used to add basic wikitext (Mediawiki-style) support to a PHP app.
Its role is NOT, by any means, to replace the Parsoid library from Wikimedia foundation, but to use the
same syntaxic core of wikitext. Furthermore, you can extend this parser very easily to your project
specifications (specially for url generation and templates).

This repository was forked from the [abandoned project mike42.me/wikitext](http://mike42.me/wikitext/),
that's why I've created a new package on Packagist.

Code may be re-mixed and re-used under the MIT licence. See 'examples' folder for usage.

Information about currently supported markup elements can be found [on the project web-page](http://mike42.me/wikitext/).
# Notes about this fork
* Abstracting
* Removing anti-patterns
* Unit testing
* Template Method Design Pattern for extending the html rendering
44 changes: 25 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
{
"name": "mike42/wikitext",
"description": "PHP wikitext parser",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Michael Billington",
"email": "[email protected]"
}
],
"require-dev": {
"phpunit/phpunit": "^6.5",
"squizlabs/php_codesniffer": "^3.1"
},
"autoload": {
"psr-4": {
"Mike42\\" : "src/Mike42"
}
}
"name": "trismegiste/wikitext",
"description": "PHP wikitext parser",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Michael Billington",
"email": "[email protected]",
"role": "creator"
},
{
"name": "Trismegiste",
"homepage": "https://github.com/Trismegiste",
"role": "rescuer"
}
],
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.1"
},
"autoload": {
"psr-4": {
"Mike42\\": "src/Mike42"
}
}
}
Loading