• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 575
  • Last Modified:

Trying to find best PHP framework

I have a LAMP server where users log in and upload/download video files.
I would like to generate some simple php pages to aggregate usage data.
These would be pages for me not end-user pages.

Here are some example stats I would like to see -

Number of users currently logged in.
Number of users logged in today,
Number of users logged in this week.

Number of uploads today
Number of downloads today
Number of uploads this week
Number of downloads this week

etc. etc. etc.

I know how to manually code (i.e. hack my way through it) a php page to generate this information.  I have the correct fields already available in MySQL and I know how to do the sql queries to get the final data results.

Can someone recommend a simple framework that would help me build these kinds of data aggregate pages more quickly and efficiently?

Is CakePHP good for this?


4 Solutions
Dan CraciunIT ConsultantCommented:
If those pages are for you a framework is overkill.

Since you can manually code, just build your own page. It does not need to be pretty, just display the info you need.

Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
There is an open source stats program called http://piwik.org/ that will do exactly what you want.  No coding other than inserting some js
Ray PaseurCommented:
I wouldn't use a framework for something like this.  But if you want to learn a framework, you might want to look at Laravel.  It seems to be getting a lot of traction right now.

You might also consider adding Google Analytics to your pages.
Become an IT Security Management Expert

In today’s fast-paced, digitally transformed world of business, the need to protect network data and ensure cloud privacy has never been greater. With a B.S. in Network Operations and Security, you can get the credentials it takes to become an IT security management expert.

Loganathan NatarajanLAMP DeveloperCommented:
Framework is not a matter. It is," how you're going to code " to achieve your tasks on any framework available.
kevinvw1Author Commented:
Any comments on NotORM?  It looks like a pretty simple PHP library.

Ray PaseurCommented:
I think the most revealing comment about NotORM is this one (emphasis added):
...the reality of working with any ORM is that using it is only simple if you already have experience using it
From reading the Sitepoint link, it does not look materially simpler to use NotORM when compared to writing SQL queries.  Since you already know the SQL queries, the addition of NotORM would mean that you would now have to learn the NotORM notation to get your SQL queries to work - an extra learning and debugging step with no added value on the output side of the project.  I'd skip it and just write the PHP/SQL code without the added interference of an abstraction layer.
kevinvw1Author Commented:
A lot of good useful answers and information here.

Thanks to everyone that replied.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get Cisco Certified in IT Security

There’s a high demand for IT security experts and network administrators who can safeguard the data that individuals, corporations, and governments rely on every day. Pursue your B.S. in Network Operations and Security and gain the credentials you need for this high-growth field.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now