1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHPStorm - setup suggestions?

Discussion in 'XenForo Development Discussions' started by tyteen4a03, Nov 19, 2013.

  1. tyteen4a03

    tyteen4a03 Well-Known Member

    After months of using Notepad++ and falling in love with PyCharm, I decided to switch to PHPStorm for XenForo coding, but I'm not quite sure how to set it up. My addons have their own repo on github, and PHPStorm doesn't seem to recognize XF files quite well. I can also setup as one big glob of project, but it isn't really tidy.

    How did you set up PHPStorm to work with XF?
    Marcus likes this.
  2. Chris D

    Chris D XenForo Developer Staff Member

    What do you mean not work well?

    Create new project from existing files, point it at your xf root. Done.
  3. xf_phantom

    xf_phantom Well-Known Member

    symlink :)

    project directory includes only the addon files
    xenforo files are included as external library
    and something similar like modman https://github.com/colinmollenhour/modman to manage all the files which aren't located in the library/addon directory (style,js,bin or something in the root directory and it also includes composer support)
    Last edited: Nov 20, 2013
  4. tyteen4a03

    tyteen4a03 Well-Known Member

    I need to link the project to git, and since I have separate repos for all my addons this is not doable.

    Any Windows-friendly solutions? I develop mainly on Windows (so I can switch to games very easily, hee hee)
  5. xf_phantom

    xf_phantom Well-Known Member

    Any Windows-friendly solutions? I develop mainly on Windows (so I can switch to games very easily, hee hee)[/quote]
    Still symlink:) ( http://en.wikipedia.org/wiki/NTFS_symbolic_link )

    You COULD also have

    xenforo/library/addon1 (git repo)
    xenforo/library/addon2 (git repo)

    because of the js and style files, you could createn an "links" directory inside the addon directory , put the files there and then link them to the xenforo upload directory (or you could also use the "deploy" feature in phpstorm ( http://www.jetbrains.com/phpstorm/webhelp/deployment.html )
    or you could even use modman, or or or or...:D

    In the past i had only 1 xenforo installation for all addons & clients, but it became too big....
    Last edited: Nov 20, 2013
  6. tyteen4a03

    tyteen4a03 Well-Known Member

    Do I have to? I don't really want to symlink. This means I'll have to do it once everytime I create a project (and I like to rapid develop)

    Oh well, I guess I'll resort to not linking git to the project. I can't get PHPStorm to work with my SSH keys anyway.
  7. xf_phantom

    xf_phantom Well-Known Member

    I've edited my post, maybe you can get familiar with the deploy tools

    BUT there's NO PERFECT way, every developer has his own worflow:D (some prefer a gui, some prefer the terminal, some want to automate as much as possible...)

    e.g. check @xfrocks tools and compare it with @Robbo 's tools (both available on github)
    tyteen4a03 likes this.

Share This Page