Download the PHP package gusvasconcelos/markdown-converter without Composer

On this page you can find all versions of the php package gusvasconcelos/markdown-converter. 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-converter

PHP Markdown Converter

PHP Version License: MIT Latest Stable Version Downloads

An elegant and fluent PHP library for generating structured Markdown content with support for all essential elements and advanced customization options.

โœจ Features

๐Ÿ“ฆ Installation

Install via Composer:

โšก Requirements

๐Ÿš€ Basic Usage

Fluent Interface

All methods return the converter instance, allowing method chaining:

๐Ÿ“‹ Available Methods

Text Elements

heading(string $text, int $level = 1)

Creates a heading with the specified text and level (1-6).

paragraph(string $text)

Adds a paragraph with the specified text.

bold(string $text)

Adds bold text.

italic(string $text)

Adds italic text.

blockquote(string $text)

Adds a block quote.

Code Elements

code(string $code)

Adds inline code.

codeBlock(string $code, string $language = "")

Adds a code block with optional language. json // {"name":"John","age":30} //

Media Elements

image(string $url, string $altText, ?string $title = null)

Adds an image with URL, alternative text and optional title.

link(string $url, string $text, ?string $title = null)

Adds a link with URL, text and optional title.

List Elements

orderedList(array $items)

Adds an ordered list with the specified items.

unorderedList(array $items)

Adds an unordered list with the specified items.

Structural Elements

horizontalRule()

Adds a horizontal rule (divider).

emoji(string $emoji)

Adds an emoji to the content.

Output Methods

write(string $directory, string $filename)

Writes the markdown content to a file.

__toString()

Returns the markdown content as a string.

๐Ÿ”ง Element Management

The library provides advanced methods for manipulating individual elements:

Manipulation Methods

get(int $position)

Gets an element by position.

removeAt(int $position)

Removes an element by position.

replace(int $position, MarkdownSyntaxInterface $element)

Replaces an element at a specific position.

count()

Returns the total number of elements.

clear()

Removes all elements from the collection.

all()

Returns the complete collection of elements.

Practical Management Example

๐Ÿ’ก Use Cases

๐Ÿ“‹ Automated Reports

Create structured reports from system data:

๐Ÿ› System Logs

Structure error and debug logs:

๐Ÿ“ง Email Templates

Generate content for transactional emails:

๐Ÿงช Testing

Run the test suite to ensure everything works correctly:

The library includes comprehensive tests covering:

๐Ÿ“„ License

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

๐Ÿค Contributing

Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.

Contributing Guidelines

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add tests for new functionality
  5. Ensure all tests pass (composer test)
  6. Commit your changes (git commit -m 'Add amazing feature')
  7. Push to the branch (git push origin feature/amazing-feature)
  8. Open a Pull Request

Please make sure to update tests as appropriate and follow the existing code style.


All versions of markdown-converter with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 gusvasconcelos/markdown-converter contains the following files

Loading the files please wait ...