« The Holy Grail of PHP | Main | Salesforce.com adding more force with AJAX »

PHP on Trax The Ruby on Rails for PHP

Trax is a web-application and persistance framework that includes everything needed to create database-backed web-applications according to the Model-View-Control pattern of separation.

This pattern splits the view (also called the presentation) into "dumb" templates that are primarily responsible for inserting pre-build data in between HTML tags. The model contains the "smart" domain objects (such as Account, Product, Person, Post) that holds all the business logic and knows how to persist themselves to a database. The controller handles the incoming requests (such as Save New Account, Update Product, Show Post) by manipulating the model and directing data to the view.

In Trax, the model is handled by what's called a object-relational mapping layer entitled Active Record. This layer allows you to present the data from database rows as objects and embellish these data objects with business logic methods.

Trax require PHP 5.x,PEAR::DB, PEAR::Mail / PEAR::Mail_mime and Apache 1.3.x or 2.x . Php on Trax is still under development and you can download the latest version from the download page.

Bookmark this article at these sites
Comments
1

We (at FreshBooks) have been in touch with the Trax folks and they are really attentive to their community...so I would go one step further and say Trax is under development, and it is an open source application, so lend a hand developing it if you can.

2

I knew PHP, and Ruby on Rails, but didnt want to use rails all the time, so this is perfect (only have to learn one framework). my code is 100 times easier to manage, since its so much cleaner, and faster to program. did i mention it gives me more robustness too?? I love rails, but not acclimatized to Ruby language.

3

is this working ?

4

Here is a report comparing PHP Frameworks to Rails.

It's interesting that the best PHP Framework is the newcomer Akelos, which has been ranked better than Trax.

I've checked the docs and they have even ported the documentation from Rails, so it must be a matter of time to get a strong community around Akelos, some people is suggesting a merge between Trax an Akelos to build the Ruby on Rails PHP Killer

Post a comment





(Email will remain hidden)





Please enter the security code you see here




Related entries
Email to a friend
Email this article to:


Your email address:


Message (optional):