Download the PHP package kraenzle-ritter/markdown-to-tei without Composer

On this page you can find all versions of the php package kraenzle-ritter/markdown-to-tei. 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 markdown-to-tei

Markdown to TEI Converter

PHP Version License: MIT CI Quality Assurance Downloads Latest Version TEI P5 Composer

A flexible PHP-based converter that transforms Markdown into TEI-XML with support for extended conventions and customizable mappings.

Features

Installation

For development:

Basic Usage

Extended Conventions

Overview of Conventions and Mappings

Markdown/HTML TEI-XML Conversion
[supplied text] <supplied>supplied text</supplied>
{unclear text} <unclear>unclear text</unclear>
(( editorial_note )) <note type="editorial">editorial note</note>
--deleted-- <del>deleted</del>
++added++ <add>added</add>
[text](url) <ref target="url">text</ref>
<h1>Heading</h1> <head type="chapter">Heading</head>
<h2>Heading</h2> <head type="section">Heading</head>
<li>Item</li> <item>Item</item>
<ul>...</ul> <list>...</list>
<ol>...</ol> <list type="ordered">...</list>
<blockquote>Quote</blockquote> <quote>Quote</quote>
<em>text</em> / *text* <hi rend="italic">text</hi>
<strong>text</strong> / **text** <hi rend="bold">text</hi>
<code>code</code> / `code` | <code>code</code>
<hr> / --- <milestone unit="section"/>
two trailing spaces or \ before a newline <lb/>
|p.123| <pb n="123"/>

This table shows the most important standard conventions and HTML-to-TEI mappings. You can add your own rules via configuration.

Advanced Configuration

Warnings

An HTML element without a mapping falls back to <div type="…">. The converter does not raise a PHP notice for this — frameworks such as Laravel would turn it into an exception — but collects a message you can log:

Examples

  1. example.php: Basic functionality demonstration
  2. examples/advanced_config.php: Advanced configuration options
  3. examples/file_conversion.php: File-based conversion
  4. examples/manuscript_edition.php: Critical edition with special conventions

Testing

Run the test suite:

33 tests with 100% pass rate ensuring reliability and correctness.

Requirements

Dependencies

License

This project is licensed under the MIT License - see the LICENSE file for details.


All versions of markdown-to-tei with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
league/commonmark Version ^2.4
symfony/dom-crawler Version ^6.3|^7.0
symfony/css-selector Version ^6.3|^7.0
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 kraenzle-ritter/markdown-to-tei contains the following files

Loading the files please wait ...