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 1054529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:25:17+00:00 2026-05-16T17:25:17+00:00

I am building a web app for keywords research. Mainly what it does is

  • 0

I am building a web app for keywords research. Mainly what it does is it takes a keyword and it uses it to make curl requests and it parses numbers which then are stored in a mysql table. The curl request would be for example for retrieving yahoo number of results, number of diggs for that keyword, etc.

So I was thinking to code it in some way to use plugins (one for yahoo, other for digg, etc).

Is there any php framework that will help me in doing this?

  • 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-16T17:25:18+00:00Added an answer on May 16, 2026 at 5:25 pm

    Frameworks don’t handle things like that. You need to code it in plug-in way.

    Following scenario will allow you to code in plug-in fashion:

    Lets say we have directory called plugins in the root of the site and a table in the database called plugins with following structure (id, name, enabled, path)

    Now you need to create an interface for your plug-ins. This way all plug-ins will have same basic structure.

    /**
     * FILE: /plugins/PluginInterface.php
     *
     * Sample Interface
     */
    interface iPlugin{
    
        /**
         * Tests if plug-in can be executed
         */
        function test();
    
        /**
         * Prepared plug-in for execution
         */
        function prepare();
    
        /**
         * Executes plug-in logic and returns count of somethings
         */
        function execute();
    }
    
    
    /**
     * FILE: /plugins/PluginExample.php
     *
     * Sample Plug-in
     */
    class PluginExample implements iPlugin{
    
        public function execute() {
    
        }
    
        public function prepare() {
    
        }
    
        public function test() {
    
        }
    }
    

    Now you need to insert a record for the PluginExample in the database.

    INSERT INTO plugins (id, name, enabled, path) VALUES (1, 'Example', 1, 'PluginExample.php')
    

    And lastly you need somekind of controller that loads all the enabled plugins from the database (get’s path) and the creates objects and executes them. Like so

    function loadAndExecutePlugins() {
        $query = "select * from plugins where enabled = 1";
        $plugins = 'array of objects from query 1';
    
        if ($plugins) {
            foreach ($plugins as $plugin) {
                //
                $class = $plug->path;
                include_once "/plugins/$class";
    
                //  Class is using interface, so you know what methods to call
                $plug = new $class();
                if ($plug->test()) {
                    $plug->execute();
                }
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a web app where I need to get all the images
I'm building a web-app that handles internal emails and other frequent small-to-medium sized chunks
I am going to be building a web app soon where I will need
I'm building a JSF+Facelets web app, one piece of which is a method that
I'm building a small web app in PHP that stores some information in a
I'm building a mobile web app targeting Android users. I need to know what
I'm looking at building a simple web app that will expose an API that
My team is considering building our next web app using the ASP.NET MVC framework.
I am building a utility page for a web app that I am working
Im building a web application which is a process management app. Several different employee

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.