Skip to content

u/Pheter

In this archive from Jan 2010 to Sep 2012

0
posts
8
comments
0
media
13
score

Top comments

Personally, I would use a framework. It will help you to structure your application and will reduce the amount of work that you need to do as the framework will make certain tasks simpler.

If it is your first time working with a framework then you may find that it will take longer to develop as you have to learn how to use the framework, and this may involve learning new paradigms and patterns. If you can afford to invest the extra time in learning to use a framework then I strongly urge you to do it; chances are you will appreciate working with a framework, and at the very least you will learn a lot!

'Frameworks' is a somewhat vague term. There are lots of different PHP frameworks and while they all aim to solve the same sort of problem (roughly) they each go about it in different ways. Web frameworks can be broken down into two broad categories: frameworks that do everything, and microframeworks.

Symfony and Codeignighter are popular PHP frameworks that fall into the first category. These aim to provide everything you need: Routing, database access and ORMs, templating, etc.

Microframeworks are much smaller and usually impose less restrictions on you (for better or worse). Microframeworks often only take care of routing (matching a URL such as http://example.com/users/pheter to a function that handles the request). It is then up to the developer to use other standalone libraries to provide the rest of the functionality that they need. Personally, I prefer this approach as I find it to be simpler. My current toolkit consists of a bespoke microframework which is similar to Slim, Twig for templating and Paris for database access.

However, while microframeworks are great for getting started quickly some people find their lack of features limiting, particularly as a project progresses.

I realise that I have digressed into discussing the merits of different types of frameworks so to come back to your original question with a TL;DR:

Yes, I strongly suggest that you use a framework if you can afford to invest the time to learn. I recommend that you play around with a few different frameworks to get a feel for how they vary and which appeals to you. Using a framework will reduce the amount of time that you spend reinventing the wheel, and may also decrease the amount of bugs and security issues that you might introduce as you ultimately have to write less code.

2 points

Oh right, from your previous comment I thought that you wanted to get rid of them but were having a hard time doing so because of how much they cost. You're right, it doesn't make sense to get rid of a chair that is functional and comfortable!

1 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.