Download the PHP package settermjd/mezzio-markdown-blog without Composer

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

PHP QA Workflow

Mezzio Markdown Blog

This is a basic blog module for Mezzio applications, allowing you to get up and running with a blog in your applications pretty quickly.

How it works

When installed, the module adds two routes to the application's routing table.

One to list all of the available blog items

Using the path /blog[/{current:\d+}], by default it lists the first page of the blog index. However, if a page number is supplied current, then that page of the blog will be displayed. Alternatively, the user can move forward and backward through pages of the blog by using the pagination links at the bottom of the current page. It converts a series of Markdown files with Yaml front-matter into an array of BlogArticle entities, which are then rendered as HTML.

One to view individual blog items

Using the path /blog/item/{slug}, this route displays a blog item with the slug provided. In addition to being able to view the matching blog item, a listing of one or more blog items that are related to the current item are also available, if any matches are available.

What do the Markdown files look like?

Here is a sample article, so that you know, roughly, what to expect.

Usage

The package is designed to be used as part of Mezzio-based applications, and goes to a lot of effort to make doing so as simple as possible.

Install the package

To install the package, use Composer (just as you would install any other package) by running the following command:

During installation, the project's ConfigProvider will be loaded into config/config.php, loading all of the required dependencies, routes, and template paths. Given that, most of the work is done for you, including registering the routes and accompanying handlers for:

Set up the articles directory

There is no way to create the articles (posts) directory as part of the installation process, so you need to do this yourself. So, in the data directory, create a new directory named posts. The path needs to match the path element that you set in the application's configuration, outlined in the previous section.

[!NOTE] In a future version, there will be tooling to automate this.

Override the default templates

The next thing that you need to do is to override the blog templates. There are default versions in the project's templates/blog directory. But these are quite generic and only meant as a way of quickly getting you started. They're not designed to be a professional design for every application.

The three templates are:

[!NOTE] There are three versions of each template:

Update the application's configuration (optional)

If you want or need to, you can also update the module's configuration as well.

By default, its configuration is set in Settermjd\MarkdownBlog\ConfigProvider. However, you can override this by copying the default configuration file, config/autoload/blog.local.php to the application's config/autoload directory. You can find documentation for each option in both the config file and in Settermjd\MarkdownBlog\ConfigProvider.

When using Twig as your view renderer

If you use Twig as your view renderer, while you don't need to, you can create more feature-rich templates by installing PHP's Intl extension, and the twig/markdown-extra and twig/intl-extra packages.

After installing PHP's Intl extension using your package manager or from source, install the two Twig packages using the following command:


All versions of mezzio-markdown-blog with dependencies

PHP Build Version
Package Version
Requires php Version ~8.3.0||~8.4.0
composer/package-versions-deprecated Version ^1.11.99.5
laminas/laminas-component-installer Version ^3.5.0
laminas/laminas-config-aggregator Version ^1.18.0
laminas/laminas-diactoros Version ^3.6.0
laminas/laminas-hydrator Version ^4.16.0
laminas/laminas-inputfilter Version ^2.33.0
laminas/laminas-servicemanager Version ^3.23.1
mezzio/mezzio Version ^3.21.0
mezzio/mezzio-fastroute Version ^3.13.0
mezzio/mezzio-helpers Version ^5.18.0
mezzio/mezzio-laminasviewrenderer Version ^2.18
mezzio/mezzio-platesrenderer Version ^2.12
mezzio/mezzio-twigrenderer Version ^2.17.0
michelf/php-markdown Version ^2.0.0
mnapoli/front-yaml Version dev-add-php-8.4-support
monolog/monolog Version ^3.9
psr/cache Version ^3.0
psr/simple-cache Version ^3.0
samdark/sitemap Version ^2.4
twig/intl-extra Version ^3.21
twig/markdown-extra Version ^3.21
zetacomponents/feed Version ^1.4.5
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 settermjd/mezzio-markdown-blog contains the following files

Loading the files please wait ...