<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Asia Connect Technology JSC &#187; Magento Extensions</title>
	<atom:link href="http://asia-connect.com.vn/category/magento-extensions/feed/" rel="self" type="application/rss+xml" />
	<link>http://asia-connect.com.vn</link>
	<description>The place for connecting you to the success</description>
	<lastBuildDate>Fri, 12 Mar 2010 03:49:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Packaging a Magento Extension</title>
		<link>http://asia-connect.com.vn/2009/07/packaging-a-magento-extension/</link>
		<comments>http://asia-connect.com.vn/2009/07/packaging-a-magento-extension/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 03:53:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento Extensions]]></category>
		<category><![CDATA[Magento Tips]]></category>
		<category><![CDATA[Magento Tricks]]></category>
		<category><![CDATA[Magento Tutorials]]></category>

		<guid isPermaLink="false">http://asia-connect.com.vn/?p=401</guid>
		<description><![CDATA[
This admin page will help to package your extensions, such as modules, add-ons, language packs, interfaces and themes, into PEAR packages which you could upload to MagentoConnect and share with other community members.
For starting on extension packaging process, log in to Magento Admin panel and go to :
Admin Panel: » System » Magento Connect » Package Extenssions
You can easily follow the 5 step process there to generate the extension that are described in the remaining article.
The extension packaging process includes generation of package.xml file with information about the package collected ...


Related posts:<ol><li><a href='http://asia-connect.com.vn/2009/10/magento-connect/' rel='bookmark' title='Permanent Link: Magento Connect'>Magento Connect</a></li><li><a href='http://asia-connect.com.vn/2009/07/php-extension-error-while-installing-magento/' rel='bookmark' title='Permanent Link: PHP extension error while installing Magento'>PHP extension error while installing Magento</a></li><li><a href='http://asia-connect.com.vn/2009/08/installing-magento-on-godaddy-hosting/' rel='bookmark' title='Permanent Link: Installing Magento on GoDaddy Hosting'>Installing Magento on GoDaddy Hosting</a></li></ol>]]></description>
			<content:encoded><![CDATA[<div class="level1">
<p>This admin page will help to package your extensions, such as modules, add-ons, language packs, interfaces and themes, into PEAR packages which you could upload to MagentoConnect and share with other community members.</p>
<p>For starting on extension packaging process, log in to <a rel="nofollow" href="http://www.magentocommerce.com" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.magentocommerce.com');"  class="alinks_links" onclick="return alinks_click(this);" title="Magento eCommerce"  style="padding-right: 13px; background: url(http://asia-connect.com.vn/wp-content/plugins/alinks/images/external.png) center right no-repeat;" rel="external">Magento</a> Admin panel and go to :</p>
<p>Admin Panel: » System » Magento Connect » Package Extenssions</p>
<p>You can easily follow the 5 step process there to generate the extension that are described in the remaining article.</p>
<p>The extension packaging process includes generation of package.xml file with information about the package collected by the 5 steps below, and archiving content files and folders specified by the Contents step.</p>
<p>After package release is uploaded to MagentoConnect, it will be available for download and installation for other members, by pasting extension key into MagentoConnect downloader.</p>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="wiki-header">
<h2><a id="extension_key" name="extension_key">Extension key</a></h2>
</td>
<td width="50"></td>
</tr>
</tbody>
</table>
<div class="level2">
<p>Is constructed from</p>
<ul>
<li class="level1">
<div class="li"><strong>PEAR channel nickname</strong> (<code>magento-core</code> or <code>magento-community</code>)</div>
</li>
<li class="level1">
<div class="li"><strong>Short package name</strong> (<code>Mage_Core_Modules</code>)</div>
</li>
<li class="level1">
<div class="li"><strong>Numeric release version</strong> (<code>1.2.3</code>) or release stability (<code>beta</code>) &#8211; optional</div>
</li>
</ul>
<p>So the extension key could look like this:</p>
<ul>
<li class="level1">
<div class="li"><code>magento-core/Mage_Core_Modules-1.2.3</code> &#8211; specific release version will be installed</div>
</li>
<li class="level1">
<div class="li"><code>magento-core/Mage_Core_Modules-beta</code> &#8211; latest beta release will be installed</div>
</li>
<li class="level1">
<div class="li"><code>magento-core/Mage_Core_Modules</code> &#8211; latest release for local stability settings will be installed</div>
</li>
</ul>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="wiki-header">
<h2><a id="notes" name="notes">NOTES</a></h2>
</td>
<td width="50"></td>
</tr>
</tbody>
</table>
<div class="level2">
<p>Make sure that downloader/pearlib/php and var/pear folders exist and have writable permissions for the web service.</p>
<ul>
<li class="level1">
<div class="li">In version 1.0 you should run these commands before packaging extensions, to initialize PEAR packager:</div>
</li>
</ul>
<pre class="code">cd downloader
./pear mage-setup
</pre>
<ul>
<li class="level1">
<div class="li">In all <strong>Channel</strong> fields use:</div>
<ul>
<li class="level2">
<div class="li"><strong>CORE</strong> packages: <code>connect.magentocommerce.com/core</code> (nickname <code>magento-core</code>)</div>
</li>
<li class="level2">
<div class="li"><strong>COMMUNITY</strong> packages: <code>connect.magentocommerce.com/community</code> (nickname <code>magento-community</code>)</div>
</li>
</ul>
</li>
</ul>
<p>Any Suggestions on what to do in version 1.2?</p>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="wiki-header">
<h2><a id="packaging_an_extension" name="packaging_an_extension">Packaging an extension</a></h2>
</td>
<td width="50"></td>
</tr>
</tbody>
</table>
<div class="level2">
<p>Is divided into 5 steps, detailed below.</p>
<p>After all steps have been completed, you can click “Save” button to save package information info into var/pear/&lt;package_name&gt;.ser file for future retrieval by clicking “Load” button.</p>
<p>Also you can generate the release package by clicking on “Save data and Create Package” button, which will validate information and create .tar.gz file in var/pear that you can upload to MagentoConnect.</p>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<h3><a id="package_info" name="package_info">Package Info</a></h3>
</td>
</tr>
</tbody>
</table>
<div class="level3">
<p>Here is general information about package without regards to releases or versions</p>
<ul>
<li class="level1">
<div class="li">Name: PEAR short package name, ( Mage_Oscommerce )</div>
</li>
<li class="level1">
<div class="li">Channel: For community packages use (connect.magentocommerce.com/community)</div>
</li>
<li class="level1">
<div class="li">Summary: Short package definition</div>
</li>
<li class="level1">
<div class="li">Description: Extended package definition</div>
</li>
<li class="level1">
<div class="li">License: Extension license name (OSL v3.0)</div>
</li>
<li class="level1">
<div class="li">License <acronym title="Uniform Resource Identifier">URI</acronym>: Web <acronym title="Uniform Resource Locator">URL</acronym> for license text (<a rel="nofollow" class="urlextern" title="http://www.opensource.org/licenses/osl-3.0.php" rel="nofollow" href="http://www.opensource.org/licenses/osl-3.0.php" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.opensource.org');">http://www.opensource.org/licenses/osl-3.0.php</a>)</div>
</li>
</ul>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<h3><a id="release_info" name="release_info">Release Info</a></h3>
</td>
</tr>
</tbody>
</table>
<div class="level3">
<p>In this tab provide release/version specific information</p>
<ul>
<li class="level1">
<div class="li">Release Version: Major, minor, revision and stability for the release (1.1.20123)</div>
</li>
<li class="level1">
<div class="li"><acronym title="Application Programming Interface">API</acronym> Version: Major and minor version for <acronym title="Application Programming Interface">API</acronym> used in this release (1.0)</div>
</li>
<li class="level1">
<div class="li">Release Stability: Stability of this release (alpha)</div>
</li>
<li class="level1">
<div class="li"><acronym title="Application Programming Interface">API</acronym> Stability: Stability of the <acronym title="Application Programming Interface">API</acronym> used in this release (stable)</div>
</li>
<li class="level1">
<div class="li">Notes: Release notes for users and developers</div>
</li>
</ul>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<h3><a id="maintainers_required" name="maintainers_required">Maintainers (required)</a></h3>
</td>
</tr>
</tbody>
</table>
<div class="level3">
<p>Maintainers of the package, user names the same as in MagentoConnect Only LEAD maintainers can upload releases The User field is your magentocommerce.com user name (found under My Account, User Name and Password). Don’t use your screen name here.</p>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<h3><a id="dependencies" name="dependencies">Dependencies</a></h3>
</td>
</tr>
</tbody>
</table>
<div class="level3">
<ul>
<li class="level1">
<div class="li"><acronym title="Hypertext Preprocessor">PHP</acronym> Version: this setup will work only with PHP5 &gt;= 5.2.0</div>
<ul>
<li class="level2">
<div class="li">Minimum: 5.2.0</div>
</li>
<li class="level2">
<div class="li">Maximum: 6.0.0</div>
</li>
<li class="level2">
<div class="li">Exclude: 6.0.0</div>
</li>
</ul>
</li>
</ul>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<h4><a id="packages" name="packages">Packages</a></h4>
</td>
</tr>
</tbody>
</table>
<div class="level4">
<p>Dependencies for current package</p>
<ul>
<li class="level1">
<div class="li">Package: short package name (Mage_Core_Modules)</div>
</li>
<li class="level1">
<div class="li">Channel:</div>
</li>
<li class="level1">
<div class="li">Min: minimum supported version of dependent package</div>
</li>
<li class="level1">
<div class="li">Max: maximum supported version of dependent package</div>
</li>
<li class="level1">
<div class="li">Recommended: downloader will try to use this version even if newer available</div>
</li>
<li class="level1">
<div class="li">Exclude: comma separated list of versions that are not supported</div>
</li>
<li class="level1">
<div class="li">Type:</div>
<ul>
<li class="level2">
<div class="li">Required: this dependency required for successful installation</div>
</li>
<li class="level2">
<div class="li">Optional: this package will be shown during installation as available option</div>
</li>
<li class="level2">
<div class="li">Conflicts: this package versions conflict with current package</div>
</li>
</ul>
</li>
</ul>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<h4><a id="subpackages" name="subpackages">Subpackages</a></h4>
</td>
</tr>
</tbody>
</table>
<div class="level4">
<p>Used when new release of current package was splitted into 2 or more packages.</p>
<p>In general no packages can share same files, but subpackages can contain files that were used in previous version of current package.</p>
<p>Fields: same as in packages</p>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<h4><a id="extensions" name="extensions">Extensions</a></h4>
</td>
</tr>
</tbody>
</table>
<div class="level4">
<p><acronym title="Hypertext Preprocessor">PHP</acronym>/PECL extensions dependencies</p>
<ul>
<li class="level1">
<div class="li">Extension: dropdown with currently installed <acronym title="Hypertext Preprocessor">PHP</acronym> extensions</div>
</li>
<li class="level1">
<div class="li">Min, Max, Recommended, Exclude, Type: same as in packages</div>
</li>
</ul>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<h3><a id="contents_required" name="contents_required">Contents (required)</a></h3>
</td>
</tr>
</tbody>
</table>
<p class="level3" style="text-align: left;">
<ul>
<li class="level1">
<div class="li">Role: Location of the files to include</div>
</li>
<li class="level1">
<div class="li">Path: Path within the role (location)</div>
</li>
<li class="level1">
<div class="li">Type: File or Recursive Directory</div>
</li>
<li class="level1">
<div class="li">Include: Regular expression for file pattern to include (requires pattern delimiter, like ‘#’) &#8211; ex. #^Mage#</div>
</li>
<li class="level1">
<div class="li">Ignore: Regular expression for file pattern to ignore (requires pattern delimiter, like ‘#’)</div>
</li>
</ul>
<p class="level3" style="text-align: right;"><em>From <a rel="nofollow" title="Packaging a Magento Extension" href="http://www.magentocommerce.com/wiki/packaging_a_magento_extension" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.magentocommerce.com');" target="_blank"><strong>Magentocommerce.com</strong></a></em></p>


<p>Related posts:<ol><li><a href='http://asia-connect.com.vn/2009/10/magento-connect/' rel='bookmark' title='Permanent Link: Magento Connect'>Magento Connect</a></li><li><a href='http://asia-connect.com.vn/2009/07/php-extension-error-while-installing-magento/' rel='bookmark' title='Permanent Link: PHP extension error while installing Magento'>PHP extension error while installing Magento</a></li><li><a href='http://asia-connect.com.vn/2009/08/installing-magento-on-godaddy-hosting/' rel='bookmark' title='Permanent Link: Installing Magento on GoDaddy Hosting'>Installing Magento on GoDaddy Hosting</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://asia-connect.com.vn/2009/07/packaging-a-magento-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
