Introduction

Core Enhancements

DirectPHP - a plugin that allows direct embedding of PHP commands right inside Joomla content page!


Available for all Joomla versions: Joomla 1.0.x, native 1.5.x, 1.6.x, 1.7.x, 2.5.x, 3.0.x and 4.x!

VIP: Don't forget to set the Filter Type to "No Filtering" so that you can enter PHP codes in a Joomla 1.6/1.7/2.5/3.0 articles.

Latest Update

v4.02 (for Joomla 4.0 and above)
Released Apr 15, 2022
Special thanks to Ruediger for his unremitting effort to locate me over a year and digging me out of hibernation to work on this!

v3.0 (for Joomla 3.0)
Released March 21, 2013

v2.5 (for Joomla 2.5)
Released January 25, 2012

v1.7 (for Joomla 1.7)
Released October 10, 2011

Native version of DirectPHP for Joomla 1.7!

Latest version: 1.6 (for Joomla 1.6)
Released Feb 21, 2011
Native version of DirectPHP for Joomla 1.6!

Latest version: 1.06 (for Joomla 1.0) and 1.56 (for Joomla 1.5).
Added one more parameter "Using No Editor". If you're not using any editor when editing content articles, select 'yes' for this parameter. This will allow you to freely use any HTML tags (such as or ).

Latest version: 1.05 (for Joomla 1.0) and 1.55 (for Joomla 1.5).
Main update: Thanks to Salvatore who informed me about some "mysterious" double-byte characters that get inserted into the DirectPHP code by the content editor of some of the non-English Joomla. These double-byte characters will cause error when processing the PHP commands with eval. Have fixed this in this version.

Latest version: 1.04 (for Joomla 1.0) and 1.54 (for Joomla 1.5).
Main update: now works with PHP4!

Background

Like many other PHP programmers who use Joomla, all I wanted is a simple wish: the ability to include PHP in Joomla content page.

I did some research. Looks like currently the best plugin out there with good user feedback is Jumi. I tried. It works. But something is still missing. The problem I have with Jumi is that it only allows you to call or include another .php file. It doesn't allow you to include PHP commands right inside the content page.

What this means is that to run some PHP commands, you have to put them in an intermediate PHP file. You have to have this intermediate file even if all you want is to display the current date and time with "echo date('Y-m-d H:i:s')"! Imagine having hundreds of dynamic content pages. The intermediate files accumulate more and more and become difficult to maintain.

This is the reason I developed DirectPHP - a plugin that allows direct embedding of PHP commands right inside Joomla content page!

Key Features

  • You can write direct PHP statements right inside the content page using the standard the standard php construct.

  • You can freely intermix static contents with php commands.

  • You can edit the php code right inside the default TinyMCE WYSIWYG Editor!

  • You can easily serve different contents for registered and non-registered members.

  • You can use 'include' or 'require' to load in your favorite PHP library and call any of the functions inside the library.

  • Ability to bloc

Functionality
In my experience, it gives you full access to php within Joomla articles and modules
Ease of use
Dead easy to use, just type php code into the Editor (not the code view)
Support
Historically, good support, but recently I've been trying to tell the developer that I can't install the J4 version.
Documentation
I used this to: Adding my own code to articles and modules - greatly enhancing the Joomla experience
Owner's reply: Hi Basil, I have actually replied to your email on Aug 27, 2022. I think for some reason, your downloaded file is always not complete. So I've attached a copy of the DirectPHP for Joomla 4 together with that email. Please kindly check your email spam folder. Maybe it's there. Please give that a try and let me know if it works, ok?

Warm Regards,
/kksou

Nice Plugin



Posted on 10 September 2022
Functionality
This Plugin does exactly what if says it does. Please note, this is only for Articles not for injecting code into the Joomla system.
Ease of use
Install and use, nothing much else to say on that. Use the CodeMirror editor when editing articles that you will use PHP in for best results
Support
The Developer has recently added support for Joomla 4. He has moved on to other things, but has returned this tool to usability for Joomla 4
Documentation
The developer's site has broken links for some documentation. But this is an old, well established package lots of info online.
I used this to: For placing snippets of PHP in articles this is perfect. I Have found that using CodeMirror editor is best if you will be inserting PHP into an article. You can switch back to tinyMCE for Articles that do not include PHP.
Owner's reply: Hi Steven,

Thanks for the encouraging note!

As highlighted in the webpage, I wrote the first version of DirectPHP back in 2008. I wanted to embed some PHP codes in my own websites. Couldn't find a simple and easy-to-use one. So I wrote this DirectPHP. I thought this might be useful to others. That's why I decided to share the plugin here on joomla.org.

I was actually very surprised that this plugin is still in use. At that time, there were many commercially available plugins by professional developers. Thought there would be even more such plugins after all these years.

In any case, thank you once again for your feedback. Happy to know that people are still finding this plugin useful after so many years!

Warm Regards,
/kksou


Functionality
Working for many years with this great plugin. Never let me down. Big thanks to kksou for his efforts!
Ease of use
Very easy. Just place the tags and it works.
Support
Didn't need it. Its simple.
Documentation
Extensive. Great for beginners. You must have knowledge of PHP, off course.
I used this to: All my Joomla websites
Functionality
I tested this with the latest version of Joomla 3.7.2 and it is still working great. Used it together with the CodeMirror Editor
Ease of use
Just install, enable and you are ready to insert php code directly to any article.
Functionality
Does not work within modules (custom html) but works in articles. Joomla 3.3.6. Also more people having the same problems (in your site)
Ease of use
Real easy out of the box
Documentation
I used this to: Would be great if the module problem will be fixed, coz its way better to use for php then sourcerer because of its lightweight. Thanks
Been using DirectPHP for so long, I can't remember why I haven't reviewed it till now. It has always worked excellently for my custom code needs. Used to use Jumi, but DirectPHP beats that hands down since you can type your PHP code into Joomla! articles directly. Difficulty level is minimal, instructions are clear and concise, and the steps do not take up to 5 minutes to get you started. I recommend!

Great extension



Posted on 06 August 2014
Great product. I use Joomla in a unique way and without being able to put PHP direct into the article I could not use Joomla. Thanks
I've used other php plugins such as Juni. They work but I always thought it would be nice just to type the php code into Joomla.



I needed to add some php code today and decided to do a quick search and came across this plugin. I was looking for the crazy brackets or special hash tags that it took to make it work and to my surprise there were none. Simply type the php code into you content, WITH YOUR FAVORITE EDITOR TURNED ON!

Great plugin



Posted on 20 February 2014
DirectPHP is turning into one of my most used plugins. This functionality should be part of core Joomla. Excellent.

Only for basic php



Posted on 05 January 2014
Is a good extension but I tried to connect to a remote database using php and it doesn't work (I tested the code outside joomla and it works), so I guess is not suitable for "more complicated" php. For some basic one it worked perfectly. Thanks!
googleMaps by kksou
Free

googleMaps by kksou

By kksou
Maps & Locations
This plugin allows you to include one or more google maps right inside your content item or article. This is a very light-weight and easy-to-use plugin for displaying googleMaps right inside your Joomla article. You can use this to easily add a map to your company address. Unique features: * uses Google Maps API V3 * You can embed more than one Google Maps within an article * Each G...
googleDirections
Free

googleDirections

By kksou
Maps & Locations
This is an easy-to-use and light-weight plugin that allows you to include one or more driving or walking directions provided by Google Maps right inside your content item or article. If you need to display driving or walking directions to your company, or from one place to another, this is the plugin. If you only want to display a Google Map, use the googleMaps plugin: http://extensions.joomla.o...
googleSearch (CSE) component
Free

googleSearch (CSE) component

By kksou
Web Search
This component allows you to add Google's Custom Search Engine (CSE) Search to your Joomla site using the latest Google CSE API. The search results are displayed right inside your Joomla page! No more popup page. No more diversion to other pages. The googleSearch (CSE) Module Note that there is an accompanying googleSearch (CSE) Module that allows you to add a Google search form as a module. T...
To Here for googleDirections
Free

To Here for googleDirections

By kksou
Extensions Specific Non-sorted
This plugin is an easy-to-use and light-weight plugin for displaying Google directions from user-specified address to your designated place (e.g. your company or office). You specify a designated place to be the destination, and let the user enter the address he or she is coming from. Google will then provide the driving or walking directions from the user-specified address to your designated pla...

DirectPHP

Version:
4.02
Developer:
kksou
Last updated:
Apr 16 2022
1 year ago
Date added:
Mar 27 2008
License:
GPLv2 or later
Type:
Free download
Includes:
p
Compatibility:
J3 J4
Download

Uses Joomla! Update System

Score:


Write a review