The fastest way to find out whether a given PHP application uses any framework?

2 replies
I have got the entire code of a PHP application, I have setup the database as well. I can run the application and see. How to quickly find out whether it uses any PHP framework or not?
#application #fastest #find #framework #php
  • Profile picture of the author catasoft
    This is a good question, but there's no definitive answer other than knowing all the frameworks out there and checking to see if the fle structure and naming conventions looking for specific patterns.

    Also you could look into the comments at the beginning of "core" files (if you can locate those) and see what they make reference too... any framework?

    Another one: most frameworks use MVC design pattern, so basically if after searching ALL Sources for the words "model", "view", and "controller" you can find all of them and most importantly, can locate some kind of root class for each, you've got yourself a winner
    {{ DiscussionBoard.errors[2494889].message }}
  • Profile picture of the author jaimegm
    Take a running program and copy it with a different name, for example index.php and copy it to index_test.php, and in this new one erase one at a time the libraries included and check what happen, so you will identify if a library contains header or footer information, these are the php-frames.

    If in other hand you are simply looking for frames, you can grep for that word, I search for a word in the subdirectory where you have your code for the frames, just google for "grep for windows download" or use directly the command in your host server.
    {{ DiscussionBoard.errors[2499255].message }}

Trending Topics