Log in Register

Login to your account

Username *
Password *
Remember Me

Create an account

Fields marked with an asterisk (*) are required.
Name *
Username *
Password *
Verify password *
Email *
Verify email *
Captcha *

The following article assumes that you are acquainted with AMFPHP and are using version 2.1 version of the same for your purpose. Before we continue ensure that your Amfphp folder is extracted and located at your site root for the following examples.

AMFPHP Integration with all CMS softwares is nearly the same. While we only cite the example of joomla here, you can contact us for any specific cms that you might want to integrate amfphp into.



  • Joomla Integration
1. Edit the file : Amfphp/ClassLoader.php in a code editor.
2. Locate the following line in the file :
{codecitation class="brush: php; gutter: true;"}
3. Put the following content in the file in the next line:
{codecitation class="brush: php; gutter: true;"}
define( '_JEXEC', 1 );
require_once (JPATH_BASE . DS . 'includes' . DS . 'defines.php');
require_once (JPATH_BASE . DS . 'includes' . DS . 'framework.php');

4. Save and close the file Amfphp/ClassLoader.php

5. Edit the file Amfphp/index.php in your code editor

6. Locate the following  line in the file content:

require_once dirname(__FILE__) . '/ClassLoader.php';

7. Put the following content in the next line :

{codecitation class="brush: php; gutter: true;"}

$mainframe =& JFactory::getApplication('site');


JTable::addIncludePath ( JPATH_COMPONENT . DS . 'tables' );


8. Save and close the file Amfphp/index.php

9. Once done you can now start coding regular joomla api  Amfphp/Services/[ServiceFile.php] class constructor: