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

  • SEARCH
  • Home
  • 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 6236779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:54:25+00:00 2026-05-24T10:54:25+00:00

StackOverflow! I’m looking for a way to make plugin-like (I didn’t know how to

  • 0

StackOverflow!

I’m looking for a way to make plugin-like (I didn’t know how to call it) web application with PHP. With that I meant that I want to make system where user can add/remove plugins (extensions, if you like) via browser (not by adding some code to configuration). Good example is WordPress, in my opinion. End-user can simply install any kind of plugins and by doing almost nothing they work as expected and, very often, have a lot of settings to change and so on.

Also, I would love to make it as usable as possible. With that I meant that a plugin can use parts of other plugins so there are less rewritten code. For example, there are plugin that is for authorization/authentication and all other stuff that is related to users. Then, there are plugin that is for blog. Blog, of course, needs before mentioned, right? So it simply uses that before mentioned plugin to work. I understand that there will be a lot of dependencies and so on… but its just normal. 🙂

My question is… with what technique I can accomplish it? What are advantages and disadvantages of that kind of system? I assume that it will be a little slower and will not fit very huge sites like Facebook (okay, that’s just too huge), but for simple blogs, portfolios, whatever it will be just fine!

I have heard about event-driven programming (or event-based programming) and I have read article about it on Wikipedia, but still… I’m very confused and, even more, not sure that its the thing that I’m looking for.

Thanks for reading this. Give me some answers, if its possible. 😀

  • 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-24T10:54:26+00:00Added an answer on May 24, 2026 at 10:54 am

    There are multiple issues to consider. As you noted a plugin system depends on registering extensions with the application, and the extension itselfs need a way to hook into the main application.

    For all its faults, WordPress has a quite workable approach to this. It uses “hooks” for interfacing to plugins. That’s basically a callback-system which more or less can amount to “event-driven” too. Fundamentally the main application does something like:

    foreach ($callback["need_to_render_sidebar"] as $fn) {
        $fn();
    }
    

    But you can make it more flexible with passing extra parameters, returning data, and more importantly: using objects rather than procedural callbacks for more complex features. (I’d avise to mix and match. There’s not one approach that suits all applications or extensions.)

    Likewise a plugin system often enables the extensions itself to call back the main application, feed data into it, or modify settings.

    The second part you need to consider for a plugin system is how you make it manageable. There basically each WebCMS/DMS has its own approach. Many use zip files to be manually extracted, or module directories. For starters a WP-like approach of meta-data augmented script files is the most suitable. I made a similar system which can be used independently of WP, though it’s pretty rough: http://milki.include-once.org/genericplugins/ (the nice part is actually the manageability of settings.)

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

Sidebar

Related Questions

Hello StackOverflow, I'd like to know if there is way to trigger an event
StackOverflow user jolson had a very nice piece of code that exemplifies how one
Stackoverflow User Luke wrote in this answer : The boundaries between desktop and web
This StackOverflow answer has an image of KDiff3 highlighting intra-line differences. Does someone know
Stackoverflow has taught me so much about what proper RESTful, MVC, GET/POST is that
Hi Stackoverflow super stars... Here's my problem. I have a stored procedure that outputs
A StackOverflow exception is occurring within my Winforms application (.NET v2) on a user's
Hi stackoverflow community, i'm using RKObjectManager to make iOS RESTful requests to map responses
I notice that StackOverflow has a views count for each question and that these
Hi stackoverflow world, I want to specify in a XSD that a specific element

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.