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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:28:08+00:00 2026-05-30T02:28:08+00:00

I’m planning on developing a Joomla custom component and storing the files in a

  • 0

I’m planning on developing a Joomla custom component and storing the files in a git repo. The structure of my git project will mimic the deployed joomla struture

<root>
-administrator
  -components
    -com_abc
-components
  -com_abc
-modules
  -com_abc
-plugins
  -com_abc

Rather than having to copy/zip the php/html files for the component each time i’d like to try and use the joomla root folder as the root for my git project. I’d use the git ignore feature to exclude files that belong to the joomla core project. I’m wondering has anybody done something similar and how do you initially deploy your component. Is is just a case of using the Joomla Extension Manager and pointing the directory to the joomla root dir?

  • 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-30T02:28:09+00:00Added an answer on May 30, 2026 at 2:28 am

    I myself did this kind thing not long ago. I used the following three links to setup my development structure:

    • Extension development using eclipse and phing
    • Working with git and github
    • Working with git and github/My first pull request

    What I now got is a separate Eclipse project for my local Joomla installation and every Joomla extension/template. On every extension I use Git, but not the Joomla installation itself.

    Every time I make a change to a extension, I use a Eclipse builder to call on Phing that copies the edited files to my Joomla installation. This way, I can test the changes locally. When I’m ready to deploy the extensions to a remote site, I use Phing to build the zip packages so that I can manually install them using the Joomla Extension Manager.

    Note that I’m on Windows and but I think it’s a good solution for other operating systems too. Using Eclipse as editor is also nice, with code completion etc. I used Notepad++ before.

    My extensions folder structure:

    com_extensionname
        - backend
             - assets
             - controllers
             - helpers
             - language
             - models
             - sql
             - tables
             - views
             - access.xml
             - extensionname.php
             - config.xml
             - controller.php
             - index.html
             - router.php
             - LICENSE.txt
        - frontend
             - assets
             - controllers
             - helpers
             - language
             - models
             - views
             - extensionname.php
             - controller.php
             - index.html
             - router.php
        - build.xml
        - extensionname.xml
    

    The Eclipse external tool to run the following file:

    Location: Path to phing.bat
    Working Directory: ${project_loc}
    Arguments: create_packages (This only argument only goes to the "Create packages"-tool
    

    Example of Phing xml file (build.xml):

    <?xml version="1.0" encoding="UTF-8"?>
    <project name="Project Name" default="copy_to_test" basedir=".">
    <property name="test" value="YOUR PATH TO LOCAL JOOMLA INSTALLATION" override="true" />
    <property name="src" value="${project.basedir}" override="true"/>
    
    <!-- Package properties -->
    <property name="package_path" value="PATH WHERE PACKAGES SHOULD GO" override="true" />
    <property name="package_name" value="com_YOUREXTENSION" override="true" />
    
    <!-- Files -->
    <fileset dir="./frontend" id="frontend_files">
        <include name="**" />
        <exclude name="language/**" />
    </fileset>
    <fileset dir="./backend" id="backend_files">
        <include name="**" />
        <exclude name="language/**" />
        <exclude name="packages/**" />
    </fileset>
    
    <!-- Language files -->
    <fileset dir="./frontend/language" id="frontend_language_files">
        <include name="**" />
    </fileset>
    <fileset dir="./backend/language" id="backend_language_files">
        <include name="**" />
    </fileset>
    
    <!-- All files (for packaging) -->
    <fileset dir="${src}" id="allfiles">
        <include name="**" />
        <exclude name="backend/packages/**" />
        <exclude name=".**" />
    </fileset>
    
    <!-- Target: Copy to test -->
    <target name="copy_to_test" description="Copies files to test project.">
        <echo message="Running build.xml. Copying files from dev to test..." />
    
        <!-- Manifest file -->
        <copy file="MANIFEST_FILE.xml" todir="${test}/administrator/components/com_YOUREXTENSION" />
    
        <!-- Component files -->
        <copy todir="${test}/components/com_YOUREXTENSION">
            <fileset refid="frontend_files" />
        </copy>
        <copy todir="${test}/administrator/components/com_YOUREXTENSION">
            <fileset refid="backend_files" />
        </copy>
    
        <!-- Language files -->
        <copy todir="${test}/language/en-GB">
            <fileset refid="frontend_language_files" />
        </copy>
        <copy todir="${test}/administrator/language/en-GB">
            <fileset refid="backend_language_files" />
        </copy>
    </target>
    
    <!-- Target: Create packages -->
    <target name="create_packages" description="Generates package files">
        <echo message="Running build.xml. Generating package files" />
    
        <!-- <propertyprompt propertyName="package_version" defaultValue="" promptText="Enter version" /> -->
        <xmlproperty file="MANIFEST_FILE.xml"/>
    
        <delete file="${package_path}/${package_name}-${extension.version}.zip" />
        <delete file="${package_path}/${package_name}-${extension.version}.tar.gz" />
    
        <zip destfile="${package_path}/${package_name}-${extension.version}.zip">
            <fileset refid="allfiles" />
        </zip>
        <tar destfile="${package_path}/${package_name}-${extension.version}.tar.gz" compression="gzip">
            <fileset refid="allfiles" />
        </tar>
    </target>
    

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I need a function that will clean a strings' special characters. I do NOT
I have thousands of HTML files to process using Groovy/Java and I need to
I have a bunch of posts stored in text files formatted in yaml/textile (from
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string

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.