Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5990537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:15:29+00:00 2026-05-22T23:15:29+00:00

I have known PHP basics, functional programming for a long time before. But this

  • 0

I have known PHP basics, functional programming for a long time before. But this year, in my 2nd semester I have learned Object-Oriented Programming with Java. So I want to apply my knowledge of OOP to PHP. But I find it very difficult to think of any decent utilization. It’s not like in Java everything is an object. I see it easier to connect to database an old way, to write some simple functions for logging or registration, etc.

All those examples http://php.net/manual/en/language.oop5.php just gives me knowledge about syntax, not methodology of using it.

So I began to think. Maybe it’s because I wanted to apply OOP without any Framework, and it’s no use without it? If so – any Framework recommendations that are easy to learn?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:15:30+00:00Added an answer on May 22, 2026 at 11:15 pm

    OOP is a methodology used to organise your code into meaningful, reusable entities and it doesn’t alone answer to the question of “how to best organize your code to create web applications”.

    Most of the web frameworks use Model-View-Controller architecture (MVC) along with OOP. In order to understand how web frameworks work, I suggest you to familiarize yourself with MVC as well (for a starting point, see “Coding Horror: Understanding Model-View-Controller”)

    Also, regardless of any frameworks, it is crucial to understand some basic concepts when creating web applications. At the minimum, familiarize yourself with how sessions work (http://www.php.net/manual/en/book.session.php), as well as how you can access databases (PDO for generic database connectivity, MySQL for MySQL-specific binding, etc.).

    As for what web framework to choose, the options are plenty. Therefore consider the following pointers as informative:

    • Yii Framework has a pretty clean OOP-based design (http://www.yiiframework.com/)
    • Another popular object-oriented PHP framework is CakePHP (http://cakephp.org/)
    • For a more light-weight framework with less overhead, consider CodeIgniter (http://codeigniter.com/)
    • The de facto web framework for PHP is Zend (http://framework.zend.com/). Its huge, comprehensive, well-supported, but not always the perfect companion when travelling light.
    • Also note that if you organize your code according to MVC, you may find yourself most comfortable when not using any frameworks at all

    Also note that unlike in Java, in PHP object-oriented features have been slowly added during its versions 4 and 5. Therefore, many web frameworks designed for earlier versions of PHP may not provide you as cleanly object-oriented design as you might want. Therefore when choosing a framework, consider whether you opt-in for backward-compatibility (PHP4 support) or are you seeking for a clean, object-oriented design in the framework (mostly PHP5 required).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Pretty basic programming question, I know PHP have a function for it, but does
I know that PHP doesn't yet have native Enumerations. But I have become accustomed
I have a PHP script that sends critical e-mails. I know how to check
I am just looking at the using statement, I have always known what it
I have a SOAP request that is known to work using a tool like,
I have a drop-down list with known values. What I'm trying to do is
I have a bunch of latitude/longitude pairs that map to known x/y coordinates on
I have a simple bat script that copies files from an known directory to
I have an interface method public void Execute(ICommand command); which needs to pass known
In short: Is there any known protocol for remote process management? I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.