473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Best php web server frameworks?

Hi,

I'm new to php - are there any listings of web server frameworks out
there? I'd like to know which ones have the most use and have proven
themselves at least somewhat.

I'm looking for something in php that'd give the business logic
modelling and templating that you'd get, say, from Java servlets +
Freemarker.

thanks,
Robb

Oct 12 '06 #1
6 1548
Robert wrote:
Hi,

I'm new to php - are there any listings of web server frameworks out
there? I'd like to know which ones have the most use and have proven
themselves at least somewhat.

I'm looking for something in php that'd give the business logic
modelling and templating that you'd get, say, from Java servlets +
Freemarker.

thanks,
Robb
Hi Robb,

If you are new to PHP, it might make sense to first learn PHP itself before
jumping into a framework. IMHO many frameworks give you a good start, but
if you miss understanding of the underlying language, you'll hit your head
many times.
If you get familiar with PHP, you can develop your own
classes/functionlibs/etc yourself. Many good classes are out there (PEAR
eg) for you to use. Personally I find it much more satisfying to write my
own stuff and plug in classes where I need them.

As you can hear, I am not a big fan of frameworks. :P
Anyway, Cake is a PHP framework based on the much appraised Ruby-on-Rails
framework:
http://cakephp.org

From their homepage:
-----------------------------------
Cake is a rapid development framework for PHP which uses commonly known
design patterns like ActiveRecord, Association Data Mapping, Front
Controller and MVC. Our primary goal is to provide a structured framework
that enables PHP users at all levels to rapidly develop robust web
applications, without any loss to flexibility.
-----------------------------------

Good luck!

Regards,
Erwin Moller

Oct 13 '06 #2
Robert wrote:
Hi,

I'm new to php - are there any listings of web server frameworks out
there? I'd like to know which ones have the most use and have proven
themselves at least somewhat.

I'm looking for something in php that'd give the business logic
modelling and templating that you'd get, say, from Java servlets +
Freemarker.

thanks,
Robb
After having just researched this myself over a couple of days I thought I'd
drop in my 2p worth.

Most frameworks (or templating systems) are a trade off between already
built functionality and flexibility - and are somewhere along the scale of

Mambo (which is great)-horde -cake-tiny but strong -P4A -RAW php
and HTML.
There are loads more and I may have not got the order quite correct.

Eventually I settled on using Smarty and also to use the PEAR libraries.

This allows complete control over what is being written plus Smarty
templating works really well.

For example I have a single HTML template for the web application. On each
page I use PHP to generate HTML to display a form or results. All I do is
set the output HTML to a single variable called $content and then display
the template. The main div contains the line {$content} so my content is
displayed in the main div.

To change something on every page I just change something on the template.

And the PEAR libraries are really useful for prevention of the reinventing
of the wheel. For example the Auth library means you can easily carry out
authentication for your web application. Also, the mail_queue library
means that it's easy to put emails you want to send into a DB and have
separate cron run code to actually send them.

This is great for the testing phase.

It takes a few days to get Smarty and PEAR set up and understood but I feel
the effort is well worth it.

Kevin
Oct 13 '06 #3
You should add eXtc Web Developer (http://www.mgateway.com) to your
list of frameworks to check out - it's actually not specific to PHP as
it will cross-generate ASP.Net and JSP also.
On Fri, 13 Oct 2006 16:22:06 +0100, kevin bailey
<kb*****@freewayprojects.comwrote:
>Robert wrote:
>Hi,

I'm new to php - are there any listings of web server frameworks out
there? I'd like to know which ones have the most use and have proven
themselves at least somewhat.

I'm looking for something in php that'd give the business logic
modelling and templating that you'd get, say, from Java servlets +
Freemarker.

thanks,
Robb

After having just researched this myself over a couple of days I thought I'd
drop in my 2p worth.

Most frameworks (or templating systems) are a trade off between already
built functionality and flexibility - and are somewhere along the scale of

Mambo (which is great)-horde -cake-tiny but strong -P4A -RAW php
and HTML.
There are loads more and I may have not got the order quite correct.

Eventually I settled on using Smarty and also to use the PEAR libraries.

This allows complete control over what is being written plus Smarty
templating works really well.

For example I have a single HTML template for the web application. On each
page I use PHP to generate HTML to display a form or results. All I do is
set the output HTML to a single variable called $content and then display
the template. The main div contains the line {$content} so my content is
displayed in the main div.

To change something on every page I just change something on the template.

And the PEAR libraries are really useful for prevention of the reinventing
of the wheel. For example the Auth library means you can easily carry out
authentication for your web application. Also, the mail_queue library
means that it's easy to put emails you want to send into a DB and have
separate cron run code to actually send them.

This is great for the testing phase.

It takes a few days to get Smarty and PEAR set up and understood but I feel
the effort is well worth it.

Kevin
---
Rob Tweed
M/Gateway Developments Ltd

The Pursuit of Productivity : http://www.mgateway.com
Oct 15 '06 #4
tg
On Oct 12, 2:03 pm, "Robert" <r...@acm.orgwrote:
Hi,

I'm new to php - are there any listings of web server frameworks out
there? I'd like to know which ones have the most use and have proven
themselves at least somewhat.

I'm looking for something in php that'd give the business logic
modelling and templating that you'd get, say, from Java servlets +
Freemarker.

thanks,
Robb
We started using the Zend framework (http://framework.zend.com) in our
project, but it's still in early development, and there a lot of
bugfixes that you can only get from the CVS. The separation of
Controller/View logic wasn't that great at the time.

We settled on cakephp, but if speed is critical, you may want to
consider kevin's advice and go with smarty+php libraries.

Good luck on your project, Robb!

Oct 15 '06 #5

tg wrote:
We started using the Zend framework (http://framework.zend.com) in our
project, but it's still in early development, and there a lot of
bugfixes that you can only get from the CVS. The separation of
Controller/View logic wasn't that great at the time.

We settled on cakephp, but if speed is critical, you may want to
consider kevin's advice and go with smarty+php libraries.

Good luck on your project, Robb!
Great - thanks for the pointers, everyone.

Oct 16 '06 #6
R K
Try Plain PHP. Smarty is nice but there are times I'm glad I didn't
use it for the template. You also could try Flexy, being Pear-based
ease of install and update.

If you want a Rails-type framework, use Symfony. It's the furthest
along, has the most mature caching mechanisms.

If you just want to write the least amount of code and have business
apps of 30 pages and 17 dropdowns, etc, better use ATK.

The Rails-types are not as focused as ATK on the actual problem with
business apps, IMHO. The problem being they are the most expensive to
develop at the same time have the least value payoff. Have to get the
cost down, not worry about how beautiful your syntax is, which seems
to be the overriding preoccuopation of RoR (that and the rockstar
leaders poking fun at hopeless Java, which is ironic because RoR very
much overreaching like Java). I don't need a framework syntax to
encode dev/test/prod setups, I need to crank out forms.

HTH

Oct 17 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: ketulp_baroda | last post by:
i am developing a web application and i am really confused on what should i use. should i use just python and use the cgi module availabe. Or should i use application like WebWare.Also there is PSP...
7
by: Jon Slaughter | last post by:
I'm trying to get into web development for creating a professional web site and I'm confused on which language I should use. I've read some comparisons between the major languages and I was...
1
by: Andy Fish | last post by:
Hi, I am about to commence the design of what will turn out to be a fairly large asp.net web app, and I am looking for any good advice and resources (books, web pages) concerning how best to...
1
by: John | last post by:
AJAX is a rich client-side technology that makes the web pages more interactive. In practice, the same AJAX client-side code should be unchanged, regardless of what server-side web technologies we...
7
by: Paul | last post by:
I have been coding apps with PHP for several years. But I am getting more involved in larger and more complicated PHP applications and want to use best practices. I use Eclipse's PHP IDE. I...
11
by: Michael | last post by:
I'm new to PHP, I already learned the basics of the language and built some little app's for practice. I have a critical dilemma, soon enough, I probably start to develop real-world...
14
by: Bizio | last post by:
Ok, I am looking to see if someone can point me in the direction of a simple client server framework for passing messages between two computers? Basically I will have two computers on their own,...
4
by: Nuno | last post by:
Hi, Maybe this question alreay was asked, but now, i'm asking today... today each ajax framework is the best one to start (open source of course). I already see so much (ASP.NET AJAX, GWT,...
10
by: Brendan Miller | last post by:
What would heavy python unit testers say is the best framework? I've seen a few mentions that maybe the built in unittest framework isn't that great. I've heard a couple of good things about...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.