Wordcraft, a simple PHP blogging application
So, a while back, not sure when, I was listening to the P3 Podcast and Paul mentioned his dislike for Wordpress. He said he wished there was a simple blogging application. I am probably misquoting him horribly. It was an idea that I had been tinkering with. So, I started on Wordcraft in my spare time. Like super spare time. That time between the kids going to bed and me falling asleep. So, it took a while to get it to a usable state.
Up until now, I have used Wordpress.com for my blogging. It works quite well. You can get started quite quickly and it does what most people need. My wife uses Blogger for our family blog. It is, IMO, not as nice as Wordpress.com in some ways. But, it does allow you to edit your styles (for free) and such which is nice.
So, why would I want to reinvent the wheel? I am a control freak and rarely run other people's code. I know, it is a character flaw. I am working on it. So, what did I come up with?
I had some goals when I started on this.
- Keep it simple.
- Focus on what I am good at doing.
Keeping it simple
I use MySQL. I didn't try to make it work with every possible database. In fact, it only uses the mysqli PHP extenstion. The few objects (CAPTCHA) are all PHP 5 objects. I don't plan to worry about PHP 4. The templates don't use a template language. They use plain old PHP. The are scoped to protect template authors from global scope. There are only 6 files required to make a new template. There are just 589 lines of code in the forward facing scripts. The admin has 2,446.
What am I good at doing?
So, what does it do you ask? Well, here are some of the features:
- WYSIWYG editing via YUI.
- Comments with optional CAPTCHA and/or Akismet.
- Custom pages can be created.
- Tagging of posts
- Custom publish dates
- Automatic Pingback support
- Friendly URL support with mod_rewrite
- 5 Templates in first release. Easy to build more.
- Email notifications to authors
There are some things missing of course. Internationalization of both the admin and templates is a big one. There is no current search engine for blog posts. There is no "blog roll" type of feature. There is no date based archive. And I am sure there is more missing. And I am sure there are bugs.
But, if you would like to try out yet another PHP application, I welcome you to give it a try. The code is hosted at Google Code. It is a BSD licensed application.