# Ruby version of PHP

**URL:** <https://www.ruby-forum.com/t/ruby-version-of-php/169019>\
**Category:** Ruby\
**Created:** [May 28, 2009, 2:06pm UTC](https://www.ruby-forum.com/t/ruby-version-of-php/169019 "2009-05-28T14:06:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 28, 2009, 2:06pm UTC](https://www.ruby-forum.com/t/ruby-version-of-php/169019/1 "2009-05-28T14:06:09Z")

</div>

I am relatively new to Ruby and Rails, but have a lot of experience with  
Perl and PHP. After looking at Rails, I really like Ruby, but find  
Rails  
to be to restrictive in the way you have to do things.  
This article:

> **[O'Reilly Media - Technology and Business Training](https://www.oreilly.com)**
>
> Gain technology and business knowledge and hone your skills with learning resources created and curated by O'Reilly's experts: live online training, video, books, our platform has content from 200+ of the world's best publishers.

blog/2007/09/7\_reasons\_i\_switched\_back\_to\_p\_1.html

sort explains how I feel, mostly #5. Maybe I just need to spend more  
time learning Rails.

Moving from Perl to PHP was really easy. PHP seems to be Perl modified  
for the web. What I am thinking of would be a PHP modeled on Ruby the  
way PHP is modeled on Perl. Maybe call it RHP.

Thoughts?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 28, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/ruby-version-of-php/169019/2 "2009-05-28T16:25:44Z")

</div>

On Thu, May 28, 2009 at 2:05 PM, dave p [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Moving from Perl to PHP was really easy. PHP seems to be Perl modified  
> for the web. What I am thinking of would be a PHP modeled on Ruby the  
> way PHP is modeled on Perl. Maybe call it RHP.
> 
> Thoughts?

Rails is not restrictive but it is very opinionated. There is a  
difference.  
You can get Rails to work around your data your way but then you’d be  
better off writing your app with a different framework or directly on  
top of Rack (similar to how you would with PHP)  
Bottom line, Rails is not the only way to do web development with Ruby.

PS. Ruby has a good number of perlisms of it’s own

Andrew T.  
[http://ramblingsonrails.com](http://ramblingsonrails.com)

[http://MyMvelope.com](http://MyMvelope.com) - The SIMPLE way to manage your savings

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 28, 2009, 4:44pm UTC](https://www.ruby-forum.com/t/ruby-version-of-php/169019/3 "2009-05-28T16:44:30Z")

</div>

On Thu, May 28, 2009 at 8:05 AM, dave p [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> […] Moving from Perl to PHP was really easy. PHP seems to be Perl  
> modified  
> for the web. What I am thinking of would be a PHP modeled on Ruby the  
> way PHP is modeled on Perl. Maybe call it RHP.
> 
> Thoughts?

Hi Dave,

if Rails doesn’t work for you, you can simply opt for Sinatra, Ramaze,  
or  
any other Ruby web framework that suits you better. You don’t even need  
a  
framework in fact, you could simply use Ruby “a la PHP”, through  
ERb/eRuby/Erubis.

Cheers,  
Antonio

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 28, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/ruby-version-of-php/169019/4 "2009-05-28T17:31:16Z")

</div>

As Antonio says, the PHP version of Ruby is eruby. No Rails baggage -  
just pull down the top, slip it into gear and drive off with the wind in  
your hair, where-ever and however the fancy takes you.
