Giter Club home page Giter Club logo

phpstormbundle's Introduction

PhpStormBundle

Symfony bundle that assists you in updating your PhpStorm project config file.

Important notice

This bundle is in a very early stage and has ony been tested with PhpStorm 7 so far. So before using it with any older version, make sure you backup your .idea folder.

Installation

Install the bundle using composer (see http://getcomposer.org/ for more information about composer) by adding it to your composer.json file and running composer update:

    // composer.json

    "require": {
        // ...
        "codelovers/phpstorm-bundle": "dev-master"
    }

Then just add the bundle to your AppKernel.php file:

<?php
// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new CodeLovers\PhpStormBundle\CodeLoversPhpStormBundle(),
    // ...
);

Usage

Currently there's only one command installed which will update your template data language config according to your configuration.

Configuration

In a typical environment you will only need to configure your template_data_languages.

code_lovers_php_storm:
    template_data_languages:
        - { pattern: "*.js.twig", dialect: "JavaScript" }
        - { pattern: "*.css.twig", dialect: "CSS" }
        - { pattern: "*.less.twig", dialect: "LESS" }

Additionally you can configure the path to your .idea folder and multiple source folders to process. Following are the default values:

code_lovers_php_storm:
    config_folder:  "%kernel.root_dir%/../.idea"
    source_folders:
        - "%kernel.root_dir%/../src"

Update template data languages

Simply execute the command codelovers:phpstorm:processTemplates.

php app/console codelovers:phpstorm:processTemplates

If PhpStorm has been running, restart it, so it reloads the project configuration.

phpstormbundle's People

Contributors

dvelopment avatar

Stargazers

Mathew Davies avatar

Watchers

 avatar James Cloos avatar CodeLovers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.