Search Results Slim

Creating a Search in Slim Framework with hooks

My project website numphp.org is based on the PHP micro framework Slim. There is no nead for a cms or blog system. I just need some static pages and a little bit of logic. My posts on numphp.org are just static html files that will be served with the php function file_get_contents. But I would like to make the posts searchable. The easy way would be a slim route for search that is just checking if the searched query is contained in every post of my blog. But in near future I would like to make also the documentation searchable. So I will use the hooks of the Slim Framework. Hooks are the same as events in other frameworks. You can throw them and listen or observe them.

Two weeks ago I could not find events in the Slim Framework so I made a Pull Requests to add a EventManager to the Framework. But before sending the Pull Request I have figured out, events are just called hooks:)

Continue reading ...

Awesome Open Source Projects

On my Wordpress blog I had a page for donations. It didn't happend that often, but when somebody wanted to spend some money for my small open source projects I always send a link to a page like this. A list of awesome software projects that I use every day. All these projects need some money or help. The donation page doesn't exist anymore, so I have created this small post that will be updated from time to time.

Continue reading ...