Using Composer on legacy projects

Composer LogoIt’s been a long time since my last post. But now, I’m back with something probably useful for you. Composer is around for a while but I was not able to find some time to work with it. We needed something like this in the company so I spent some time with it and moved our project to Composer enabled dependencies. You can (and should) definitely do the same.
Continue reading Using Composer on legacy projects

Drupal Sandbox Project: KMVC

As I always, I took my time to write another blog post. Again this one actually includes codes (but not here). I have started using Drupal for a project to a client. I was willing to work on Drupal for a while, but I never had the chance to look for it deeply or develop for it. Now I’m in with a sandbox module: Kmvc!
Continue reading Drupal Sandbox Project: KMVC

Kartaca Web Based Voting System, Yet Another GPL Project

Followers of mine might remember that I was writing my own tiny PHP framework for a school project of mine. The framework’s development is stalled for the moment, however the school still required the homework :) I have based this web based voting system on, surprise surprise, Zend Framework. You can check it out on my github. Soon SVN and Trac will be opened too on, Bekir?
Continue reading Kartaca Web Based Voting System, Yet Another GPL Project

How To Build a Framework From Scratch – Part 2

I’m sure you had thought that the first part was the last part, but you are wrong :). After reading the first part, I didn’t thought again and gave up on my framework project. And you are right there is no commit, yet :) But things are getting clearer with each passing week (yeah not based on days but weeks because I don’t really have a lot of time to spare for this). So let’s go on with the second part.
Continue reading How To Build a Framework From Scratch – Part 2

Thanks Zend, my beloved PHP Company

A quick update about my life, that is related to the PHP. Today, I received two emails from Zend. One was containing a license about Zend Studio 8.0 and the other was containing a license about Zend Server. I was like, WTF was that right now. Did my trial expired again? When I checked into my account I noticed that I had a perpetual license to both.

It seems Zend has decided to give free licences to all Zend Certified Engineers. Awesome gift to the community! Thanks guys! It’s all the more reason to be certified right now! Well or to take another certification :)

How To Build a Framework From Scratch – Part 1

Well, that’s a kind of a interesting name for a blog post and honestly I hear many voices raising “come on man, what will you do that is not done till today? You will only clone another framework anyway”. While It’s kind of a true, this post is not mostly about “I will write such a framework that will do this and that, and it will perform great etc”, it will be about why you might need to build your own framework (maybe on top of another one) and how such a process can be.
Continue reading How To Build a Framework From Scratch – Part 1

What I do?

It’s been a long time, since I ever wrote something to this blog. I’m currently developing a Java application (yikes!). Yet my heart still beats for PHP. My school has restarted after the spring break and with the “love of homeworks”, I really restarted thinking about writing a small PHP framework. The idea is to provide a lightweight, annotation based (not something very complex again), framework with an MVC architecture with some “tiny” features about Aspect Oriented Programming. It will provide a simple base for my homework, and yet perhaps it will be useful for someone else. Also finally, with this project I will be able to check out, lambda functions, annotations and aspects. My requirements and thoughts are not very clear at the moment (just some scratchings on how I want to use it) and as they are not ready, there isn’t anything I can show up yet. :)

Yet things does not end with above. I will probably visit many universities soon and talk about Kartaca, (my proud company!). Also I have some cool ideas I wish to talk about too like: “The Diary of a Project Manager: How I screwed up my last project!” :)

Yeah, as you noticed, this paragraph is not a conclusion. There is another interesting thing about more book reviews. Someone from Packt Publishing contacted me again about writing some reviews for two books they have published: Magento 1.4 Development Cookbook and Magento 1.4 Themes Design. As someone who has worked with Magento for a while, It’s actually great to review such books. They always teach me things I don’t know. As soon as I get some free time, I will write them and share them with you. Perhaps they might help you too.

For the tinypi framework, you can checkout my github, or directly here. Don’t expect anything yet.

Until next time (I hope it won’t be months again:), expect to see me at your “local” university :)

Meet you at Ozgur Web Gunleri at Yeditepe University

Özgür Web Teknolojileri Günleri 15-16 Ekim 2010 Yeditepe ÜniversitesiHey everyone, it’s been a while since I have last written something here. I will be giving a workshop at Ozgur Web Gunleri (Free Web Days) at Yeditepe University at 15-16 October about Zend Framework (yeah what else right :)

I will be explaining how to use Zend_Tool, how you can connect to and query a database by Zend_Db (yup, no Doctrine), how Zend_Form and its validators can be used and finally how you can log someone in using Zend_Auth.

These topics will complete a simple blog software which can be actually used minus the comments moderation (that will be a homework:). However I do not suggest you to use it in real life because of the performance and spaming issues (no captcha for comment adding for example (yes yes, another homework :))

It’s released with GPL unlike my other code examples which are actually kinda released with WTFPL license as they didn’t have one :)

You can download the code I will be using in the workshop from my github under zf-examples/zf-blog as always. You will also be able to get it from as soon as I can convince my colleague, opening a svn repo and a trac (yeah it will have a trac too in order to keep improving the sample and fixing bugs and errors) tooks just a minute or too :) Trac will be available at

See you at Yeditepe.

How to Create Custom Doctrine Models for Pluggable ZF Modules

Well, in my previous post, I had mentioned about “pluggable” modules for Zend Framework. They had their own, configuration files, controllers and views. However most generally, you also need database tables and models. So there should be a way to define them too. It’s easy if you are making your ORM manually. However for the ones who use Doctrine out there, things are not that simple.
Continue reading How to Create Custom Doctrine Models for Pluggable ZF Modules