Answers.Body: <p>Craft plugin naming conventions follow a specific format.</p>
  
  <p><a href="http://buildwithcraft.com/docs/plugins/setting-things-up#create-your-plugins-folder" rel="nofollow">The plugin folder must live immediately under the <code>craft/plugin</code> folder and it must be the all lowercase name of your plugin's handle.</a></p>
  
  <p>Your <a href="http://buildwithcraft.com/docs/plugins/setting-things-up#create-your-plugins-folder" rel="nofollow">primary plugin class</a> must live immediately in that folder and is named after your plugin's handle plus the word "Plugin".  i.e. <code>PluginHandlePlugin</code>.</p>
  
  <p>Craft doesn't support any concept of multiple primary plugin class files in one plugin folder.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-26T15:24:56.143Z
Answers.LastActivityDate: 2014-08-26T15:24:56.143Z
Answers.UserDisplayName: Brad Bell
Body: <p>I'd like to group my Craft plugins using the PSR-0 Standard, I was hoping I could use the following:</p>
  
  <pre><code>CompanyName_PluginNamePlugin extends BasePlugin
  
  plugins/
      companyname/
         pluginname/
             CompanyName_PluginNamePlugin.php
  </code></pre>
  
  <p>Is it possible to group plugins in sub folders? Or do I just need to prefix my plugin folder - eg:</p>
  
  <pre><code>plugins/
     companyname_pluginname/
         CompanyName_PluginNamePlugin.php
  </code></pre>
  
  <p>This gets messy if I want to group any further:</p>
  
  <pre><code>plugins/
      companyname_pluginname
      companyname_subgroup_otherpluginname
      companyname_secondsubgroup_otherpluginname
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>Phil.</p>
  
Tags: <plugin-development>
Title: Is it possible to group my Craft plugins using the PSR-0 Standard?
ThreadText: # Is it possible to group my Craft plugins using the PSR-0 Standard?
  
  (Asked by: username_0 on 2014-08-26)
  
  I'd like to group my Craft plugins using the PSR-0 Standard, I was hoping I could use the following:
  
  ```
  CompanyName_PluginNamePlugin extends BasePlugin
  
  plugins/
      companyname/
         pluginname/
             CompanyName_PluginNamePlugin.php
  
  ```
  
  Is it possible to group plugins in sub folders? Or do I just need to prefix my plugin folder - eg:
  
  ```
  plugins/
     companyname_pluginname/
         CompanyName_PluginNamePlugin.php
  
  ```
  
  This gets messy if I want to group any further:
  
  ```
  plugins/
      companyname_pluginname
      companyname_subgroup_otherpluginname
      companyname_secondsubgroup_otherpluginname
  
  ```
  
  Thanks,
  
  Phil.
  
  **Tags:** plugin-development
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-08-26. Score: 1
  
  Craft plugin naming conventions follow a specific format.
  
  [The plugin folder must live immediately under the `craft/plugin` folder and it must be the all lowercase name of your plugin's handle.](http://buildwithcraft.com/docs/plugins/setting-things-up#create-your-plugins-folder)
  
  Your [primary plugin class](http://buildwithcraft.com/docs/plugins/setting-things-up#create-your-plugins-folder) must live immediately in that folder and is named after your plugin's handle plus the word "Plugin". i.e. `PluginHandlePlugin`.
  
  Craft doesn't support any concept of multiple primary plugin class files in one plugin folder.
  
  
  ---
  
  