News for hackers. Stuff that matters.
Re:Show HN: I created my own nano PHP blogging platform by XCSme on Wednesday April 22, 2020 @11:41AM (#22946738)
Hello HN! (author here)

I needed a way to add blog posts to my plain PHP site. I ended up creating a very simple way of adding markdown content to my site in the form of blog posts.

I wrote more about how I got here in this post: https://dev.to/xcs/i-created-my-own-static-php-blogging-plat...

I spent about 2 days thinking about and implementing the solution, so it's still very basic yet very powerful. I am really happy with how it turned out, I prefer this over using a 3rd party blogging service or having to install complex tech stacks with several build steps.

The biggest advantages I see with this way of creating posts:

  - Markdown can be easily versioned in git.  
  - You see a preview while editing the markdown in VSCode (by default, no plugins needed).  
  - You are not bound to any framework.
  - You can easily stylize the content or add extra features.
  - Can be integrated into your existing (PHP) site.
I don't have any future plans for this yet, but I really like the simplicity of just adding a new file and having that post visibile on my site. I posted this because it works really well in my case and I thought it might help others too (either the code itself or just the ideas behind it).

Thank you!

Cristian

There are no comments on this comment yet.