Doctor
Doctor

Reputation: 1

What is the difference between plugins, modules, add-ons etc in PHP?

I have a little question I want to know what is the difference between Plugins/Modules/Add-ons in PHP?

Upvotes: 0

Views: 851

Answers (2)

Ricky Kurniawan
Ricky Kurniawan

Reputation: 31

I agree with Pekka, the terms are meaningless.

If you are looking to build on your CMS, then you can take Joomla path.

It is explained in http://www.opensourcevarsity.com/joomlaadmin/l3diffbtncompplugmod and http://forum.joomla.org/viewtopic.php?p=1485432

In summary: Components = A Mini Application. It adds new functionality. Example are: newsletter, forum, etc. Modules = A boxed section on a webpage presenting information. It extends functionality of existing system. Plugin = A script triggered by an event. It manipulates data before being presented to the user.

Upvotes: 2

Pekka
Pekka

Reputation: 449613

There is no defined concept for neither of the three in PHP.

The only defined term is extension which describes a compiled library that is loaded into PHP - either through php.ini, or more rarely using dl() - and provides additional functions and classes that can be called from within the PHP script. Extensions are usually written in C (In fact, I don't know to what extent it's possible to write them in other languages) You can find a list of PHP extensions here.

Many frameworks and applications implement different kinds of add-ons and plug-ins, usually in the form of a framework that includes PHP source files. It is impossible to tell more without knowing more about the context you came across these terms.

Upvotes: 1

Related Questions