PHP Classes

Laravel Markdown Blog: Publish blog posts with content in Markdown format

Recommend this page to a friend!
  Info   View files Documentation   View files View files (86)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2022-08-09 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 33 This week: 1All time: 10,559 This week: 163Up
Version License PHP version Categories
laravel-markdown-blo 1.0.0MIT/X Consortium ...5PHP 5, Content management, Blogs
Description Author

This package can publish blog posts with content in Markdown format.

It provides an application that uses the Laravel framework to provide a Web interface and an API to allow users to create, update, delete and view blog posts.

The blog posts editing pages allow the users to enter the post text in the Markdown format.

The application converts the posts to HTML before displaying the posts on Web pages.

Innovation Award
PHP Programming Innovation award nominee
August 2022
Nominee
Vote
Blogs are still a popular form of publishing content of interest to a given community.

HTML is a natural format for defining blog content because Web pages use HTML to determine the page contents.

However, certain HTML tags may be insecure to allow blog post authors to submit content because a malicious author may use specific tags to steal private information from blog visitors.

Markdown is not as powerful as HTML in rendering content, but it is undoubtedly more secure because it does not support the same kind of tags HTML supports and can be insecure.

This package implements a blog system that allows authors to edit the post content in Markdown format, and then it displays that content on Web pages using regular HTML.

Manuel Lemos
Picture of Maniruzzaman Akash
  Performance   Level  
Innovation award
Innovation award
Nominee: 2x

 

Details

Laravel Markdown Blog

An example blog application using Laravel, Markdown, Prism JS and Markdown JS - the right way.

Live Demo -

http://laravel-markdown-blog.herokuapp.com

Why I've done this ? Basically I love to write blog articles on my DevsEnv - https://devsenv.com website by Laravel which uses Tiny MCE Editor, but I'm not satisfied with that. I believe, using Markdown is just a much better way to write blog articles.

Versions

  1. PHP - `^7.3|^8.0`
  2. Laravel - `^8.75`

External packages, I used

  1. Laravel Markdown Parser - https://github.com/GrahamCampbell/Laravel-Markdown
  2. JavaScript Markdown Editor - https://github.com/sparksuite/simplemde-markdown-editor
  3. PrismJS - https://prismjs.com/
  4. SimpleMDE - https://simplemde.com/

How to Start

## Clone repository
git clone https://github.com/ManiruzzamanAkash/laravel-markdown-blog.git

## Go to that folder
cd laravel-markdown-blog

## Install composer
composer install

## Create file .env and
Copy .env.example to .env

## Create a database called
laravel_markdown

## Generate Key
php artisan key:generate

# Run migrations and seeder file to seed 1,000 tutorials
php artisan migrate --seed

## Install node, as we've used Tailwind CSS
npm install

## Run tailwind CSS in watch mode to detect any file change
## and automatically generate app.css in public/css/app.css
npm run watch

Screenshots

Tutorial Lists Page

Laravel Markdown Blog

Tutorial Create Page

Laravel Create Tutorial

Tutorial Create Tutorial Fill Data

Tutorial Create Tutorial Fill Data

Tutorial Detail Page

Tutorial View

Tutorial Edit Page

Tutorial Edit Page

After Save Tutorial

After Save Tutorial

  Files folder image Files  
File Role Description
Files folder imageapp (5 directories)
Files folder imagebootstrap (1 file)
Files folder imageconfig (16 files)
Files folder imagedatabase (3 directories)
Files folder imagepublic (4 files, 2 directories)
Files folder imageresources (4 directories)
Files folder imageroutes (4 files)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Plain text file artisan Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file package-lock.json Data Auxiliary data
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file Procfile Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file server.php Aux. Auxiliary script
Accessible without login Plain text file tailwind.config.js Data Auxiliary data
Accessible without login Plain text file webpack.mix.js Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:33
This week:1
All time:10,559
This week:163Up

For more information send a message to info at phpclasses dot org.