As long as all the parties profit from this kind of business there is nothing wrong with it. See for example Android. Whoever thought it would be what it is for Google today for Google?
Sorry, I did not add much detail information. I intend to learning coding to be able to do web development and then later mobile app development. Am a business guy. I don't have the intention of learning to code to get a job, but more to be able to program MVP of product ideas I have. Which one is the most easiest for a rookie Ruby or RoR or PHP or Zend or cakePHP or Yii. My goal is to get results quick, later I can then jump into the nitty gritty.
For a beginner, I'd say learn Rails. The other frameworks are nice in their own ways but Rails has the largest community by far. PHP is, as others have mentioned, just a language, and while there are good frameworks for it (CakePHP as you mentioned, CodeIgniter, Zend), the first point applies: Rails is still the hot thing right now.
PHP is probably more mature than Rails for web apps (please don't hurt me, Rubyists) but strictly for speed of setup of new products Rails is probably faster.
My answer would likely be different if you were looking to learn to program as a professional.
What do you guys think of it?