Current location: Hot Scripts Forums » General Community » Polls » What PHP Frameworks do you use and why?


View Poll Results: What PHP Framework do you use?
CodeIgniter 1 12.50%
Yii 0 0%
CakePHP 1 12.50%
Zend 4 50.00%
Symfony 1 12.50%
PHPDevShell 0 0%
Prado 0 0%
Akelos 0 0%
ZooP 0 0%
Other (QPHP, etc) 1 12.50%
Multiple Choice Poll. Voters: 8. You may not vote on this poll

What PHP Frameworks do you use and why?

Reply
  #1 (permalink)  
Old 03-10-10, 07:46 AM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
What PHP Frameworks do you use and why?

__________________

Last edited by digioz; 03-10-10 at 07:59 AM.
Reply With Quote
  #2 (permalink)  
Old 03-10-10, 07:50 AM
bizzar528's Avatar
bizzar528 bizzar528 is offline
Community Liaison
 
Join Date: Sep 2004
Location: Pennsylvania, US
Posts: 1,550
Thanks: 2
Thanked 16 Times in 15 Posts
Generally I prefer my own. Easier to work with, slimmer in terms of code, easier to support/extend.

I've also used cakephp and codeigniter. Cake is a better all round framework, and I like how codeigniter only gives you enough to be called a framework, but really you have to use it as building blocks for a site.
Reply With Quote
  #3 (permalink)  
Old 03-10-10, 08:54 AM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
Quote:
Originally Posted by bizzar528 View Post
Generally I prefer my own. Easier to work with, slimmer in terms of code, easier to support/extend.

I've also used cakephp and codeigniter. Cake is a better all round framework, and I like how codeigniter only gives you enough to be called a framework, but really you have to use it as building blocks for a site.
Interesting. Can you give a bit more information on the types of functionality you have implemented in your custom framework?

Pete

P.S. Don't forget to cast your vote in the poll as well.
__________________
Reply With Quote
  #4 (permalink)  
Old 03-18-10, 09:30 AM
bizzar528's Avatar
bizzar528 bizzar528 is offline
Community Liaison
 
Join Date: Sep 2004
Location: Pennsylvania, US
Posts: 1,550
Thanks: 2
Thanked 16 Times in 15 Posts
Sorry for the delayed response.

Generally I start with mysql database connectivity, user management, and settings management. From this, I can expand easily into other areas of functionality, but I found that these 3 are the ones I kept reusing over and over. here's my general format when i do it...


index.php - main page, used for all content inclusion/display
config.php - all config options here, required in index.php
functions.php - try to keep all my functions in this file, required in index.php

From there, it evolves either via some sort of database driven content management, or I'll set up a templates folder for other fancy inclusions and whatnots. I try to keep it really simple. And gives me flexibility to implement anything else with a little custom work.
Reply With Quote
  #5 (permalink)  
Old 03-18-10, 01:38 PM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
Very nice layout. Thanks for sharing it with us.

Pete
__________________
Reply With Quote
  #6 (permalink)  
Old 08-31-10, 04:14 AM
duabevnh duabevnh is offline
Disabled
 
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Reply With Quote
  #7 (permalink)  
Old 11-16-10, 08:34 AM
Robert_Berlin Robert_Berlin is offline
New Member
 
Join Date: Nov 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Own framework

@bizzar528:

Totally agree with your idea and solution of selfmade framework. I call this central file index.php "engine". Additionally I use a selfmade MVC approach in combination with the engine:

- index.php (engine, all pages are generated here, all actions are processed here,
my engine does caching and handles multi-language support, checks if requested controller exists and includes it)
|
+---- _functions.php (root, always included from index.php)
+---- _config.php (root, always included from index.php)
+---- _style.css (root, because only one file and often edited, so no time wasted to change folder)
+---- /_Controller (subfolder - here goes all actions like: index.php?action=contact )
e.g. _Controller/contact.php, e.g. a typical controller looks like this two liner:
include "_Model/contact.php"
include "_View/contact.php"
The controller includes one or more model and view files or other controllers
+---- /_Model (subfolder - here goes all data like static arrays,
database routines to get data, CSV files holding data
... all data files or getter functions or data in general - all are called $data)
+---- /_View (all presentation files, converts $data with foreach loops to HTML, like Templates)

Models and Views can be reused again and again by different Controllers. Complex pages can be easily built by including controllers in a controller. A standard variable is $block. All views are returning $block to the controller. A page is built by one or more blocks. The entire page is cached. The page name is identical with the controller name. The engine checks if a cached file for this controller exists and loads it. If no cache file exists, the controller is included, page is generated and written to subfolder /_Cache. Next time the cached file is called (faster).

Addionally an Apache .htaccess file is in the root to speed up page load by automatically compression (deflate/gzip) all files with about 80% reduction of file size to be transfered, deactivating Etag, caching images and CSS files for revisiting pages.

Hope this is helpful.
[/] LinkMatrix.de 3315 Open Education Search Download
Reply With Quote
  #8 (permalink)  
Old 11-24-10, 07:30 PM
JohnnySaur JohnnySaur is offline
Wannabe Coder
 
Join Date: Sep 2010
Posts: 109
Thanks: 1
Thanked 2 Times in 2 Posts
I use Zend frameworks because it is very easy for me to code their.
Reply With Quote
  #9 (permalink)  
Old 11-24-10, 11:45 PM
luckysophie's Avatar
luckysophie luckysophie is offline
Wannabe Coder
 
Join Date: Nov 2010
Location: London
Posts: 107
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by JohnnySaur View Post
I use Zend frameworks because it is very easy for me to code their.
I agree with you.
Reply With Quote
  #10 (permalink)  
Old 08-11-11, 07:17 AM
GameFrame GameFrame is offline
Newbie Coder
 
Join Date: May 2009
Location: Finland
Posts: 35
Thanks: 0
Thanked 3 Times in 3 Posts
I never undersood benefits of using frameworks. Im coding using nano editor and can easily create advanced projects.

Why should I use framework?
__________________
NiX API - Stay protected. Multi-purpose API protection solution for webmasters.
nixapi.com
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 10:41 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.