Download the PHP package paulvl/nv-mrkdwn without Composer

On this page you can find all versions of the php package paulvl/nv-mrkdwn. 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 nv-mrkdwn

Nova Markdown

Latest Version on Packagist Total Downloads Forks Stars MIT license Donate

Add a markdown editor field to Laravel Nova. Based on easymde, Nova Markdown supports highlighting, some useful buttons and inline image uploads. It's simple, configurable, and it just works™.

Installation instructions

Require dinandmentink/nova-markdown using composer:

The package will register itself using Laravels' package autodiscovery. Now, whenever you want to use a Markdown field use Markdown::make like you would expect in the fields() method of a Nova resource.

It will accept all default Nova options:

Image uploads

Nova Markdown supports inline image uploads. To upload an image you can drag-and-drop it onto the markdown editor. Alternatively, pasting an image from your clipboard will also work.

Image upload is enabled by default for all Markdown fields. It can be disabled entirely, or by default, through the config. Image upload can be enabled or disabled on a per-field basis, but this will only toggle the frontend implementation of image uploads.

Image upload should just work™. Nova Markdown aims to support image uploads on a vanilla laravel + nova project. The following assumptions must be met. It's possible to override most of these through the config.

Config

Config mainly deals with image uploads. Sensible defaults are provided, but Nova Markdown aims to be fully configurable either through config/nova-markdown.php or env variables.

For all configuration options please see the default config, which can be published:

This will create a config/nova-markdown.php file in your app that you can modify to set your configuration. Please make sure you check for changes to the original config file in this package between releases. The following are some of the most usefull config items.

Enable uploads

Config key: uploads
ENV: NOVA_MARKDOWN_UPLOADS
Default: true

Setting this to false will disable image uploads completely.

Enable uploads by default

Config key: uploads-default-enabled
ENV: NOVA_MARKDOWN_UPLOADS_DEFAULT_ENABLED
Default: true

Will enable uploads by default (to be enabled on a per-field basis). Has no effect when uploads are disabled entirely.

Set disk

Config key: disk
ENV: NOVA_MARKDOWN_DISK
Default: public

Set the disk where uploads are stored. Must be configured in filesystems.php.

Directory

Config key: directory
ENV: NOVA_MARKDOWN_DIRECTORY
Default: uploads

Set the directory where images are uploaded. Alternatively, it's possible to configure a function, which takes the uploading $user as argument and can be used to group files by user. Example:

Maximum upload size

Config key: max-size
ENV: NOVA_MARKDOWN_MAX_SIZE
Default: 8 * 1024

The maximum size for uploaded images in kilobytes.

Maximum upload size

Config key: max-width
ENV: NOVA_MARKDOWN_MAX_WIDTH
Default: 1920

The maximum width for uploaded images in pixels. Uploaded images will be scaled down to this width. Use null to disable image scaling.

Image Quality

Config key: quality
ENV: NOVA_MARKDOWN_QUALITY
Default: 85

Uploaded images will be converted to this quality. Integer between 0 and 100. Use null to disable quality adjustments.

Random Filename

Config key: random_filename
ENV: NOVA_MARKDOWN_RANDOM_FILENAME
Default: false

Uploaded images will be stored by default using a slug version of its original filename. You can set this to true to use a random filename instead.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

This project is proudly created and maintained by Dcreative. Dcreative is a tiny webdevelopmment agency in the Netherlands.

I have benefited a lot from PHP, Laravel, and countless other open source projects. Nova Markdown is my small contribution in return. Has Nova Markdown been useful to you? Feel free to drop me a donate a beer. Regardless, I'm happy to provide Nova Markdown.

Contributors:

Rendering markdown

Nova Markdown will add a markdown editor field to Nova. It does not render markdown outside Nova. For rendering the markdown in Laravel views I recommend having a look at Laravel Markdown or commonmark.

Difference with Nova's own markdown

Nova, ofcourse, offers it's own markdown field. Nova's official markdown and this, Nova Markdown, are similar. Both of them offer inline text highlighting of markdown text. Neither of them perform transformations on the input and simply store it as plain text, usually in a TEXT column.

This package however will add some more highlighting and toolbar buttons that are not included the default Markdown field. But mainly, Nova Markdown handles image uploads.

Functionality Default Markdown Nova Markdown
Strong V V
Italic V V
External image V V
Link V V
Preview V V
Inline image upload - V
Headings - V
Blockquotes - V
Ordered lists - V
Unordered lists - V
Side-by-side view - V

Todo


All versions of nv-mrkdwn with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
illuminate/support Version ^8.13
spatie/image Version ^1.4.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 paulvl/nv-mrkdwn contains the following files

Loading the files please wait ....