- Download file CodeStyle.xml
- Open PhpStorm
- Select File > Settings > Editor > Code Style
- Click Manage...
- Click Import...
- Select "Intellij IDEA code style XML"
- Select the file you've just download
- Download file inspections.xml
- Open PhpStorm
- Select File > Settings > Editor > Inspections
- Click Manage...
- Click Import...
- Select the file you've just download
Sadly, we can't share them directly.
I put here what I use but you may not require all of them.
Plugins with a *
are not bundled.
Plugins with unchecked checkbox are bundle and desactivated.
- * .ignore
- Apache config (.htaccess) support
- ASP
- * BashSupport
- Behat Support
- Blade Support
- * Codeivate
- CoffeeScript
- Command Line Tool Support
- Copyright
- CSS Support
- CVS Integration
- Database Tools and SQL
- Drupal Support
- File Watchers
- Gherkin
- Git Integration
- GitHub
- GNU GetText files support (*.po)
- Google App Engine Support for PHP
- HAML
- hg4idea
- Ini4Idea
- HMTL Tools
- IntelliLang
- JavaScript Debugger
- JavaScript Intention Power Pack
- JavaScript Support
- Joomla! Support
- LESS Support
- * Lines Sorter
- * Markdown Navigator
- * nginx Support
- Perfoce Integration
- Performance Testing
- Phing Support
- PHP
- * PHP Annotations
- *PHP composer.json support
- * PHP Inspections (EA Extended)
- PHP Remote Interpreter
- * PhpMetrics
- * PHPUnit code coverage
- QuirksMode
- Refactor-X
- Remote Hosts Access
- REST Client
- ReStructuredText Support
- SASS support
- Settings Repository
- SSH Remote Run
- Subversion Integration
- * Symfony Plugin (don't forget to enable it in each projects !!)
- Task Management
- Terminal
- TextMate bundles support
- Time Tracking
- Twig Support
- UML Support
- Vagrant
- W3C Validators
- Wordpress Support
- XPathView + XSLT Support
- XSLT-Debugger
- YAML
- * YAML/Ansible support
Sadly, we can't share it with a file.
<?php
#parse("PHP File Header.php")
#if (${NAMESPACE})
namespace ${NAMESPACE};
#end
final class ${NAME}
{
}
<?php
#parse("PHP File Header.php")
#if (${NAMESPACE})
namespace ${NAMESPACE};
#end
interface ${NAME}
{
}
<?php
#parse("PHP File Header.php")
#if (${NAMESPACE})
namespace ${NAMESPACE};
#end
trait ${NAME}
{
}
<?php
#parse("PHP File Header.php")
#if (${NAMESPACE})
namespace ${NAMESPACE};
use PHPUnit_Framework_TestCase;
#end
final class ${NAME} extends PHPUnit_Framework_TestCase
{
}
/**
* ${NAME} ${CARET}
*/
/** ${TYPE_TAG} ${TYPE_HINT} */
Empty if non PHP7, otherwise:
declare(strict_types=1);
/**
${PARAM_DOC}
${THROWS_DOC}
#if (${TYPE_HINT} != "void") * @return ${TYPE_HINT}
#end
*/
/**
* ${NAME} ${CARET}
*/
/**
${PARAM_DOC}
*/
public function __construct(${PARAM_LIST})
{
${BODY}
}
/**
* @param ${TYPE_HINT} $${PARAM_NAME}
*
* @return ${CLASS_NAME}
*/
public function set${NAME}($${PARAM_NAME})
{
$this->${FIELD_NAME} = $${PARAM_NAME};
return $this;
}
/**
* @return ${TYPE_HINT}
*/
public ${STATIC} function ${GET_OR_IS}${NAME}()
{
#if (${STATIC} == "static")
return static::$${FIELD_NAME};
#else
return $this->${FIELD_NAME};
#end
}
Leave empty.
${RETURN} parent::${NAME}(${PARAM_LIST});
/**
* @param ${TYPE_HINT} $${PARAM_NAME}
*/
public ${STATIC} function set${NAME}($${PARAM_NAME})
{
#if (${STATIC} == "static")
static::$${FIELD_NAME} = $${PARAM_NAME};
#else
$this->${FIELD_NAME} = $${PARAM_NAME};
#end
}