Download the PHP package mpratt/luthor without Composer

On this page you can find all versions of the php package mpratt/luthor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package luthor

Luthor

Build Status Scrutinizer Quality Score Code Coverage Latest Stable Version Total Downloads

Warning: This library is not production ready

Luthor is an extendable Markdown Lexer/Parser for PHP. It converts markdown text into HTML. In other words, what it does is, It reads the markdown text line by line and analyses its content. It uses a Lexer to tokenize each element and passes them to the parser. The Parser operates on that token and returns an HTML string.

The key feature of this library, is that you can extend the token map quite easily, giving you the hability to practically have custom notations and build your own flavored markdown. There are other cool things that can be easily done, like applying filters or modifying the way a token is handled or displayed. It also has a bunch of configuration options which can be used to change the behaviour of the library! See the Usage section for more information about how everything is done. Or better yet, hop into the source and take a peak.

Here is a quick list of supported markup:

The library works but is not stable enough to be used on production environments. In comparision with other markdown parsers, this one is slow! Very slow! And It takes indentation very seriously, maybe a little too much.

Im not giving support for this library, this was just a hobby project. Some parts of the library could be done more elegantly and perhaps later I will cleanup the codebase, but Im not making any promises.

I think the best alternative, if you are looking for an extandable markdown parser is Ciconia! Elegant and stable, requires PHP 5.4.

Requirements

Installation

Install with Composer

If you're using Composer to manage dependencies, you can use this library by creating a composer.json and adding this:

{
    "require": {
        "mpratt/luthor": "dev-master"
    }
}

Save it and run composer.phar install

Standalone Installation (without Composer)

Download the latest release or clone this repository, place the Lib/Luthor directory on your project. Afterwards, you only need to include the Autoload.php file.

Or if you already have PSR-0 complaint autoloader, you just need to register Luthor

Basic Usage

In order to extend the lexer/parser you need to create a new class extending the InlineAdapter or BlockAdapter. Use the addExtension() method to register the extension

Filters are runned when the text is already processed

Take a look at the Lib or Tests directory in order to see other configuration options.

License

MIT For the full copyright and license information, please view the LICENSE file.

Why Oh' Why?

Yeah, I know right?, another markdown parser? really? - You know, there are days where you think to yourself, stuff like "hey, I wanna learn more about X, so Im going to write Y and see what happens"?, Well that happened to me a long time ago, and started coding this lexer/parser just for fun/learning. The thing is, I never finished it.

So one day I was digging around my "un-finished projects" folder and found about half of this code base and decided it was time to either finish it or delete it. I end up rewriting most of the code, there are bits here and there that could be done with more though in mind, but in the end I think it turned out not that bad.

Author

Hi! I'm Michael Pratt and I'm from Colombia!

My Personal Website is in spanish.


All versions of luthor with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mpratt/luthor contains the following files

Loading the files please wait ....